# Write your agent's instructions and choose its model > Write your agent's instructions, pick its model and temperature, and compare settings side by side before you save **Build** is the part of QwryAI where you set up how your agent works: what it says, what it knows and what it can do. **Build › Instructions** holds your agent's written instructions, its AI model and its temperature, which together decide how it answers on every channel, from the Chat bubble to WhatsApp and email. It's for whoever owns the agent's behaviour, such as a support lead, a marketer or a developer. Change the instructions when the agent's tone, scope or rules aren't what you want, for example when it answers off-topic questions or doesn't offer a handoff. Change the model when answers are right but too slow, too shallow or too costly in credits. If answers are wrong because information is missing, fix your [Data sources](/docs/user-guides/chatbot/data-sources) instead. This page covers **Instructions**: the instructions themselves, the model, the temperature, and **Compare** for testing changes. The other Build sections have their own pages: | Build section | What it covers | | - | - | | **Instructions** | This page | | [Data sources](/docs/user-guides/chatbot/data-sources) | The content your agent is trained on | | **Knowledge gaps** | Questions your agent couldn't answer, ready for you to fill in | | [Actions](/docs/user-guides/chatbot/actions/actions-overview) | What your agent can do beyond answering | | [Procedures](/docs/user-guides/chatbot/procedures/procedures-overview) | Multi-step flows your agent follows | | **Approvals** | Who signs off before an Action runs, when you want a check | | [Widgets](/docs/developer-guides/widgets/overview) | Interactive cards and forms your agent can show | | [Voice](/docs/user-guides/chatbot/voice) | How your agent sounds and behaves in voice conversations | | [Guardrails](/docs/user-guides/chatbot/guardrails) | Rate limit, spam detection and country blocking | > [!NOTE] > > **Two different things are called Guardrails.** The **Guardrails** editor on this page holds rules you write for your agent's replies. The separate [Guardrails](/docs/user-guides/chatbot/guardrails) page in **Build** protects your agent from abuse: rate limit, spam detection and country blocking. ## Instructions Instructions set your agent's role, its behaviour and how it answers. Use them to give it context, set expectations and control how it replies. Open **Build › Instructions**. The **General** and **Guardrails** editors fill the left of the page, and the **Model configuration** panel on the right holds the **Model** menu and the **Temperature** slider. Use **Compare** in the header to test changes side by side. Your edits save to your [draft](/docs/user-guides/chatbot/drafts-and-publishing) as you type. ![The Instructions page with the General editor, the Guardrails editor below it, and the Model configuration panel with Model and Temperature on the right.](annotated/01-instructions.webp "Instructions, Guardrails and Model configuration.") > [!NOTE] > > Your edits go into a draft. Customers see them once you select **Publish** in the top-right corner, next to the count of unpublished changes. See [Drafts and publishing](/docs/user-guides/chatbot/drafts-and-publishing). ### General instructions **General** holds your agent's main instructions. QwryAI drafts them from your website when you create the agent. Use them to set out: * Your business or product * The agent's role and what it's responsible for * Its tone and how long its answers should be * Its goals and what you expect it to do * Anything else it should keep in mind These instructions are the foundation of every answer. The editor has bold, italic, underline and list buttons, and the expand button opens a larger editor. It holds up to 20,000 characters. ### Guardrails instructions Use **Guardrails** for rules your agent must always follow, such as: * Topics it must not discuss * Information it must never share * Safety or compliance requirements * What to do when it can't help * Limits on its role or what it offers Guardrails are for non-negotiable rules that apply to every conversation. This editor also holds up to 20,000 characters. ![The Guardrails editor below General on the Instructions page.](annotated/02-guardrails.webp "Rules for every conversation.") > [!TIP] > > Start with a short, clear description of your agent's purpose, then add specific instructions as you learn from real questions. For a full example you can copy, see [Best Practices](/docs/user-guides/quick-start/best-practices). ### Instruction examples by use case Good instructions name the business, the agent's job, what it should and shouldn't do, and what to say when it doesn't know. Replace the sample details with your own. > [tab] Customer support > > **General** > > ```text > You are the support assistant for Clearwave, a home internet provider. > Help customers with billing, setup, outages and plan changes. > > - Answer from your sources. If the answer isn't there, say you can't confirm > it and offer to create a support ticket. > - Ask one clarifying question when a request is unclear, such as which > modem or plan the customer has. > - Give troubleshooting steps as a numbered list, one action per step. > - Reply in the language the customer writes in. > ``` > > **Guardrails** > > ```text > - Never ask for or repeat passwords or full card numbers. > - Don't promise credits, refunds or repair dates. > - If a customer reports a safety issue, tell them to contact emergency services. > ``` > [tab] Sales > > **General** > > ```text > You are the sales assistant for Tallybook, accounting software for small businesses. > Help visitors understand the product, compare plans and decide whether it fits. > > - Ask what kind of business they run and how many people will use Tallybook > before you recommend a plan. > - Describe plans and prices only as your sources give them. > - When a visitor is ready to buy, offer to book a demo with the sales team. > - Keep replies to two to four sentences. > ``` > > **Guardrails** > > ```text > - Don't offer discounts or custom pricing. > - Don't make claims about competitors. > ``` > [tab] Ecommerce > > **General** > > ```text > You are the shopping assistant for Ridgeline, an online store for outdoor gear. > Help shoppers find products, answer sizing and delivery questions, and check orders. > > - Recommend products from the store that match what the shopper describes, > and say why each one fits. > - For order status, ask for the email on the order and the order number > before you look it up. > - Give delivery times and return rules exactly as your sources state them. > - If a shopper wants to return an item, explain the return policy, then > offer to start the return. > ``` > > **Guardrails** > > ```text > - Don't invent product features, stock levels or delivery dates. > - Don't recommend products from other stores. > ``` Instructions only describe what the agent should do. To let it book a demo, look up an order or start a return, add the matching [Actions](/docs/user-guides/chatbot/actions/actions-overview), such as [Calendly](/docs/user-guides/chatbot/actions/calendly), [Shopify Actions](/docs/user-guides/chatbot/actions/shopify-actions) or [Escalations](/docs/user-guides/chatbot/actions/escalate-to-human). For flows with several ordered steps, such as returns, use a [Procedure](/docs/user-guides/chatbot/procedures/procedures-overview). ### AI Model The model writes your agent's replies. Each model has its own strengths, speed and credit cost per reply. Open **Model** under **Model configuration** to choose one: you can search by name, and filter by credits per message and by what the model accepts (text, images, voice). ![The Model menu open under Model configuration, listing models with the credits each uses per message.](annotated/03-model-menu.webp "Each model shows its credits per message.") > [accordion] OpenAI > > * **GPT-6.1 Sol**: 2 credits > * **GPT-6.1 Terra**: 2 credits > * **GPT-6 Luna**: 1 credit > * **GPT-5.6 Terra**: 2 credits > * **GPT-5.5**: 4 credits > * **GPT-5.2**: 2 credits > * **GPT-OSS-120B**: 1 credit > * **GPT-OSS-20B**: 1 credit > [accordion] Anthropic > > * **Claude 5.5 Opus**: 5 credits > * **Claude 5.5 Sonnet**: 2 credits > * **Claude 5.5 Haiku**: 1 credit > [accordion] Google > > * **Gemini 3.8 Flash**: 2 credits > * **Gemini 3.6 Flash**: 2 credits > * **Gemini 3.5 Flash Lite**: 1 credit > * **Gemini 3.1 Pro**: 2 credits > * **Gemini 3.1 Flash Lite**: 1 credit > * **Gemini 3 Flash**: 1 credit > * **Gemini 2.5 Pro**: 2 credits > [accordion] DeepSeek > > * **DeepSeek-V4.1 Flash**: 1 credit > * **DeepSeek-V4 Flash**: 1 credit > * **DeepSeek-V3.1**: 1 credit > * **DeepSeek-R1**: 1 credit > [accordion] Grok > > * **Grok 4.7**: 2 credits > [accordion] Mistral > > * **Mistral Medium 3.5**: 2 credits > * **Mistral Small 4**: 1 credit > > When you choose a Mistral model, the model call that writes your agent's reply runs on servers in the EU. Other steps in handling a conversation may still run outside the EU, so a Mistral model doesn't on its own keep all conversation data in the EU. > [accordion] Moonshot AI > > * **Kimi K2.6**: 1 credit > [accordion] Z.ai > > * **GLM 5.3 Flash**: 1 credit > * **GLM 5.2**: 2 credits The Free plan offers a smaller set of models. Voice conversations can use any model except **Gemini 3.1 Pro** and **Gemini 2.5 Pro**, which are too slow for spoken replies. > [!TIP] > > For help choosing, see [Models comparison](/docs/user-guides/chatbot/models-comparison). ### Temperature Temperature sets how varied your agent's wording is. The slider runs from **Reserved** (0) to **Creative** (1) in steps of 0.1: * **Lower temperature (close to 0):** focused, consistent answers that stick closely to your sources * **Higher temperature (close to 1):** more varied, inventive wording that's harder to predict ![The Temperature slider in Model configuration, set to 0.7 between the Reserved and Creative labels.](annotated/04-temperature.webp "Drag between Reserved and Creative.") > [!NOTE] > > New agents start at 0.7. Try a lower value for support and see which suits your conversations. #### How temperature changes answers Temperature changes how an answer is worded, not what your agent knows. Say a customer asks "What are your opening hours?" and your sources say you're open 9 am to 6 pm, Monday to Friday: * **At 0**, the agent gives much the same answer every time: "We're open Monday to Friday, 9 am to 6 pm." * **Near 1**, the wording changes from one conversation to the next: "Happy to help! You'll find us open any weekday between 9 in the morning and 6 in the evening." Keep temperature low for support, billing and policy questions, where customers should get the same answer each time. Raise it if replies feel repetitive in conversations where variety helps, such as product suggestions. To see the difference with your own content, open **Compare** and give two panes the same model at different temperatures. ## Compare area Select **Compare** in the **Build › Instructions** header to open the compare view. The same button appears in the Playground header. ![The Compare view with two model panes side by side and the Exit, Add Model, Clear All and Reset Settings buttons above them.](annotated/05-compare.webp "Several versions of your agent, side by side.") Compare puts up to four versions of your agent side by side, each with its own settings, so you can see which settings suit you. A message you send goes to every synced pane, so you can judge each version's reply to the same question. ### Per-pane controls Each pane has its own controls: | Control | What it does | | - | - | | **Sync** | Turn it off to keep this pane out of shared messages | | **Settings** | Change this pane's instructions, the Actions it can use, temperature, top P, top K, frequency and presence penalties, maximum tokens and **Show citations**. **Apply settings to all instances** copies them to every pane | | **Save to global config** | Make this pane's settings your agent's main settings (saved to your draft) | | **Remove Pane** | Close this pane | ![A pane's Settings · Model 1 panel with its own General and Guardrails instructions, Actions checkboxes, Apply settings to all instances, and the Temperature and Top P sliders, above Done and Save to global config.](annotated/06-pane-settings.webp "Each pane has its own settings.") ### View controls Above the panes you can also: * **Add Model:** add another pane, up to four * **Clear All:** clear every pane's conversation * **Reset Settings:** set every pane back to your agent's main settings * **Exit:** go back to the Instructions page > [!TIP] > > Send the same question to two or three models at once and compare the answers before you choose one under **Model configuration**. ## Troubleshooting > [accordion] My agent has stopped replying > > **Possible cause:** your workspace has run out of credits. Every reply uses the credits of the agent's model, and the sidebar's **Credits available** card shows what's left. > > **Solution:** check **Usage** in your workspace sidebar, then upgrade or wait for your credits to reset. See [Usage](/docs/user-guides/workspace/usage). ## Frequently asked questions > [accordion] What's the difference between instructions and Procedures? > > Instructions apply to every conversation: your agent's role, tone, scope and rules. A [Procedure](/docs/user-guides/chatbot/procedures/procedures-overview) applies only when a conversation matches its trigger, and gives your agent ordered steps to follow, including the Actions to call. Use instructions for how your agent behaves in general, and Procedures for situations such as refunds or order problems where you don't want it improvising. > [accordion] How long can my agent's instructions be? > > **General** and **Guardrails** each hold up to 20,000 characters. Shorter instructions are easier to maintain: put facts such as prices and policies in your [Data sources](/docs/user-guides/chatbot/data-sources), and keep instructions for behaviour. > [accordion] Can each channel have different instructions? > > Yes. In the [Playground](/docs/user-guides/chatbot/playground), each channel's **Overview** tab has **Sync with global instructions**. Leave it on to use the instructions from **Build › Instructions**, or turn it off to write instructions for that channel only. > [accordion] Why don't my instruction changes show up for customers? > > Your edits save to a draft. The Playground uses the draft straight away, but your live channels keep the published version until you select **Publish**. See [Drafts and publishing](/docs/user-guides/chatbot/drafts-and-publishing). > [accordion] Which AI model should I choose? > > Start with a fast, 1-credit model such as **Claude 5.5 Haiku** or **GPT-6 Luna** for everyday support, and move up only if answers fall short. Send the same questions to a few models in **Compare**, and see [Models comparison](/docs/user-guides/chatbot/models-comparison) for each model's strengths. > [accordion] Should I put rules in General or Guardrails? > > Put context and everyday behaviour in **General**: your business and the agent's role, tone and goals. Put non-negotiable rules in **Guardrails**, such as topics to avoid, information never to share and compliance requirements. The **Guardrails** editor is different from the [Guardrails](/docs/user-guides/chatbot/guardrails) page, which covers the rate limit, spam detection and country blocking. ## Next steps > [card] Data Sources | /docs/user-guides/chatbot/data-sources | Add and manage the content your agent is trained on. > [card] Models comparison | /docs/user-guides/chatbot/models-comparison | See how the available models differ before you commit to one. > [card] Best Practices | /docs/user-guides/quick-start/best-practices | Proven ways to improve your agent's answers. > [card] Playground | /docs/user-guides/chatbot/playground | Preview your changes the way a visitor will see them.