--- title: "Adoption Agent settings: response language, custom instructions, handover, and limits" slug: "ai-assistant-settings-and-advanced-customizations" description: "Customize your AI Assistant with advanced settings, including language preferences, auto-training, and persistent knowledge for enhanced performance." tags: ["Advanced Customizations", "Persistent Knowledge"] updated: 2026-11-13T16:29:34Z published: 2026-11-13T16:29:34Z canonical: "help.userflow.com/ai-assistant-settings-and-advanced-customizations" --- > ## 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. # Adoption Agent settings: response language, custom instructions, handover, and limits Adoption Agent settings in Userflow control how an agent answers: which language it uses, how often it retrains, the instructions and knowledge you give it, what happens when a user needs a person, how many credits it can use, and the text users see. Open an agent to change its settings. After you change them, click **Train**, check the result in **Test chat**, and publish the agent so the changes reach users. ![The settings panel of an Adoption Agent](https://cdn.us.document360.io/9697557a-eb5d-476f-9b09-062b0f7bdcbd/Images/Documentation/image(367).png) > [!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. ## Which language does the Adoption Agent answer in, and how often does it retrain? The Adoption Agent's response language and retraining schedule are both set under **Language settings and training frequency** in the agent's settings. - **Response language:** the language each user writes in (the default), or always one language you choose. To show a different agent for each language, see [Adoption Agent languages: which language it answers in and one agent per language](https://help.userflow.com/docs/ai-assistant-localization). - **Auto-training:** how often the agent retrains on its sources. The default is **Never**. If your content changes often, choose a more frequent schedule. ![Response language and auto-training options in Adoption Agent settings](https://cdn.us.document360.io/9697557a-eb5d-476f-9b09-062b0f7bdcbd/Images/Documentation/image(368).png) ## What can I change in Adoption Agent advanced customization? Advanced customization in the Adoption Agent lets you change how the agent behaves, give it knowledge it should always have, and influence which source content it uses. Make changes one at a time so you can see the effect on answers, and contact us if you'd like help. > [!NOTE] > Plan availability > > Advanced customizations are available on certain plans. To check whether they're included on your plan, see your [billing settings](https://app.userflow.com/app/_/settings/billing). - **Custom instructions:** tell the agent how to behave. Think of these as commands or requests. - **Persistent knowledge:** information the agent should always have, whatever the user asks. - **Source relevance keywords:** steer which source content is picked for each user. - **Static fallback message:** the message users see when the agent can't answer. Custom instructions, Persistent knowledge and Source relevance keywords use [Liquid templates](https://help.userflow.com/docs/liquid-templates), so they can include user attributes. Don't put personally identifiable information (PII) in them, because they are sent to OpenAI. You can write these three fields in English or any other language, whatever language the agent answers in. Only the user-facing texts need to be in the agent's language. ### Which AI model does the Adoption Agent use? Every Adoption Agent runs on the AI model Userflow chooses, and Userflow upgrades that model for all agents at once. There's no AI engine setting to change. It was removed from Advanced customization in November 2026. When Userflow upgrades the model, every published Adoption Agent switches to it automatically. You don't need to retrain or republish, and there's nothing to set on your side. If an older guide or screenshot shows an **AI engine** field or an **Upgrade to Latest** button, you can ignore it: neither is in the product any more. ### Custom instructions Custom instructions tell the Adoption Agent how to behave. Use them for commands, not facts: put information the agent should know in [Persistent knowledge](https://help.userflow.com/docs/ai-assistant-settings-and-advanced-customizations#persistent-knowledge). ![The Custom instructions field in Advanced customization](https://cdn.us.document360.io/9697557a-eb5d-476f-9b09-062b0f7bdcbd/Images/Documentation/image(260).png) For example, imagine you have an accounting software with mixed documentation for corporations and sole proprietorships. Rules differ depending on the user's company type, and you want the agent to provide appropriate information accordingly. If you have a user attribute called `company_type`, you can use the following example: ```plaintext {% case user.company_type %}        {% when "Corporation" %}        Favor information about Corporations and avoid information about Sole Proprietorships.        {% when "Sole Proprietorship" %}        Favor information about Sole Proprietorships and avoid information about Corporations.        {% endcase %} ``` Another example involves users with varying technical expertise. Technical users may prefer API and code solutions, while non-technical users might lean toward UI-based solutions. If you have a user attribute called `technical_level` set to either `low` or `high`, use the example below: ```plaintext {% case user.technical_level %}        {% when "low" %}        The user is not very technical; prioritize UI-based solutions over code.        {% when "high" %}        The user is highly technical; prioritize API or code solutions.        {% endcase %} ``` Multiple instructions can be combined in the same field. Ensure all user attribute combinations are tested. #### Common ways to use Custom instructions Custom instructions can steer which content the Adoption Agent draws on, as in the company type and technical level examples in "Custom instructions", and they can also change how it behaves. Customers use these patterns today: **Enforce a response language.** Useful when your Agent serves a single-language audience and you don't want it matching the language of the incoming question. ```plaintext Always respond in Portuguese, regardless of the language the question is asked in. ``` **Gate content by plan or segment.** Keep content for one tier of your product out of answers given to users on another. This is one of the most common uses of the field. ```plaintext {% case group.plan %}        {% when "starter" %}        Do not describe advanced reporting or API features. If asked, say these are available on higher tiers and point to the pricing page. {% endcase %} ``` **Adjust tone by audience.** If your product serves distinct user groups, you can shift register per group rather than writing one tone for everyone. ```plaintext {% case user.audience_segment %}        {% when "student" %}        Use a casual, informal tone. Keep sentences short and skip jargon.        {% when "administrator" %}        Use a precise, professional tone. Technical terminology is fine. {% endcase %} ``` **Prioritize one source over another.** If two of your sources cover the same topic and the wrong one keeps winning, name the URLs you want favored. ```plaintext When content from both https://help.example.com and https://www.example.com is relevant to a question, prefer the content from https://help.example.com. ``` #### Custom instructions vs. Flow-level conditions You can control which Flows surface in Agent results in two places: here in **Custom instructions**, or in the conditions on an individual Flow in the Flows source panel. You don't need both. Configuring the same rule in both places does the same job. Two things to know before you choose: - **Contradictory rules combine, they don't override.** If you filter a Flow one way in Custom instructions and the opposite way at the Flow level, the two conditions are applied together—and the Flow may never surface for anyone. Configure the rule in one place. - **Flow-level conditions are the more reliable of the two.** Custom instructions are prompt-based, so the AI model interprets them, which leaves room for filtering that doesn't behave exactly as written. Flow-level conditions are a structured configuration and behave predictably. For gating you need to hold—plan-based or segment-based access rules—use Flow-level conditions. ### How long can Custom instructions and Persistent knowledge be? Custom instructions and Persistent knowledge in the Adoption Agent each have two limits: - **10,000 characters to save.** Above this, the field won't save. You get a server error naming the field, and nothing is saved. - **1,000 characters to be used.** Between 1,000 and 10,000 characters the field saves normally, but it is left out of the request to the Agent when a user asks a question. It's dropped whole, not shortened, so the Agent answers as if the field were empty. Both limits count characters after Liquid renders, not what you typed. A short template that pulls in long attribute values can go over 1,000 characters for real users while looking short in the editor. When a field is dropped, **Test chat** shows a warning naming the field, the 1,000-character limit and the actual length. End users never see this warning. Run a test chat after every change to these fields, with a real user's attributes rather than an empty template. #### What to do when Custom instructions or Persistent knowledge is too long If Custom instructions or Persistent knowledge goes over 1,000 characters: - **Move documentation into a source.** Text that reads like a help article or a style guide belongs in a source, not in these fields. - **Split what's left.** Behavior rules go in Custom instructions, facts about the user go in Persistent knowledge, and everything else goes in a source. ### Persistent knowledge Persistent knowledge is information the Adoption Agent should always have, whatever the user asks. Your entire knowledge base is too large to send with every message, so we employ smart techniques to send only the most relevant information. Not all regular source content is transmitted to the agent with each message. Do not use this field for specific instructions (use [Custom instructions](https://help.userflow.com/docs/ai-assistant-settings-and-advanced-customizations#custom-instructions) instead), as the agent will not act on them. The content here is treated like your website's content, with the only difference being its constant availability to the agent, irrespective of user input. Refer to the user as "the user" in the text. The agent knows there is a user and that its replies are intended for them (although it doesn't know the user's identity). Here's an example where the agent receives information about the user and their company. In this case, we're using our [Companies feature](https://help.userflow.com/docs/companies) to include attributes at the user level, company level (called `group`), and company membership level (called `group_membership`). ```plaintext Information about the user:        - User's role in the company: {{group_membership.role}}        Information about the user's company:        - Company legal entity type: {{group.company_type}}.        - Pricing plan: {{group.plan}} ``` The agent can now combine this knowledge with other information related to the user's query to provide more accurate answers. For example, if your documentation states that a specific feature X is only available on the "Pro" plan and the agent is informed that the user's plan is "Basic," then when a user asks, "Why can't I see feature X?", the agent can intelligently answer that it's because the user is not on the "Pro" plan. Persistent knowledge is limited to 1,000 characters after Liquid renders. See "How long can Custom instructions and Persistent knowledge be?" ### Source relevance keywords Source relevance keywords help the Adoption Agent pick the right source content for each user. Userflow already picks the most relevant content for each message; this field lets you influence that choice per user. Keep this field short and free of unnecessary words. Ideally, include just 1-5 comma-separated keywords. The field is limited to **100 characters after Liquid renders**, so a template that pulls in long attribute values can go over even when it looks short in the editor. In the accounting software example under "Custom instructions", if a user asks, "How do I do X?" and your documentation contains instructions for performing X for both corporations and sole proprietorships, simply adding the `company_type` attribute to this field will increase the likelihood of selecting the correct documentation. Example field value: ```plaintext {{user.company_type}} ``` ### Static fallback message A static fallback message is the text the Adoption Agent shows when it can't answer a question. Use it to point users to more help, such as your support team. To set one, open the agent's **Advanced customization**, turn on the static fallback message toggle and enter your message. Format it with the rich-text toolbar. ![The static fallback message setting in Advanced customization](https://cdn.us.document360.io/9697557a-eb5d-476f-9b09-062b0f7bdcbd/Images/Documentation/image(258).png) ### What does the Adoption Agent do when it can't answer? When the Agent has no relevant information for a question, it falls back rather than guessing. If you have set a static fallback message, the user sees exactly that. If you have not, the Agent writes its own short reply saying it does not have an answer, so the wording varies from one question to the next and is not something you can edit anywhere. Setting a static fallback message is the only way to control what people see in this situation. ### Known limitation: the Agent keeps context for the first five questions The Agent remembers the first five questions in a conversation, so a follow-up such as "can you clarify step 4" is understood in context. From the sixth question on, each message is matched against your content from scratch. It will usually still get an answer, but that answer may come from a different article, and nothing in the reply shows that the subject has changed. In longer conversations, ask each question in full. Instead of "can you clarify step 4", ask "how do I select an element for a tooltip". ### Can end users see their past conversations? No. End users cannot open conversations from earlier sessions, and starting a new chat begins with no history. The full conversation history is available to you as an admin under [Adoption Agent analytics](https://help.userflow.com/docs/ai-assistant-analytics-insights). ### Why do personalized fields look empty in Test chat? If Test chat shows **Test as user**, it only fills in user and company attributes when you set both **Test as user** and the company next to it (**…in company**), and that user belongs to that company. If either is missing, attributes render empty. Your fields then look shorter than they will for real users, and `if` and `case` conditions fall through to their default branch. Two more things to check while testing: - **Attribute values come through as text.** Compare them to quoted values. Write `{% if user.is_trial == "true" %}`, not `{% if user.is_trial == true %}`. See [Liquid templates](https://help.userflow.com/docs/liquid-templates). - **Write the rendered result as a sentence.** The Agent may skip instructions that read like data, such as `PLAN=[starter]`. Render something like `The user is on the starter plan.` instead. ### Use user and company attributes in Liquid templates Custom instructions, Persistent knowledge and Source relevance keywords use [Liquid templates](https://help.userflow.com/docs/liquid-templates), so you can add user and company attributes to them. Add user/company attributes by enclosing them in double curly braces. User attributes are nested under `user.`, company attributes under `group.`, and company membership attributes under `group_membership.`. The term "group" is used here because it is the technical term we use for companies, just as you call `userflow.group(companyId)` in Userflow.js to associate a user with a company/group. Example: ```plaintext User attribute: {{user.example_attribute}}        Company attribute: {{group.example_attribute}}        Company membership attribute: {{group_membership.example_attribute}} ``` With Liquid, you can use control flows such as `if`/`case`, iterate through lists, format strings, and more. Refer to the [Liquid documentation](https://shopify.github.io/liquid/) for additional information. ## Let users rate Adoption Agent answers User feedback settings add a rating to the end of each Adoption Agent reply, so users can say whether it helped. You can also add your own message. 1. Select your **Rating mode**: **None**, **Like/dislike**, or **Scale (CSAT)**. 2. Enter the placeholders and feedback messages users see when they leave feedback. ![Rating mode and feedback message fields in Adoption Agent settings](https://cdn.us.document360.io/9697557a-eb5d-476f-9b09-062b0f7bdcbd/Images/Documentation/image(302).png) 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). ## Hand a conversation to a person (human agent handover) The Adoption Agent can hand a conversation off to a human when it detects a user wants — or needs — one, instead of leaving them stuck in chat or hitting a dead end. When a handover is triggered, the Agent shows the user a call-to-action that opens your team's configured live chat provider, passing them through to a person. Handover doesn't change anything else: the Agent still answers questions and recommends Flows so users can help themselves. Handover adds a path to a person for the moments that need one. ### When a handover happens The Agent recognizes a handover moment in three ways: - **The user asks for a human.** Intent is detected directly from their message (for example, "transfer me to support"). - **An answer wasn't helpful.** The user leaves a dislike on a reply. - **The Agent couldn't answer.** The question went unanswered (fallback). Each of these is configured independently — you don't have to turn all three on. ### What handover doesn't do Handover opens a live chat widget. It doesn't send email, and it doesn't forward the conversation anywhere. If your support runs through an inbox rather than a chat widget, handover on its own won't reach it. Two things you can do instead: - **Add an Email option to your Resource Center Contact block.** The Contact block can show Email, Phone and Chat. The Email option shows the user your support address so they can write in themselves. It shows the address rather than sending anything, so the user still starts the email. See [Resource Center Implementation Guide](https://help.userflow.com/docs/resource-center). - **Use Custom/other as your live-chat provider** and point it at whatever your team does use, if that tool exposes a JavaScript function to open it. The conversation itself isn't passed along in either case. Passing a summary of the Agent conversation to the human agent is a later phase and isn't available yet. ### Turn on human agent handover **Before you start:** your live-chat provider's widget must already be installed and loading on the pages where users will request a handover. Handover opens the widget you've already got. It doesn't install or embed one. If the widget isn't present on the page when the user clicks the CTA, nothing will happen. 1. Open your **Adoption Agent** and go to **Human agent handover** in the Adoption Agent settings. 2. Toggle **Enable human agent handover** on. 3. Choose your **Live-chat provider**: Crisp, Freshchat, Help Scout, HubSpot, Intercom, Zendesk Web Widget (Classic), or Zendesk Web Widget (Messenger). If your provider isn't listed, choose **Custom/other** and add your own JavaScript to open your widget. These aren't integrations. Choosing a provider here doesn't connect Userflow to that provider's account, and no data passes between the two systems. Userflow simply calls the JavaScript function that opens the widget already running in your app. That's why there's nothing to authenticate and nothing to configure under **Settings > Integrations** — unlike the Analytics and CRM integrations, which do sync data. The same mechanism powers the Resource Center's Contact block; see [Chat and Knowledge bases](https://help.userflow.com/docs/chat-and-knowledge-bases). 4. Write the **message shown to end user** when a handover is offered. 5. Set the **CTA icon** (a built-in icon, an uploaded icon, or an icon URL) and the **CTA button text** for the button that opens your live chat provider. 6. Click **Train**, then **Test chat** to try it before publishing. Ask the agent to talk to a human, and confirm your message, icon, and button all appear and open your provider correctly. 7. Click **Publish** when you're ready. If you don't enable human agent handover, users who trigger a handover moment will continue to see the Agent's current generic response inviting them to reach out through a support channel, with no CTA button. ### Stop two chat buttons from showing in the same corner Most live-chat providers show their own chat button by default, which can compete with the Resource Center launcher and put two chat buttons in the same corner. The Resource Center is meant to be the primary corner widget, so users get a chance to help themselves before being handed to a live chat session. For **Freshchat**, turn it off in your Freshchat installation snippet by setting `hideChatButton: true`: ```javascript window.fcWidget.init({  // ...other settings  config: {    headerProperty: {      hideChatButton: true    }  } }); ``` Check your provider's own docs for the equivalent setting if you're using Crisp, Help Scout, HubSpot, Intercom, or Zendesk. ### Choose which handover triggers are active - **Fallback to human when no answer is found by the model.** A separate toggle in this same panel. When the Agent can't answer a question, the handover CTA is offered. The fallback message itself is still configured under [Advanced customization → Static fallback message](https://help.userflow.com/docs/ai-assistant-settings-and-advanced-customizations#static-fallback-message). - **Dislike leads to handover.** When a user leaves a dislike on a reply, the Agent offers the handover CTA. If this is off, disliking a reply doesn't offer a handover. Intent-based handover (a user asking for a person) is turned on by the **Enable human agent handover** toggle itself and has no separate switch. ### Handover analytics Handover activity is tracked on the Adoption Agent's **Analytics** tab, alongside existing usage and feedback metrics: - Handovers by type: intent, dislike and fallback - Total handover CTAs shown vs. clicked - A trend graph over time Use this to see how often, and why, users ask for a person, so you can spot gaps in the Agent's knowledge. ### Reporting across the Agent and your live chat tool A hybrid setup splits your support data across two systems, so it is worth knowing where the line falls. Userflow records everything up to the handover: the conversation itself, what the user asked, whether the Agent answered, the feedback they left, and which handover trigger fired. After the CTA is clicked, the conversation continues in your live chat tool and Userflow records nothing further. Your chat tool sees the human side but not the Agent conversation that preceded it, because the conversation is not forwarded. To report on the whole journey you need to bring the two sets of data together yourself. ## Agent-level limits Agent-level limits cap how many credits one Adoption Agent can use in one environment, to help manage costs and prevent misuse. They affect only the agent you're configuring. To cap usage across all your Adoption Agents, set a global limit instead. Set agent-level limits in the agent's settings under **Agent-level limits**, then publish the agent so the new limits apply. ![The Agent-level limits section of an Adoption Agent's settings](https://cdn.us.document360.io/9697557a-eb5d-476f-9b09-062b0f7bdcbd/Images/Documentation/image(714).png) For each limit's default and what happens when it's reached, see [Set agent-level limits for one Adoption Agent](https://help.userflow.com/docs/usage-limits-vs-global-limits#agentlevel-limits). For how agent-level limits and the global limit compare, see [Adoption Agent credits and usage limits: how billing works and how to cap usage](https://help.userflow.com/docs/usage-limits-vs-global-limits). ## Change the text users see in the Adoption Agent User-facing texts in Adoption Agent settings let you change the wording users see in the agent, so it matches your tone and brand. Write them in the language the agent answers in. These screenshots show where each text appears: ![Where the Adoption Agent's user-facing texts appear: question box and placeholder](https://cdn.us.document360.io/9697557a-eb5d-476f-9b09-062b0f7bdcbd/Images/Documentation/image(303).png) ![Where the Adoption Agent's user-facing texts appear: reply and feedback area](https://cdn.us.document360.io/9697557a-eb5d-476f-9b09-062b0f7bdcbd/Images/Documentation/image(304).png) ## Related articles - [Set up your Adoption Agent: add sources, test, publish, and add it to your Resource Center](https://help.userflow.com/docs/ai-assistant) - [Adoption Agent credits and usage limits: how billing works and how to cap usage](https://help.userflow.com/docs/usage-limits-vs-global-limits) - [Adoption Agent languages: which language it answers in and one agent per language](https://help.userflow.com/docs/ai-assistant-localization) - [Adoption Agent analytics: conversations, ratings, and Noteworthy Topics](https://help.userflow.com/docs/ai-assistant-analytics-insights) - [Chat and Knowledge bases](https://help.userflow.com/docs/chat-and-knowledge-bases) - [Liquid templates](https://help.userflow.com/docs/liquid-templates) ## Related - [Using Liquid templates in Userflow](/liquid-templates.md) - [Set up your Adoption Agent: add sources, test, publish, and add it to your Resource Center](/ai-assistant.md) - [Adoption Agent languages: which language it answers in and one agent per language](/ai-assistant-localization.md) - [Adoption Agent usage notifications: which emails Userflow sends and when](/managing-the-ai-assistant-usage-notifications.md)