Skip to content

Platform

Routing rules

Send conversations to different Slack channels, and auto-assign them, based on the page, entry point, customer email domain, message text and more.

On this page

Routing rules pick the Slack channel for a new conversation. They live in the dashboard under Channels & Routing, next to your default channel.

How rules are applied

  1. When a conversation opens, Channlize checks your active rules from top to bottom (the order shown in the list). New rules go to the bottom.
  2. The first rule that matches wins: the conversation is posted to its channel, and assigned to its teammate if the rule has one and nobody is assigned yet.
  3. If no rule matches, the conversation goes to the default channel.
  4. Routing happens once. Later messages stay in the conversation's thread, even if they would match another rule.

A channel pinned explicitly when the conversation is created (the channel field of POST /conversations, the MCP create_conversation tool, or an automation payload's channel) skips the rules.

Conversations from a connection with its own Slack channel follow its mode: Use routing rules (the default) applies the rules and uses the connection's channel instead of the default channel when none matches; Always post to this channel skips the rules' channel, but a matching rule still assigns its teammate.

With Discord or Microsoft Teams connected, a rule can post to one of their channels instead: choose it under post it to in the rule editor. The first matching rule wins whichever tool it targets, and a conversation stays in the tool it was first posted to.

Rules can only pick a channel and an assignee. To set tags or priority, use Slack commands.

A rule

SettingDescription
NameFor you: "Pricing questions to #sales".
ProjectThe rule applies only to this project's conversations (default: your first project).
WidgetOptional: limit the rule to one widget.
Matchall conditions (AND) or any condition (OR).
ConditionsUp to 20, see below. No conditions: the rule matches everything.
ChannelWhere matching conversations go. Invite the bot there.
Assign toOptional teammate.
ActiveInactive rules are skipped.

Use Test routing to see which rule, and which channel, a sample conversation would get. The rule editor can also test a draft rule before you save it.

Conditions

Each condition is a field, an operator and a value:

JSON
{
  "match": "all",
  "conditions": [
    { "field": "page_url", "operator": "contains", "value": "/pricing" },
    { "field": "message", "operator": "contains", "value": ["refund", "invoice"] }
  ]
}
  • Matching is case-insensitive.
  • source is where the conversation came from, the same label the dashboard and the Slack root post show: the widget's chat (live_chat) and its contact form (contact_form) are told apart, so you can route forms to a different channel than chats. The REST API and connections without a more specific source are api.
  • A value can be a list (up to 50 values, 500 characters each). Positive operators match when any value matches; not_ operators match when none does.

Fields

FieldMatches againstOperators
sourcethe entry point: live_chat, contact_form, api, email, automation, sms, whatsapp, stripe, calendar, github, telegram, discordequals, not_equals
projecta projectequals, not_equals
widgeta widget (live chat and contact form only)equals, not_equals
connectionthe connection that opened the conversation (none for chat, forms and the API)equals, not_equals
prioritylow, normal, high, urgentequals, not_equals
page_urlthe page the conversation started onall
page_domainits hostnameall
customer_emailthe customer's emailall
customer_email_domainthe part after @all
messagethe first customer messageall
subjectthe subject (contact form, email)all
tagsthe conversation's tags; equals means "has the tag"all
languagethe browser's first Accept-Language tag, like en-US or frall

Operators

OperatorMatches when the field…
equals / not_equalsis (is not) exactly the value
contains / not_containscontains (doesn't contain) the value
starts_withstarts with the value
ends_withends with the value
matchesmatches a wildcard pattern over the whole value: * is any run of characters, ? is one character

Examples

GoalRule
Pricing page to #salespage_url contains /pricing
Enterprise customers to #vipcustomer_email_domain equals bigcorp.com, bigco.io
Refunds to #billing, assigned to financemessage contains refund, chargeback, invoice; Assign to: your finance lead
SMS and WhatsApp to #mobileMatch any: source equals sms; source equals whatsapp
Contact forms to #inbox, chats stay on the defaultsource equals contact_form
One Telegram bot's chats to #telegram-vipconnection equals that connection
Docs site to #docs-helppage_domain matches docs.*
French visitors to #support-frlanguage starts_with fr

Agent questions

A rule can route the questions and approvals your agents ask instead of conversations. Pick Agent questions when you create it; a rule keeps its type. Question rules are checked on their own, in the same top-to-bottom order, and never route a conversation (and conversation rules never route a question).

A question rule tests these fields, with the operators above:

FieldWhat it is
agentThe agent that asks.
teamAny team the asking agent is in.
channelThe agent channel it's asked in.
urgencylow, normal, high or urgent.
kindquestion or approval.
tagsThe tags the agent sent with the question.
questionThe question's text.

The first matching rule posts the question in its Slack channel and can hand it to a teammate or to the agent channel's supervisors. They're mentioned in the post and are the first step of the escalation chain. With no matching rule, the question goes where it always did: the agent channel's linked Slack channel, or the escalation channel.