Skip to main content
Guidance is the heart of your agent’s behavior. It defines how your AI agent responds to customers, what actions it can take, and when to apply specific instructions. With guidance, you ensure consistent, high-quality customer service that aligns with your brand and business policies. Each guidance rule consists of:
  • Instructions: what your agent should do and how to communicate
  • Enabled tools: which actions and integrations it can use
  • Audience: who this guidance applies to (optional targeting)

Core components

Name. Descriptive identifier for organization, such as Premium Customer Service or Refund Policy. Instructions. Natural language description of what your agent should do, how to communicate, and what rules to follow. Active status. Toggle guidance on and off without deleting it. Only active guidance affects conversations. Allowed tools. Which capabilities the agent can use with this guidance, for example search_products or offer_handoff. Audience. Optional targeting rules that apply guidance only to specific user segments, channels, or contexts. Guidance editor showing name, instructions, active status toggle, allowed tools field, and audience targeting options

How guidance works

Multiple guidance rules. botBrains combines all active guidance that matches the current audience and gives it to your agent as a single prompt. The order matters for readability and logical grouping, but your agent uses all matching guidance together. Automatic tool detection. Reference tools in instructions using inline code (for example @search_knowledge), and botBrains automatically enables them. Liquid templating. Personalize instructions using variables like {{user.first_name}} or {{conversation.channel_type}}, with {% if %} blocks for dynamic behavior. Live vs. draft. Set guidance to draft while preparing new rules, then activate when ready to affect live conversations. Audience targeting. Apply different guidance based on customer attributes (plan tier, location), channel (website, Zendesk, Slack), or conversation context. Audience targeting panel showing attribute conditions with dropdown selectors for customer plan tier, channel type, and conditional logic

Best practices

Write specific instructions

Write guidance as if you were training a new team member. Be specific about what to do, when to use tools, and how to communicate.
Set explicit boundaries for topics outside your agent’s scope:

Structure long guidance with XML tags

When a rule exceeds 10–15 lines or covers multiple distinct areas, group sections with XML tags. For short, focused guidance, skip them.

Enable tools by mentioning them

Configured tools (actions, search tables, Unitools) aren’t available to the agent by default. Enable a tool by mentioning it with @ in your instructions, which also follows the best practice of explaining when to use it:
You can also enable tools manually in the Allowed Tools section of a rule.
Only enable the tools a rule needs. Extra tools add decision overhead and can lead to unnecessary tool calls.

Personalize with Liquid

Instructions support Liquid templating for dynamic, personalized behavior.
Store custom user data (subscription tier, company size, feature flags) in external attributes and access them via {{user.external_attributes.your_field}}.

Scope with audiences instead of conditionals

Use audience filters rather than cramming conditional logic into one rule. Separate rules per segment keep instructions focused and ensure the agent only has access to the tools each segment needs.
Audience filter builder showing user attribute conditions for enterprise customers

Order rules

The agent receives all matching rules as one combined prompt in list order. Audience filters are the primary scoping mechanism and order is secondary, but place the most important instructions first for clarity. Drag rules to reorder them. Guidance rules list showing drag handles and reorderable items for channel-specific rules

Examples

Name: Welcome MessageInstructions: “When a customer starts a conversation, greet them warmly and ask how you can help. Keep it brief and friendly.”Allowed Tools: None
Name: Process Refund RequestsInstructions:
Allowed Tools: search_orders, create_refundAudience: Customers with completed orders
Name: VIP Customer ServiceInstructions: “Provide exceptional service to VIP customers. Address by name, offer proactive solutions, and escalate immediately if you cannot fully resolve their issue.”Allowed Tools: search_knowledge, search_orders, assign_to_vip_teamAudience: user.customer_tier = "VIP"

Common patterns

Most agents combine several scoped rules. These patterns show how audience filters and tools work together across segments and channels.

Next Steps

  • Instruct AI Agent to decide which lever to pull when improving your agent
  • Procedures for multi-step workflows that need enforced sequencing
  • Actions to learn about the tools you can enable in guidance
  • Audiences to create customer segments for targeted guidance
  • Testing to validate guidance changes before deploying