Create a handoff routing rule
create_routing_ruleAdd a topic ("Billing", "Wholesale orders"…) and who gets those conversations when a handoff is set to assign automatically: the AI classifies the conversation into one of these topics and assigns it to the rule's person (assignUserId) or team (assignTeamId), both from list_team. A good description of the topic is what makes the classification work. A rule with nobody assigned is ignored.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| topic | Yes | Short topic name. Max 60. | |
| description | No | What belongs to this topic, to help the AI classify. Max 200. | |
| workspaceId | No | Workspace to act in. Defaults to the workspace this connection is scoped to. | |
| assignTeamId | No | Team to assign (list_team). Empty string to clear. | |
| assignUserId | No | Member to assign (list_team). Empty string to clear. | |
| idempotencyKey | No | Optional. A unique id for this action (16-128 chars: letters, digits, _ : . -). If you are unsure whether a call went through (timeout, network error), repeat it with the SAME idempotencyKey and the same arguments: you get the original result and nothing is done twice. |