Endpoint ·
POST /conversation/actionsassign_ai_employee assigns it (optionally running it) and unassign_ai
removes it (the conversation hands off to a human).
assign_ai_employee
Assigns an AI employee to the conversation. With run: true, it also runs it
immediately (only then does it count as an AI-triggering action).
Fields
ai_employee—{ name }of the AI employee (required).run— boolean (optional, defaultfalse). Withtrueit runs the employee immediately after assigning it.instructions— optional text with specific instructions for that run. Only applies withrun: true.scheduled_message_action—reassign|cancel. What to do with the conversation’s active scheduled message. Sendcancelby default (see the warning).
unassign_ai
Removes the AI employee (the conversation hands off to a human). No fields;
idempotent (a successful no-op if the conversation already has no AI). Cancels
the AI’s active scheduled message, if any.
actions array of a POST /conversation/actions — see Assembling an action list.
Executable example
Two actions manage the AI employee of a conversation identified by phone and channel:assign_ai_employee assigns it (with run: true it also runs it) and
unassign_ai removes it. Send scheduled_message_action: cancel by default; use
reassign only when reassigning from one AI employee to another while keeping its
scheduled message.
Request
Response
202 Accepted — the group was accepted and runs in the background. The
per-action result does not travel in the response (query it later — see How it runs).
string
Always
processing: confirms the group was accepted and is running.integer
How many actions in the array were admitted for execution — not how many
succeeded.