# Build your first AI agent in minutes > Turn your website into a trained QwryAI agent and put it in front of your visitors, all in one sitting In this guide you create a QwryAI agent from your website address, add any extra training data you want, check its answers in the Playground, and put it on your site as a Chat bubble. It's meant for anyone opening QwryAI for the first time. The one technical moment is pasting a snippet into your site's HTML, and the WordPress plugin or the Shopify option can handle even that for you. When you're done, visitors can ask your agent questions and get answers drawn from your own content. Here's the path: **1. Create & train your agent** Scan your website, review the data sources QwryAI finds, and add documents, text or Q&A pairs. **2. Test & optimize** Adjust the instructions and model, then question your agent in the Playground. **3. Deploy to your website** Copy the Chat bubble code from Channels and paste it into your site. > [!TIP] > > **Estimated time:** around 10 minutes. The website scan itself takes under a minute, and training carries on in the background while you test. ## Before you start > [!NOTE] > > You need a QwryAI account and a workspace. [Create an account](/sign-up) if you don't have one. Each plan includes a set number of agents: 1 on **Free** and **Starter**, 5 on **Growth**, and no limit on **Enterprise**. If your workspace already has as many agents as its plan allows, **Create agent** takes you to **Plans** instead. ## Step 1: Create & train your AI agent ![Entering https://www.qwryai.com as the Website URL with Customer Support & FAQs as the Primary Objective, selecting Discover Pages & Prepare Agent, watching the scan find pages, and landing on Manage Data Sources with qwryai.com (206 pages) listed.](walkthroughs/onboarding.gif) ### Navigate to your dashboard **1. Select Create New Chatbot** Sign in and you land on **Agents**, which lists every agent in your workspace. Select **Create New Chatbot** in the top-right corner. The dashed **Create New Chatbot** card under **Your agents** opens the same setup. ![The Agents page with the QwryAI agent card under YOUR AGENTS, a Create New Chatbot card, and the Create New Chatbot button in the top right.](annotated/01-dashboard-create.webp "Agents › Create New Chatbot") ### Scan your website Setup starts on **Add Website URL**, the **Scan Website** step. QwryAI looks for your site's public pages and reads the address you enter to write a first set of instructions for your agent. **1. Enter your website address** Type your site's address, such as `https://www.yourstore.com`, in **Website URL**. ![The Add Website URL step, with Scan Website highlighted in the step badges, https://www.qwryai.com in the Website URL field, the Primary Objective dropdown and the Discover Pages & Prepare Agent button.](annotated/02-website-url.webp "Enter your site's address in Website URL.") **2. Pick a Primary Objective** Choose what the agent is mainly for: **Customer Support & FAQs**, **Lead Generation & Sales**, **Docs & General Questions**, or **Base (Original Prompt)**. Your choice sets the role QwryAI writes into the first draft of your instructions, which you can rewrite at any time in **Instructions**. ![The Primary Objective dropdown set to Customer Support & FAQs, below the Website URL field.](annotated/03-primary-objective.webp "Primary Objective shapes the first instructions.") **3. Start the scan** Select **Discover Pages & Prepare Agent**. ![The Discover Pages & Prepare Agent button under the filled-in Website URL and Primary Objective fields.](annotated/04-discover.webp "Start the scan.") **4. Let the scan finish** A progress panel works through **Reading your website**, **Finding your pages**, **Writing agent instructions** and **Preparing data sources**, and counts the pages it finds. The scan only lists pages; nothing is trained yet. ![The scan progress panel at step 4 of 4, with Found 206 pages and the steps Reading your website, Finding your pages, Writing agent instructions and Preparing data sources.](annotated/05-scan-progress.webp "The scan lists pages and drafts instructions.") **5. Continue to Data Sources** When **Website scan complete** appears, QwryAI moves you to the **Data Sources** step by itself. ![The Website scan complete panel with the note Review data sources next. Training has not started.](annotated/06-scan-complete.webp "Scan done; training hasn't started.") ### Choose your training data ![On Manage Data Sources: opening Website and entering https://www.qwryai.com/blog, adding a Plain Text source titled Shipping and returns, opening Q&A Pairs, then pointing to Create agent.](walkthroughs/sources.gif) **1. Review what the scan found** **Manage Data Sources** shows your website with its page count, marked **Not trained**. To teach your agent more, pick a card under **Connect New Source**. ![The Manage Data Sources step with the scanned website listed as a source, the Connect New Source cards Website, Document, Plain Text and Q&A Pairs, and the Create agent button.](annotated/07-manage-data-sources.webp "Your scanned site, plus four ways to add more.") QwryAI can learn from four kinds of source: > [tab] Website > > **Add pages from any site** > > Pull in pages from your own site or another one you trust: a whole site, a sitemap, or one page. > > **Best for:** help centers, policy pages, product and blog pages > > **1. Select the Website card** > > Under **Connect New Source**, select **Website**. > > ![Manage Data Sources with the pointer on the Website card (Crawl links) under Connect New Source.](annotated/08-website-dialog.webp "Select Website to add pages from a site.") > > **2. Choose how to find pages** > > In **Add website**, pick **Crawl website**, **Sitemap** or **Single page**. > > ![The Add website dialog with the Crawl website, Sitemap and Single page options, a Website URL field, and the Cancel and Fetch pages buttons.](annotated/08-website-dialog--open.webp "Crawl website, Sitemap or Single page.") > > **3. Enter an address** > > Type the address under **Website URL**. > > ![The Add website dialog with https://www.qwryai.com/blog entered and the Fetch pages button.](annotated/09-website-fetch.webp "Enter the address to read.") > > **4. Fetch, then choose pages** > > Select **Fetch pages**. QwryAI lists what it finds; untick anything you don't want, then select **Add pages**. > > ![The Add website dialog with the pointer on Fetch pages.](annotated/10-website-fetch-button.webp "Fetch pages only lists pages.") > > > [!NOTE] > > > > Fetching and adding pages doesn't train anything. The pages you keep train when you select **Create agent**. > [tab] Document > > **Upload files** > > Drop in the files your team already answers from. > > **Best for:** manuals, price lists, policy documents, product sheets > > **1. Select the Document card** > > Under **Connect New Source**, select **Document**. > > ![Manage Data Sources with the pointer on the Document card (PDF, DOCX, CSV) under Connect New Source.](annotated/11-document-dialog.webp "Select Document to upload files.") > > **2. Upload your files** > > In **Upload Documents**, click the upload area or drag files onto it. QwryAI accepts PDF, DOC, DOCX, TXT and CSV files of up to 20 MB each. Scanned PDFs work too: QwryAI reads the text in page images. > > ![The Upload Documents dialog with a Click to upload or drag and drop area for PDF, DOC, DOCX, TXT and CSV files (max. 20 MB per file).](annotated/11-document-dialog--open.webp "PDF, DOC, DOCX, TXT or CSV, up to 20 MB each.") > [tab] Plain Text > > **Paste text directly** > > Add information that doesn't live on a page or in a file yet. > > **Best for:** short policies, internal notes, answers you want to word exactly > > **1. Select the Plain Text card** > > Under **Connect New Source**, select **Plain Text**. > > ![Manage Data Sources with the pointer on the Plain Text card (Paste raw text) under Connect New Source.](annotated/12-plain-text-dialog.webp "Select Plain Text to paste text.") > > **2. Review Raw text input** > > The dialog has a **Source title** and a **Content** box. Each text source can hold up to 1 MB. > > ![The Raw text input dialog with a Source title field, a Content area, and the Cancel and Save Text buttons.](annotated/12-plain-text-dialog--open.webp "Raw text input: a title and your content.") > > **3. Add a title and your text** > > Name the source so you can find it later, paste the content, then select **Save Text**. > > ![The Raw text input dialog with the title Shipping and returns and a pasted shipping and returns policy.](annotated/13-plain-text-type.webp "Title it, paste it, save it.") > [tab] Q&A Pairs > > **Write the exact answer** > > Give your agent a fixed answer for a question you know customers ask. > > **Best for:** questions where the wording of the answer matters > > **1. Select the Q&A Pairs card** > > Under **Connect New Source**, select **Q&A Pairs**. > > ![Manage Data Sources with the pointer on the Q&A Pairs card (Direct pairs) under Connect New Source.](annotated/14-qa-dialog.webp "Select Q&A Pairs to write questions and answers.") > > **2. Write a question and its answer** > > In **Q&A training**, type the **User question**, write the **Bot answer** (bold, lists and other formatting are available), then select **Save Pair**. > > ![The Q&A training dialog with a User question field and a Bot answer editor.](annotated/14-qa-dialog--open.webp "One question, one exact answer.") > [!TIP] > > **Start with what customers ask most:** your FAQ, shipping, returns and pricing pages usually cover the bulk of first questions. For a large online store, choose **Sitemap** and give it your sitemap address (often `/sitemap.xml`) rather than crawling every page. See [Data Sources](/docs/user-guides/chatbot/data-sources) for every source type. ### Create your agent **1. Select Create agent** At the bottom of **Manage Data Sources**, select **Create agent**. QwryAI creates the agent, starts training every source you chose, and opens the **Playground**. ![The bottom of Manage Data Sources with Your data is private & secure and the Create agent button.](annotated/15-create-agent.webp "Create the agent and start training.") > [!TIP] > > Training runs in the background, so you can move on straight away; QwryAI confirms with *Agent created. Your data sources are training in the background.* In the Playground, the **Data sources** card shows **Training**, then **Synced** once your agent can use everything. **Not synced** means something still needs training: open **Build › Data sources** and select **Retrain agent**. > [!NOTE] > > **Training content limit:** each plan caps how much content your agents can train on: 1 MB on **Free**, 10 MB on **Starter**, 40 MB on **Growth**, and no cap on **Enterprise**. If you reach it, remove sources you don't need or change plan. ## Step 2: Test & optimize your AI agent ![In the agent's Playground: opening the Model menu, then asking the agent In one sentence, what does QwryAI do? and reading its reply.](walkthroughs/test-optimize.gif) ### Access your instructions **1. Open Build › Instructions** From the agent's sidebar, open **Build › Instructions**. **General** holds the instructions QwryAI drafted from your website, and **Guardrails** holds the rules your agent always follows. Select **Compare** to try edited instructions side by side with the current ones before you save. ![The Instructions page with the General and Guardrails editors and the Model configuration panel.](annotated/16-instructions.webp "General, Guardrails and Model configuration.") ### Fine-tune settings > [tab] Model > > **Choose the model that answers** > > **1. Open the Model menu** > > Under **Model configuration**, open **Model**. Search by name, or filter by credits per message and by what the model accepts (text, images, voice). > > ![The Model dropdown open on the Instructions page, listing AI models with their credit cost per message.](annotated/17-model-menu.webp "Each model shows its credits per message.") > > **2. Compare before you commit** > > Put the same handful of real questions to two or three models and weigh: > > * **Accuracy** against your sources > * **Speed** of the first word > * **Tone** and length of answers > * **Cost** in credits per message > > Every reply uses the credits shown next to the model. Plans include 50 credits a month on **Free**, 1,000 on **Starter**, 4,000 on **Growth** and 40,000 on **Enterprise**. The Free plan offers a smaller set of models. > > > [!TIP] > > > > For side-by-side testing, see [Models comparison](/docs/user-guides/chatbot/models-comparison) and [Build](/docs/user-guides/chatbot/build). > [tab] Instructions > > Your instructions decide how the agent sees its job and how it talks. QwryAI's first draft is a starting point; make it yours. Good instructions cover: > > * **Who it works for** and what it helps with > * **Tone**, such as warm and brief, or formal > * **Scope:** topics to handle and topics to decline > * **What to do when unsure**, such as saying it can't confirm and offering a person > * **Language:** usually the visitor's own > * **Words to use or avoid**, such as product names > > Put hard rules, such as never quoting a price that isn't in your sources, under **Guardrails**. > > > [!TIP] > > > > For a worked example, see [Best Practices](/docs/user-guides/quick-start/best-practices). > [tab] Temperature > > **1. Set the Temperature slider** > > **Temperature** runs from **Reserved** (0) to **Creative** (1) in steps of 0.1. New agents start at 0.7. > > ![The Temperature slider in Model configuration, between the Reserved and Creative labels.](annotated/18-temperature.webp "Reserved keeps answers close to your sources.") > > * **0 to 0.3:** steady wording that sticks to your sources; the safest choice for support > * **0.4 to 0.7:** some variety in phrasing > * **0.8 to 1:** looser, more inventive replies that are harder to predict ### Try it in the Playground **1. Ask a real customer question** Open **Playground** from the sidebar. On the **Chat bubble** preview, type a question your customers actually ask and send it. ![The Playground chat preview with the question In one sentence, what does QwryAI do? typed in the message box.](annotated/19-playground.webp "Ask what your customers ask.") **2. Check the reply against your sources** The answer streams into the preview. Compare it with your content, then adjust the instructions or add data where it falls short. ![The Playground chat preview showing the question In one sentence, what does QwryAI do? and the agent's one-sentence answer.](annotated/20-playground-reply.webp "Check the answer, then refine.") Include at least one question your content can't answer, to see how the agent handles a gap. A healthy first test looks like this: ```text Visitor: Do you ship to New Zealand? Agent: Yes, we ship to New Zealand, as well as Australia and the US. Orders over $80 ship free. Visitor: Can I pay in instalments? Agent: I can't confirm that from the information I have. Would you like me to pass your question to our team? ``` The first answer comes straight from a Plain Text source. The second shows the agent admitting what it doesn't know instead of inventing a policy, which is what you want. If it guesses, tighten your instructions or Guardrails. If it misses something your content does cover, check that the source shows **Synced** and that the page has real text on it. > [!NOTE] > > Changes to instructions, Guardrails, the model and the Chat bubble's look are saved to a draft. The Playground always uses the draft, but customers keep seeing the live agent until you select **Publish** in the top-right corner, next to the count of unpublished changes. Data sources, the **Visibility** toggle and **Specific domains** aren't drafted: they apply straight away. See [Drafts and publishing](/docs/user-guides/chatbot/drafts-and-publishing). ## Step 3: Deploy to your website ![Selecting Deploy, choosing Website widget, scrolling the Website bubble panel to the Widget setup code, pointing to Copy, and closing the panel.](walkthroughs/deploy.gif) ### Navigate to the Channels section **1. Open Channels and manage the Chat bubble** When you're happy with the answers, open **Channels** in the sidebar and select **Manage** on the **Chat bubble** card. ![The Channels page with the Chat bubble, Help page and Center Stage cards, each with a Manage button.](annotated/21-channels.webp "Channels › Chat bubble › Manage.") > [!NOTE] > > **Visibility:** the Chat bubble's **Overview** tab has a **Visibility** toggle. While it's off, the bubble doesn't appear on your site and no messages reach your agent. Leave it on to go live. ### Choose your deployment method QwryAI can also answer on a hosted Help page, in Center Stage, and in messaging channels such as WhatsApp, Instagram and email. This guide uses the Chat bubble, the most common choice for websites. **1. Open Deploy** In the Chat bubble editor, open **Deploy**. Under **Deploy on** you'll find **Website widget**, **Website iframe**, **Shopify** and **WordPress**. ![The Deploy menu open under DEPLOY ON, listing Website widget, Website iframe, Shopify and WordPress.](annotated/22-deploy-menu.webp "Deploy on: four ways in.") > [tab] Website widget (Recommended) > > **A floating bubble on every page** > > A round button sits in the corner of your site and opens the chat when a visitor clicks it. > > **1. Select Website widget** > > This opens the **Website bubble** sheet with your code. > > ![The Deploy menu with the pointer on Website widget.](annotated/23-website-widget.webp "Website widget opens the Website bubble sheet.") > > **Why choose it:** > > * Stays out of the way of your page design > * Visitors open and close it when they like > * Works on phones as well as desktops > * Supports [identity verification](/docs/developer-guides/website-integration/identity-verification) for signed-in visitors > > **Best for:** online stores, business sites, blogs > [tab] Website iframe > > **The chat built into a page** > > The full chat window sits inside your page layout, always open. > > **1. Select Website iframe** > > The **Website iframe** sheet gives you the code under **Iframe setup**. > > ![The Website iframe sheet with the Iframe setup embed code and a Copy button.](annotated/25-website-iframe.webp "An inline chat window for one page.") > > **Why choose it:** > > * Always visible, with no button to find > * Fits a dedicated support or contact page > * Size it yourself: the code sets `width="400"` and `height="600"`, which you can change > > **Best for:** help pages, contact pages, product support sections ### Add code to your website **1. Copy the code** On the **Website bubble** sheet, select **Copy** under **Widget setup**. If **Specific domains** is on, make sure your site's address is in the list, one domain per line. Not the one installing it? **Send instructions via email** sends the steps to a teammate, and **Copy prompt** gives you instructions to paste into an AI coding tool. ![The Website bubble sheet with Send instructions via email, Copy prompt, the Specific domains toggle, and the Widget setup embed code with a Copy button.](annotated/24-embed-code.webp "Copy the code under Widget setup.") **2. Paste it into your site's HTML** Paste the code just before the closing `` tag of every page that should show the bubble. In a site builder or CMS, use its custom code or footer scripts setting. ```html ``` > [!TIP] > > The code waits until your page has finished loading before it fetches the chat, so it never holds up your site, wherever you paste it. **3. Save and publish your site** Save the change and publish your website as you normally would. > [!TIP] > > Using a site builder? Follow the step-by-step guide for [WordPress](/docs/user-guides/integrations/wordpress), [Webflow](/docs/user-guides/integrations/webflow), [Wix](/docs/user-guides/integrations/wix), [Weebly](/docs/user-guides/integrations/weebly), [Framer](/docs/user-guides/integrations/framer) or [Bubble](/docs/user-guides/integrations/bubble). Shopify stores can install from **Deploy › Shopify**. ### Verify installation Open your website in a new browser window. The Chat bubble appears in the corner; open it and send a test message. > [!TIP] > > **You're live.** Your agent is now answering visitors on your website. > [!TIP] > > Want more control? The [Developer Guide](/docs/developer-guides/overview) covers the JavaScript embed and [identity verification](/docs/developer-guides/website-integration/identity-verification). ### Customize appearance (optional) **1. Open the Display tab** Back in the Chat bubble editor, open **Display**. Its sections are **Content**, **Capabilities**, **Style**, **Typography**, **Floating bubble** and **Localization**, and the preview beside them updates as you edit. ![The Chat bubble editor on the Display tab with the Content, Capabilities, Style, Typography, Floating bubble and Localization sections beside the live chat preview.](annotated/26-appearance-display.webp "Display: six sections and a live preview.") **2. Open Style** **Style** sets the theme, accent color and corner radius. Bubble position lives under **Floating bubble**. ![The Display tab with the Style section open, showing theme and color settings next to the chat preview.](annotated/27-appearance-style.webp "Style: theme, accent color and radius.") See [Channels](/docs/user-guides/chatbot/channels) for every Chat bubble setting. Display changes go to your draft, so select **Publish** when you're done. > [accordion] Branding options > > * **Agent picture** and **Display name** in **Content** > * **Initial message** and **Suggested messages** in **Content** > * **Theme**, **Accent color** and **Radius** in **Style** > * Bubble **Position**, icon and **Chat bubble button color** in **Floating bubble** > [accordion] Behavior settings > > * **Auto show initial messages pop-ups after set duration**, with its own setting for mobile > * **Collect user feedback**, which adds thumbs up and down to replies > * **Attachments** and **Voice to text (Dictation)** in **Capabilities** ## What a good first AI agent looks like A first agent doesn't need every feature switched on. Before you point customers at it, check that: * The Playground's **Data sources** card says **Synced**. * Your sources answer the questions customers ask you most often. * Your instructions name who the agent works for, what it covers, and what it says when it can't answer. See [Build](/docs/user-guides/chatbot/build). * You've tried it in the [Playground](/docs/user-guides/chatbot/playground) with real questions, including one it shouldn't be able to answer. * A visitor can reach a person, through the [Escalations](/docs/user-guides/chatbot/actions/escalate-to-human) Action or a contact address in the instructions. * You've selected **Publish**, so your latest instructions and settings are live. * The Chat bubble shows on your live site and answers a test message. * Someone on your team will read the first conversations in [Inbox](/docs/user-guides/chatbot/activity) and fix wrong answers. ## Common first-day mistakes | Mistake | What happens | Fix | | - | - | - | | Saving changes but never publishing | The Playground shows your new instructions; your website still uses the old ones | Select **Publish** in the top-right corner. See [Drafts and publishing](/docs/user-guides/chatbot/drafts-and-publishing). | | Leaving setup before selecting **Create agent** | No agent is created and nothing trains; the scan only listed pages | Go back to setup and finish with **Create agent**. | | Turning off **Visibility** on the Chat bubble | The bubble disappears from your site and messages don't reach your agent | Turn **Visibility** back on in the Chat bubble's **Overview** tab. See [Channels](/docs/user-guides/chatbot/channels). | | Turning on **Specific domains** without your site in the list | The bubble doesn't load on your site | Add your site's address under **Specific domains**, one per line. | | No instruction for questions it can't answer | The agent may stray beyond your content | Tell it to answer only from its sources and what to say otherwise; put firm rules in **Guardrails**. See [Best Practices](/docs/user-guides/quick-start/best-practices). | ## Frequently asked questions > [accordion] Why does my agent say it doesn't know the answer? > > Your agent answers from its [data sources](/docs/user-guides/chatbot/data-sources), so it says it can't confirm something when the answer isn't there or can't be read. Check that: > > * The Playground's **Data sources** card says **Synced**, not **Training** or **Not synced**. > * The page or file has real text. Some websites block crawlers, and pages that load their content later may come through empty. > * The page was added. For a website, open the source in **Build › Data sources** and check its page list. > > To fill a gap fast, add a **Plain Text** source or a **Q&A Pair** with the answer. In **Inbox**, **Revise answer** on a reply opens that question in **Knowledge gaps**, where you can supply the right answer. > [accordion] How long does training take? > > Usually a few minutes, depending on how much content you added. Training runs in the background: the **Data sources** card shows **Training** while it works and **Synced** when it's done, and you can keep testing meanwhile. > [accordion] Do I need to retrain when I update my website? > > Edits inside QwryAI take care of themselves: adding, editing or deleting a source trains your agent again. For changes on your website, open the website source and select **Resync**. On **Growth** and **Enterprise**, **Auto-resync** on a website source checks for updates every week. > [accordion] Why don't my changes show up on my website? > > Instructions, Guardrails, the model and the Chat bubble's look are saved to a draft. The Playground uses the draft; your website uses the live agent until you select **Publish**. See [Drafts and publishing](/docs/user-guides/chatbot/drafts-and-publishing). > [accordion] Why isn't the Chat bubble showing on my website? > > Check that you pasted the whole code, that **Visibility** is on, and that your site is listed if **Specific domains** is on. Your browser's developer console names the cause when the bubble is hidden or the domain isn't allowed. Caching plugins and ad blockers can also hide it, so try a private window. See the [FAQ](/docs/faq) for more checks. > [accordion] How many agents can I create? > > It depends on your plan: 1 on **Free** and **Starter**, 5 on **Growth**, and as many as you need on **Enterprise**. When you reach the limit, **Create agent** opens **Plans** so you can upgrade. ## Next steps You've built, trained, tested and deployed your first agent. Where to go next: > [card] Best Practices | /docs/user-guides/quick-start/best-practices | Sharper instructions, better sources and the right model for better answers. > [card] Actions | /docs/user-guides/chatbot/actions/actions-overview | Let your agent escalate to your team, collect leads, book meetings and more. > [card] Integrations | /docs/user-guides/integrations/integrations-overview | Connect messaging channels, helpdesks and the tools you already use. > [card] Analytics | /docs/user-guides/chatbot/analytics | See what customers ask and how well your agent answers. > [!NOTE] > > **Need help?** Browse the [FAQ](/docs/faq) or [contact us](/contact).