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). 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.
The MCP server sends this call with an idempotency key of its own, so a retry after a timeout never sends it twice.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | 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`. | |
| media_url | No | One file to send: an https link Mojeeb downloads (a public address, no redirects) or the `url` of a Mojeeb upload of this agent (`createUpload`). A JPEG, PNG or WebP image up to 10 MB, an MP4 or MOV video up to 16 MB (re-encoded for WhatsApp; videos sent with messages have a budget of their own, 10 a minute per key, past which they are `429 video_send_rate_limited`), or a PDF or DOCX document up to 20 MB. Stored and shown in the conversation as a file the composer sent would be. | |
| conversation_id | Yes | One of the agent's conversations. Another agent's conversation, or a deleted one, is `404 not_found`. |