Reply in a conversation
send_conversation_messageReply in a conversation
Sends a text reply to the customer on the conversation's channel, as your team. It shows
in the dashboard as written by the person who created the key. When the agent's
ai_handoff_enabled is on, it pauses the AI for the agent's handoff window like any
teammate's reply (when it is off, the AI keeps answering); when the pause ends, the AI may
write once more if follow-ups are on for the channel (resumeConversationAi or
ai_enabled: false prevents it). It never assigns the conversation.
Refused before anything is saved (422): channel_not_supported on a channel Mojeeb
can't send on (TikTok), and messaging_window_closed on WhatsApp, Facebook or Instagram
when the customer hasn't written in the last 24 hours (on WhatsApp, send a template with
sendWhatsAppTemplate instead). A refused reply isn't stored for its Idempotency-Key,
and until 60 seconds after the refused request that key answers
409 idempotency_key_in_progress: once the cause has passed, send it again with a new
key. The reply is sent after the response: it starts queued and its status moves on
to sent, delivered, read or failed; follow it with getConversationMessage. On a website conversation it is stored as sent and appears in
the open chat.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The reply; text that is only spaces is refused. WhatsApp takes up to 4,096 characters as one message. Messenger and Instagram receive a long reply in up to 5 parts (of up to 1,900 and 900 characters), split at paragraph, line or sentence breaks. On Instagram, text that doesn't fit in 5 parts is cut and the message still reads `delivered`, so keep Instagram replies within 2,700 characters to be sure they arrive whole. | |
| agent_id | Yes | The agent the resource belongs to. Another company's agent, or the nil UUID, is `404 agent_not_found`; an agent outside the key's agent list is `403 agent_not_authorized`. | |
| conversation_id | Yes | One of the agent's conversations. Another agent's conversation, or a deleted one, is `404 not_found`. |