AI Intent Detection and Agent Routing
Send each kind of customer message to the right AI agent, decide when the AI may answer, set memory, restrictions and timing, and use ## agent actions.
What you'll do: send each kind of customer message to the right AI agent, decide when the AI may answer at all, and give agents actions to perform.
Time: 20β30 minutes.
Intent is what the customer wants, not the exact words they typed. "Where's my parcel", "has it shipped yet" and "tracking?" are one intent. Everything here lives on one page: Chatbot Manager β AI β AI Configuration.
Before you start
β You have built at least one agent. Building agents is covered in Training Your AI: Knowledge Sets, URLs, Files and Live Data.
β If your bot has ever sent two replies to one message, read Preventing Bot Conflicts and Duplicate Replies first.
1. Open AI Configuration
Open Chatbot Manager and select your bot.
Click AI β AI Configuration.
Switch the AI Agent toggle on. Nothing below it appears while the toggle is off.
2. Choose who is on duty
In Active Agents, select every agent that may answer on this bot.
If one is missing, click + Create Agent, then Refresh to see it in the list.
Only agents chosen here can answer, and agents can transfer conversations only to other agents in this list.

3. Write the routing rules
Agent Routing decides which agent replies first and where chats can transfer.
Click + Add Rule.
In MESSAGE TYPE / WHEN TO USE THIS AGENT, describe the kind of message.
In ASSIGN AGENT, pick the agent.
Repeat for two or three rules covering the categories that dominate your inbox.
The product's own example: "pricing / buy / product" β Sales Agent, "bug / account / help" β Support Agent.
Writing a rule that works:
Describe the situation, not just the words. "Customer is asking what something costs, whether a discount applies, or how to place an order" routes better than "price, cost, buy".
Include the phrasings customers really use, including misspellings, abbreviations and mixed languages.
Keep rules distinct. If two rules both cover "my order hasn't arrived", merge the agents or sharpen the descriptions.
Add more rules only when a real conversation went to the wrong agent.
4. Decide when the AI may speak at all
AI Response Mode is the most important setting on the page. Choose one:
AI Agent for All Queries β the AI answers every message, even if a bot flow or keyword could match.
AI as a Fallback Only β bot flows and keywords run first; the AI answers only when nothing matches.
Choose fallback unless your flows are thin, or you have watched the AI handle real conversations and trust it.

5. Hand conversations to a team
Assign to Team or Department hands a conversation to people rather than to another agent.
Under Assignment, switch on Assign to Team or Department.
Choose a Team / Department.
Write an Assignment Message β the line the customer sees as they are passed across.
Decide on Do Not Assign Agent in Business Off Hour β see AI Customer Service: Business Hours and After-Hours Replies.
6. Set memory
Switch on Enable Contextual Memory. A Memory Window appears.
Set Memory Window to 2 to start.
Memory Window counts whole conversations (0, 2, 4 β¦). Each step up adds history and cost on every reply.
7. Keep the AI off certain subjects
Under Behavior & Restrictions:
In Restricted Topics, type a topic and press Enter. Repeat for each topic.
In Response for Restricted Keywords (500 characters), replace the default "Sorry, I cannot assist with this query. Please contact support." with a line that says what happens next, for example "I can't help with that one, but a colleague can. I've passed this on and someone will reply here shortly."
Use it for medical, legal and financial questions, complaints heading towards a dispute, and anything where a wrong answer costs more than a slow one.
8. Set timing and effort
Under Advanced Settings:
Set Delay for AI Reply (Seconds) β default
0, maximum 60. A few seconds lets a customer who sends three short messages finish the thought before the AI answers.Set AI Reasoning Level for Responses β
Low,MediumorHigh. Higher handles awkward questions better and costs more on every reply. Low is enough for a bot answering delivery questions from a tight knowledge set. Change one level at a time.Optional: switch on Enable Typing on Indicator to show the customer that a reply is being composed. Pair it with a delay or a High reasoning level.
9. Save and check
Click Save Settings.
Check the right-hand AI Assistant Overview rail shows your agents and routing.
Avoid Reset to Default. It discards the whole configuration.
10. Test with real phrasings
Message the bot from a real device using the phrasings your customers use.
When a message reaches the wrong agent, fix that rule's description rather than adding another rule.
11. Optional: give an agent actions
Actions are written into an agent's SYSTEM PROMPT.
Go to Chatbot Manager β AI β Agents and edit the agent.
In SYSTEM PROMPT, type
##. A list of actions appears.Pick the action, then pick its parameter from the list.
Write the condition around it, for example: "When the customer says the item arrived damaged, add the label
damaged-itemwith##add_label##and hand the chat to the returns role with##assign_human_role##."
One # inserts a custom field into a message; two ## make the agent perform an action.
Know which handover you mean.
##transfer_agent##moves the chat to another AI agent listed in Active Agents.##assign_human_member##and##assign_human_role##move it to a person β a fixed person, or the next person in a rota.
Be careful with the destructive ones.
##block_subscriber##and the two cancel-order actions change something real with no confirmation step. Give them narrow conditions or leave them out.
Store actions need the store first. Put
##shopify_store##before any Shopify action and##woocommerce_store##before any WooCommerce action. Product images go under Knowledge Sources β Media, not in the prompt.

β Done whenβ¦
β Active Agents lists every agent that should answer
β Each main kind of message has an Agent Routing rule
β AI Response Mode is set and the settings are saved
β Test messages from a real device reach the right agent
If something doesn't work
The settings don't appear. The AI Agent toggle is off.
The AI is on but nobody answers. Active Agents β Not selected and Agent Routing β None under a green Active badge in the AI Assistant Overview rail means the AI is on with nobody to answer.
A message reaches the wrong agent. Fix the rule's description rather than adding another rule. Check that two rules don't cover the same situation.
An agent can't transfer a chat. Agents can transfer only to other agents in Active Agents.
Two replies to one message. Read Preventing Bot Conflicts and Duplicate Replies.
Reference
After hours
Do Not Assign Agent in Business Off Hour appears twice on this page: under Misc. Settings and under Business Hours. The Business Hours card is read-only here; its Edit button opens Bot Settings β Business Hour. Setup is in AI Customer Service: Business Hours and After-Hours Replies.
All ## actions
You never type these by hand β pick them from the ## list. The info icon on the agent form opens the same list under the heading How to write actions in System Prompt, showing each action's format as ##action_name## : id.

Subscriber
Action | What it does |
|---|---|
| Add Label |
| Remove Label |
| Assign Sequence |
| Remove Sequence |
| Save Custom Field |
| Block Spam Subscriber |
Handover and conversation control
Action | What it does |
|---|---|
| Assign Team Member (Fixed Person) |
| Assign Team Role (Round Robin) |
| Transfer AI Agent |
| Mark Conversation Solved |
| Internal Note |
| Follow-up Reminder |
| Ask Information |
| Finish Task |
| Skip Reply |
Flow and API
Action | What it does |
|---|---|
| Trigger Bot Flow |
| Call HTTP API (for developers) |
Store orders. Shopify and WooCommerce get the same capabilities under different tokens. The WooCommerce note action is labelled Add Order Note on screen.
Shopify | WooCommerce |
|---|---|
|
|
|
|
|
|
|
|
|
|
To sharpen the answers rather than the routing, go back to Training Your AI: Knowledge Sets, URLs, Files and Live Data.
Next: AI Tokens: How Usage and Cost Actually Work.
