Multi-Agent Routing
Multi-agent routing is available on Plus and Pro plans. Compare plans
How It Works
Instead of embedding individual agent codes on each page, you use a workspace-level embed code. Then you set up display rules that tell Chatref which agent to show based on the URL of the page the visitor is on.Setting Up Multi-Agent Routing
Get the workspace embed code
Copy the workspace-level embed secret. This single code works across your entire website.
Set up display rules
Configure rules that match URL patterns to specific agents. For example:
/pricing*→ Sales Bot/help*→ Support Bot/products*→ Product Advisor
Display Rules
Display rules use URL pattern matching to determine which agent to show. You define a URL pattern and assign it to an agent.URL Pattern Examples
| Pattern | Matches |
|---|---|
/pricing | Exactly the pricing page |
/pricing* | The pricing page and any sub-pages |
/help/* | Any page under the /help/ section |
/products/shoes* | Any page in the shoes category |
How Rules Are Evaluated
When a visitor loads a page on your website:- Chatref checks the page URL against your display rules (in order)
- If a rule matches, the assigned agent is loaded
- If no rules match, the default agent is loaded
Use Cases
E-commerce with multiple departments
- Product pages → Product Advisor bot
- Help/support section → Customer Support bot
- Checkout pages → Order Assistance bot
SaaS with different audiences
- Marketing pages → Lead Generation bot
- Documentation → Technical Support bot
- Pricing page → Sales bot
Multi-language websites
/en/*→ English-speaking agent/es/*→ Spanish-speaking agent/fr/*→ French-speaking agent