Skip to Content
Conversations

Set how the AI works in the conversation

PUT
/conversations/{conversationId}/ai-mode

auto_reply and awaiting_approval hand the conversation to the AI (owner ai); off and suggest keep or give it to a person (owner human, or none when nobody owned it). Handing to the AI needs AI switched on for the company, an active AI profile on the conversation's number and AI allowed for the contact (409 AI_UNAVAILABLE otherwise); suggest needs the same. When the customer's last message is still unanswered, the AI answers it right away. Recorded in the activity timeline and the audit log.

Scope: conversations.reply. Rate limit: 300 requests per minute per API key.

Authorization

apiKey conversations.reply
headerAuthorizationBearer <msk_live_…>

An API key created under API keys in the panel: Authorization: Bearer msk_live_…. The key's scopes decide which operations it may call.

Scope: conversations.reply

Path Parameters

conversationId*string
Formatuuid

Request Body

application/json
  1. body
mode*ConversationAIMode

off — no AI; suggest — the AI drafts replies for the agent; auto_reply — the AI answers the customer; awaiting_approval — the AI writes replies an agent approves before they are sent.

Value in"off""suggest""auto_reply""awaiting_approval"

Response Body

The conversation with its new owner and mode

application/json
  1. response
data*
meta*
Example Request
curl -X PUT 'https://app.messora.tech/api/v1/conversations/497f6eca-6276-4993-bfeb-53cbbbba6f08/ai-mode' \  -H 'Content-Type: application/json' \  -d '{  "mode": "auto_reply"}'
Example Response
{  "data": {    "ai_mode": "suggest",    "ai_profile_id": "019a8c2e-4f1b-7a20-9c3d-5e7a10000020",    "ai_status": "idle",    "ai_status_detail": null,    "assignee": {      "id": "019a8c2e-4f1b-7a07-9c3d-5e7a10000007",      "name": "Mehmet Kaya"    },    "closed_at": null,    "contact": {      "ai_disabled": false,      "id": "019a8c2e-4f1b-7a09-9c3d-5e7a10000009",      "name": "Ayşe Yılmaz",      "opted_out": false,      "phone": "+905321234567",      "profile_name": "Ayşe"    },    "created_at": "2026-11-20T12:00:00Z",    "id": "019a8c2e-4f1b-7a0e-9c3d-5e7a1000000e",    "last_inbound_at": "2026-11-25T08:41:00Z",    "last_message": {      "body": "Siparişim ne zaman gelir?",      "direction": "inbound",      "status": "received",      "type": "text"    },    "last_message_at": "2026-11-25T08:41:00Z",    "owner_type": "human",    "pending_handoff_id": null,    "phone_number": {      "account_id": "019a8c2e-4f1b-7a0f-9c3d-5e7a1000000f",      "display_phone_number": "+90 212 555 01 23",      "id": "019a8c2e-4f1b-7a04-9c3d-5e7a10000004",      "verified_name": "Messora Demo"    },    "status": "open",    "unread_count": 2,    "window_expires_at": "2026-11-26T08:41:00Z",    "window_open": true  },  "meta": {    "request_id": "019a8c2e-4f1b-7fff-9c3d-5e7a1000ffff"  }}