--- title: "Set up your Adoption Agent: add sources, test, publish, and add it to your Resource Center" slug: "ai-assistant" description: "Userflow's AI Assistant delivers instant, automated answers in your app, reducing support tickets and enhancing user experience with accurate responses." tags: ["Automated Support"] updated: 2026-11-13T16:29:34Z published: 2026-11-13T16:29:34Z canonical: "help.userflow.com/ai-assistant" --- > ## Documentation Index > Fetch the complete documentation index at: https://help.userflow.com/llms.txt > Use this file to discover all available pages before exploring further. # Set up your Adoption Agent: add sources, test, publish, and add it to your Resource Center This guide shows how to set up an Adoption Agent in Userflow: create it, add the content it learns from, test it, publish it, and add it to your Resource Center so users can ask it questions. The Adoption Agent answers your users' questions inside your app, using your website, knowledge base, Flows and Action Flows as sources. > [!NOTE] > Privacy Assurance and Adoption Agent > > Userflow does not use AI inputs to train, fine-tune, or otherwise improve public large language models. However, to maintain the highest standards of data security, we strongly recommend training your Adoption Agent on non-sensitive data and instructing users not to submit any sensitive or private information in their Adoption Agent searches. Refer to our [Terms of Service](https://www.userflow.com/policies/terms) for additional details. > [!NOTE] > Already have an Adoption Agent? > > If you signed up for Userflow recently, an Adoption Agent was created for you and started training on your website during account setup. Open **Adoption Agent** from the sidebar to see it. To customize that agent, go to "Step 5: Configure your Adoption Agent settings". To build another agent, start at "Step 1: Create the Adoption Agent". ## How does the Adoption Agent work? The Adoption Agent in Userflow answers questions from the content sources you connect: your website, knowledge base, Flows, Action Flows, or support center. Users open it from your Resource Center. The Adoption Agent is one of Userflow's FlowAI features, alongside Smartflows, Signals, and Action Flows. Every Adoption Agent goes through the same steps before users can see it: 1. **Train.** Connect your content sources and click **Train**. Userflow fetches and indexes the content. 2. **Test.** Use **Test chat** to check the answers in the builder. Test chat doesn't use your plan's credits. 3. **Preview.** Click **Preview** to try the draft agent on your own site. Agent Preview doesn't use your plan's credits either. 4. **Publish.** Click **Publish**. 5. **Add it to your Resource Center.** Add the agent as a block so users can open it. ![An Adoption Agent answering a user's question in the Resource Center](https://cdn.us.document360.io/9697557a-eb5d-476f-9b09-062b0f7bdcbd/Images/Documentation/image(717).png) ## How does the Adoption Agent build an answer? Knowing how the Adoption Agent arrives at an answer makes it much easier to tune your sources and troubleshoot a response that isn't what you expected. Every question runs through the same four steps: 1. **Fragment.** Userflow breaks all of your connected content into small fragments—knowledge base articles, crawled pages, integration content, Text sources, and the descriptions attached to any Flows and Action flows you've added as a source. 2. **Score.** Every fragment is scored for relevance against the question the user actually asked. 3. **Generate.** The highest-scoring fragments are passed to the AI model, which Userflow chooses and manages, and the model writes the answer. 4. **Cite.** Every source that contributed to that answer is listed as a reference below it. Two things follow from this. **The Agent won't quote your articles word-for-word.** The AI engine writes each answer from the fragments it receives, so the phrasing won't match your source content exactly. That's expected behavior, not a fault. If the *substance* of an answer is wrong, treat it as a source or tuning problem rather than a wording problem. **An answer can cite more than two sources.** There's no cap at two. If fragments from four different pages all contributed, you'll see four references. ## What do Adoption Agent answers look like? Adoption Agent answers start with the direct answer, then give every step, option, and default the user needs, in 250 words or fewer. If a question is vague, the Agent answers its best reading of it instead of asking the user to clarify. ## Why does the Adoption Agent cite my blog instead of my help center? If the Adoption Agent keeps citing your marketing site or blog over your help center on a topic, that usually isn't a scoring fault. Users tend to phrase questions the way marketing copy is written rather than the way help articles are written, so those fragments score as genuinely more relevant. Both can also appear together. If a help article and a marketing page each contributed to an answer, both are listed as references. When you see one source crowding out another as a recurring pattern, name the URLs you want favored in [Custom instructions](https://help.userflow.com/docs/ai-assistant-settings-and-advanced-customizations#custom-instructions)—for example, telling the Agent to prefer your help center over your blog. Test the result in **Test chat** before publishing. ## Step 1: Create the Adoption Agent Adoption Agents are created and published like other Userflow content, such as Flows and Checklists, with one extra step: training. 1. Select **Adoption Agent** in the sidebar and click **Create Adoption Agent**. 2. Enter a name and click **Create agent**. ## Step 2: Add sources and train the Adoption Agent An Adoption Agent learns only from the sources you add. Add at least one, then train the agent. 1. Click **Add source** and choose a source type. Each type is explained under "Which content sources can the Adoption Agent learn from?" 2. Enter the source details in the panel on the right. 3. Click **Train**. Userflow fetches the content and trains the agent. Depending on how much content there is, this takes a few seconds to a few minutes. You can add more than one source, for example if your content is on both *yourdomain.com* and *help.yourdomain.com*. After you change a source or its settings, click **Train** again to apply the change. The web crawler can only read public pages. To use help center content behind a login, connect Salesforce Knowledge, Zendesk or Intercom instead. See "Which knowledge bases and documentation sites can I connect?" ## Step 3: Test the Adoption Agent Use Test chat to check how the Adoption Agent answers before anyone else sees it. 1. When training finishes, click **Test chat** and ask questions your users would ask. The answers appear in the Test chat window. ![The Test chat button in the Adoption Agent builder](https://cdn.us.document360.io/9697557a-eb5d-476f-9b09-062b0f7bdcbd/Images/Documentation/image(249).png) 2. If an answer is off, adjust the source and click **Train** again. Common fixes: - **Leave out pages that don't belong.** Turn on **Control URLs to visit** and add the URLs to **Do not visit URLs matching**. Click **+** to add more than one. - **Strip menus, headers and footers.** Add CSS selectors to **Only include HTML matching CSS selector** or **Exclude HTML matching CSS selector**. To see the text the agent stored for a page, click the number of documents trained and open a document from the list. See "Keep only the main page text". ![The documents trained count in the Adoption Agent builder](https://cdn.us.document360.io/9697557a-eb5d-476f-9b09-062b0f7bdcbd/Images/Documentation/image(380).png) ## Step 4: Preview the Adoption Agent on your own site After Test chat, use Agent Preview to open your own site with your draft Adoption Agent running in it, so you can try it the way your users will. You don't need to publish the Adoption Agent or your Resource Center first. 1. In the Adoption Agent builder, click **Preview**. 2. Enter the URL of the page to open, and choose whether to preview as a test user or as yourself. 3. Your site opens with the draft agent in your Resource Center. Ask it questions the way a user would. Before you preview: - Your Resource Center needs an Adoption Agent block. Any agent in the block works, because the preview shows the agent you're editing instead. If there's no block, Preview tells you what to add. - Changes to the agent's text and settings show in the preview right away. Changes to knowledge sources show only after you click **Train**. - Flows and Action Flows the agent suggests only run in the preview once they're published. Test chat and Agent Preview don't use your plan's credits. They use test credits, which have their own monthly ceiling of 500 credits shared across your account, and agent-level limits don't apply to them. Previewing your Resource Center or a flow does use your plan's credits. See [Test chat, Agent Preview, and Resource Center preview: which ones use credits?](https://help.userflow.com/docs/usage-limits-vs-global-limits#test-chat-vs-preview) ## Step 5: Configure your Adoption Agent settings Adoption Agent settings control which language the agent answers in, how often it retrains, custom instructions, handover to a person, usage limits, and the text users see. All of them are optional. See [Adoption Agent settings: response language, custom instructions, handover, and limits](https://help.userflow.com/docs/ai-assistant-settings-and-advanced-customizations). ## Step 6: Publish your Adoption Agent Click **Publish** when you're happy with the Test chat and Agent Preview results. A published Adoption Agent isn't visible to users yet. To show it, add it to your Resource Center, as described in "Step 7: Add the Adoption Agent to your Resource Center". ## Step 7: Add the Adoption Agent to your Resource Center Users open the Adoption Agent from your Resource Center, so add it there after you publish. 1. Select **Resource centers** in the sidebar. 2. Open your Resource Center. If you don't have one, create one, or see "Show only the Adoption Agent, without a full Resource Center". 3. Select **Add block > Adoption Agent**. 4. Choose your agent from the dropdown in the side panel, then set: - how it appears (text input or button) - the placeholder text or button tooltip text - whether to show a "contact support" button - conditions for when the block appears 5. Click **Preview** to try the Resource Center with the agent. This Resource Center preview uses your plan's credits. 6. Click **Publish** to make the agent available to users. Tip: place the Adoption Agent block at the bottom of the Resource Center and choose **Text input** under **Appearance**. Users then see the question box as soon as they open the Resource Center. ## Which content sources can the Adoption Agent learn from? An Adoption Agent can learn from several content sources at once, and you can publish more than one Adoption Agent for the same site. ### Which knowledge bases and documentation sites can I connect? - **Any public documentation site or help center.** Point the **Web crawler** at it. If a person can read the page without signing in, the Adoption Agent can read it too. - **Salesforce Knowledge, Zendesk and Intercom help centers**, including ones behind a login. Connect them under **Settings → Integrations** and they appear under **Add source**. These are the only authenticated sources the Agent reads directly. - **Other private or authenticated systems aren’t supported directly.** Confluence is the most common ask and there’s no Confluence source. Either publish the relevant pages somewhere public the crawler can reach, or paste the content into a **Text** source. - **Your own Userflow content**: Flows and Action Flows can be added as sources. See [Add a Flow as a source](https://help.userflow.com/docs/ai-assistant#add-a-flow-as-a-source). The **Knowledge base block** in a Resource Center is a separate feature with its own provider list. See [Chat and Knowledge bases](https://help.userflow.com/docs/chat-and-knowledge-bases). ## Add a Flow as a source Adding Flows as a source lets the Adoption Agent offer a matching Flow alongside its written answer, so users can start a guided walkthrough straight from the reply. Users finish the task instead of only reading about it, which can cut support tickets. You can add specific Flows or all of them. To add Flows to your Adoption Agent: 1. Click **Add source** or **Add another source > Flows**. ![The Flows option in the Add source menu](https://cdn.us.document360.io/9697557a-eb5d-476f-9b09-062b0f7bdcbd/Images/Documentation/image(673).png) 2. Click **+Add**. ![The + Add button in the Flows source panel](https://cdn.us.document360.io/9697557a-eb5d-476f-9b09-062b0f7bdcbd/Images/Documentation/image(674).png) 3. Select individual Flows to the Adoption Agent or click **+ Add all** to include all published Flows. ![Selecting Flows to add, with the + Add all option](https://cdn.us.document360.io/9697557a-eb5d-476f-9b09-062b0f7bdcbd/Images/Documentation/image(678).png) 4. Click a Flow in the **Flows source** panel on the right to edit its details. You can add a description manually or click the AI button to have AI generate the Flow’s purpose, add a URL that should launch when the Flow is selected, and add conditions for when this flow should appear in the Adoption Agent results. ![Editing a Flow's description, launch URL and conditions in the Flows source panel](https://cdn.us.document360.io/9697557a-eb5d-476f-9b09-062b0f7bdcbd/Images/Documentation/image(701).png) ### How users find Flows in Adoption Agent results When a user asks the Adoption Agent a question, the Agent matches their wording against the Flows you have added and returns a matching Flow alongside its written answer. The user starts the Flow from that response and is guided through the task in your app. **What the Agent matches on.** The Agent reads the Flow’s own content and the description set on its entry in the **Flows source** panel. Write that description the way a user would describe the task, not the way the Flow is named internally. “Connect a Stripe account for billing” matches more questions than “Billing v2 onboarding.” **Set a launch URL for page-specific Flows.** If a Flow only runs on a particular screen, add that URL to the Flow’s entry so the Agent opens the page when the user starts the Flow. **Use conditions to limit who is offered a Flow.** Add conditions on the Flow’s entry so an admin-only or account-specific walkthrough is only returned to users it applies to. **Only published Flows are included.** **+ Add all** adds your published Flows; a Flow you are still building will not be returned until it is published and the Agent is retrained. **Retrain after any change.** Adding a Flow, editing its description, or changing its conditions all require clicking **Train** before the change affects live answers. **Which Flows are worth adding.** The strongest candidates are the ones your team already links to by hand: - Setup and configuration tasks users ask about repeatedly—connecting an integration, inviting teammates, setting permissions. - Multi-step tasks that are slow to describe in writing but quick to demonstrate in the product. - Anything where your help article ends by telling the reader to go follow the steps in the app. ## Set up other Adoption Agent source types Each Adoption Agent source type has its own setup steps. Open a source type to see them. #### Web crawler ##### Crawl a website or help center The Web crawler starts at the given **Starting URL** and recursively follows all links. It will only follow links within the same path as the **Starting URL**. Examples: If your **Starting URL** is `https://example.com/docs`, it will read `https://example.com/docs/page`, `https://example.com/docs/sub/page`, and anything else under that path, but it will not read `https://example.com/other-page` since it’s not under the `/docs` prefix. It also won’t follow links to other domains. ##### Choose which pages the web crawler visits or stores To stop the web crawler from visiting certain pages, enable **Control URLs to visit** and add URL patterns to include or exclude. When a page is not visited, the crawler will not load it, meaning it won’t store its content or follow its links. If you want the crawler to visit certain pages but not store them as source information, enable **Control URLs to store**. When a page is marked as not stored, the crawler will load it and follow its links, but not store its content. This feature is useful for following links from index-like pages without including their content. For example, on a blog, you want the crawler to visit `/blog` and `/blog/page/:page` to find all old blog posts, so you can’t use the **Control URLs to visit** feature. ##### Keep only the main page text The web crawler extracts the text from each page's HTML and converts it to Markdown, which helps the agent understand headings, sections, code and other formatting. It’s a good idea to remove all text that’s not the main content of the page. To do this, use the **Only include HTML matching CSS selector** and **Exclude HTML matching CSS selector** settings. Examples: - If your documentation site wraps the main content in an `<article>` HTML tag, enter `article` under **Only include HTML matching CSS selector**. - If your website has `<header>` and `<footer>` HTML elements on all pages containing the top and bottom menus, enter `header, footer` under **Exclude HTML matching CSS selector**. After training the agent, click the **x documents** link in the builder header and explore some of the URLs to ensure the text is clean and free of irrelevant content. ##### Why does the web crawler store empty or partial pages? If your website loads content with JavaScript, the web crawler may store empty pages. If this happens, enable **Render JavaScript**. You can also enter a number of milliseconds to wait before capturing the content. Choose a duration you feel confident that your page will load within. If unsure, enter the maximum value of 10,000 (10 seconds), but note that higher values may slow down training. If the wait is shorter than your page needs, the crawler stores only what has rendered before it expires. Because page-load speed varies between crawls, the same page can be captured in full on one training run and partially or not at all on the next — which is a common reason an Agent answers a question correctly one week and can't find it the following week with nothing changed on your side. If answers come and go like that, raise the wait before changing anything else, and re-check the **x documents** link after training. If your website uses special proxies or captchas, you may not see any documents under **x documents** and may encounter error messages in the **Training log**. If this happens, try enabling the **Captcha/proxy workaround**. If the issue persists, contact Userflow support for assistance. ##### Refresh cached pages after your website changes The web crawler caches your web pages for up to one week. This speeds up retraining, as it only needs to reevaluate your URL patterns, CSS selectors, etc., without waiting for your website to respond with the full HTML. If your website content has changed, click the **Clear cache and train** button under the top-right three-dot menu in the builder. #### Action Flows ##### Add an Action Flow as a source ![Sources for adoption agents including options like Action flows and Intercom connections.](https://cdn.us.document360.io/9697557a-eb5d-476f-9b09-062b0f7bdcbd/Images/Documentation/actionflowscreenshot1(1).jpg) An Action Flow is a task the Adoption Agent performs for the user rather than guiding them through. Adding Action Flows as a source lets the Agent offer to run those tasks when a user asks for one. To add Action Flows to your Adoption Agent: 1. Click **Add source** or **Add another source** > **Action flows**. 2. Click **+ Add** in the **Action flows to suggest** panel. 3. Select the Action Flows this Agent should be able to run. 4. Click an Action Flow in the panel to set its **Action flow icon**, and use **Only suggest action flow if…** to limit which users it's offered to. 5. Click **Train**. The Agent decides when to recommend an Action Flow from the **Summary of action flow** written on the flow itself. Unlike a Flow, an Action Flow has no content for the Agent to read, so that summary is the only context it has. Users always confirm before an Action Flow runs — the Agent presents it as a card and nothing happens until the user clicks it. For the full setup, see [Create an Action Flow](https://help.userflow.com/docs/create-an-action-flow) and [Add an Action Flow to your Adoption Agent](https://help.userflow.com/docs/add-action-flows-to-your-adoption-agent). #### Text ##### Add plain text as a source The Text source gives the Adoption Agent information you don't want to publish on your website. For example, add a short text with your support hours and how to reach your team, so the agent can answer questions about getting help. #### Salesforce ##### Connect Salesforce Knowledge The Salesforce source loads your Knowledge Base articles directly via the Salesforce API. It works even if your help center requires user authentication. You can easily filter which data categories you want to include. How to set up: 1. Connect to Salesforce under **Settings > Integrations**. 2. Fill in your **Article URL template** under **Salesforce Knowledge Base settings**. This is how the agent will know how to link to your articles. Example: `https://help.mysite.com/s/article/{{ article.urlName }}`. If you don’t fill this field in, articles’ content will be used for answering, but the agent will not provide any source links. 3. Optional: By default, we’ll use the content of your articles’ **Title**, **Question** and **Answer** fields from Salesforce. If you’re using a different format for your articles, you can use a custom **Article content template**. If your articles have a custom field called, `CustomText__c`, then you can use it like this: `{{ layout_items.CustomText__c }}`. 4. **Salesforce** will now appear under the **Add source** button in the agent builder. #### Zendesk ##### Connect a Zendesk help center The Zendesk source loads your help center articles directly via the Zendesk API. It works even if your help center requires user authentication. You can easily filter which categories/sections you want to include. First, connect to Zendesk under **Settings > Integrations**. After that, Zendesk will appear in the **Add source** button under the agent builder. **⚠️ Existing Zendesk connections may need reconnecting** Zendesk is phasing out long-lived API tokens (April 30, 2026 – April 2027). If your Zendesk source was connected before Userflow's refresh-token update, the Adoption Agent's access to private Zendesk content may fail or silently go stale until you reconnect under Settings > Integrations. #### Intercom ##### Connect an Intercom help center The Intercom source loads your help center articles directly via the Intercom API. It works even if your help center requires user authentication. You can easily filter which categories/sections you want to include. First, connect to Intercom under **Settings > Integrations**. After that, Intercom will appear in the **Add source** button under the agent builder. ## Show only the Adoption Agent, without a full Resource Center If you don't use the full Resource Center but want the Adoption Agent in your app, create a Resource Center that contains only an Adoption Agent block. Next, have your developers disable the default Resource Center launcher by adding the following line before your `userflow.init()` call. This will prevent the round Userflow help button from appearing in the corner of your app: ```plaintext userflow.setResourceCenterLauncherHidden(true) ``` Then, click **Publish** in the resource center builder. As the default launcher is hidden, nothing will be displayed to users. Finally, request your developers to open the agent chat programmatically, such as when users click a custom button in your app: ```plaintext userflow.openResourceCenter() ``` An example of an event handler on a button: ```plaintext ``` ## How do users rate Adoption Agent answers? Users can rate each Adoption Agent reply with the thumbs-up and thumbs-down icons below it, then add a comment. You can turn ratings off or switch to a CSAT scale in the agent's [User feedback](https://help.userflow.com/docs/ai-assistant-settings-and-advanced-customizations#user-feedback) settings. Ratings and comments appear on the agent's **Analytics** tab. See [Adoption Agent analytics: conversations, ratings, and Noteworthy Topics](https://help.userflow.com/docs/ai-assistant-analytics-insights). ## Related articles - [Adoption Agent settings: response language, custom instructions, handover, and limits](https://help.userflow.com/docs/ai-assistant-settings-and-advanced-customizations) - [Adoption Agent languages: which language it answers in and one agent per language](https://help.userflow.com/docs/ai-assistant-localization) - [Adoption Agent credits and usage limits: how billing works and how to cap usage](https://help.userflow.com/docs/usage-limits-vs-global-limits) - [Create an Action Flow](https://help.userflow.com/docs/create-an-action-flow) - [Add an Action Flow to your Adoption Agent](https://help.userflow.com/docs/add-action-flows-to-your-adoption-agent) - [Chat and Knowledge bases](https://help.userflow.com/docs/chat-and-knowledge-bases) ## Related - [Resource Center](/resource-center.md) - [Adoption Agent settings: response language, custom instructions, handover, and limits](/ai-assistant-settings-and-advanced-customizations.md) - [Adoption Agent languages: which language it answers in and one agent per language](/ai-assistant-localization.md)