Assign Conversation
assign-conversationAssign or unassign an agent on one or more Chatway conversations. Identify the agent by UUID or an unambiguous name/email query and send all conversation UUIDs in one call. Set unassign to true to remove the agent; otherwise the agent is assigned. Conversations already in the requested state are left unchanged. Calls with more than one conversation require user confirmation; a single conversation is changed immediately. Use list-agents only when an agent_query match is ambiguous.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"conversation_ids": "<conversation_ids>"
},
"name": "assign-conversation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | No | Agent UUID to assign or unassign. Required unless agent_query is provided. | |
| unassign | No | Set to true to remove the agent from the conversations. Defaults to false, which assigns the agent. | |
| agent_query | No | Agent name or email to resolve (e.g. "Nibir"). Required unless agent_id is provided. Use list-agents if the match is ambiguous. | |
| conversation_ids | Yes | Conversation UUIDs to assign, from 1 to 30. | |
| confirmation_token | No | Only for calls with more than one conversation: required after the confirmation challenge. Ask the user to approve before calling again with this token. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent | No | ||
| queued | No | True when several conversations were queued as background jobs. | |
| message | No | Message describing the action or its result. | |
| agent_id | No | UUID of the agent that was assigned or unassigned. | |
| ambiguous | No | True when agent_query matched several agents; pick one from candidates. | |
| candidates | No | Agents matching an ambiguous agent_query. | |
| affected_count | No | Number of records the action will change. | |
| confirmation_token | No | Pass back as confirmation_token after the user approves. | |
| expires_in_seconds | No | How long the confirmation token stays valid. | |
| confirmation_required | No | True when the user must approve before the action runs. | |
| queued_conversation_ids | No | Conversation UUIDs queued for the action. | |
| skipped_conversation_ids | No | Conversation UUIDs that were skipped. | |
| assigned_conversation_ids | No | Conversations the agent was assigned to. | |
| unchanged_conversation_ids | No | Conversations already in the requested state; nothing changed. | |
| unassigned_conversation_ids | No | Conversations the agent was removed from. |