MCPDocumentation
On this page

Conversations

Search conversations

search_conversations
Read
Permission required
conversations.view

When to use it

Searches your organization's conversations (voice, WhatsApp, web, Instagram) by dates, channel, status, contact phone or name, text, tool errors, needs-human or quality severity. Returns compact rows, newest first, with a cursor. To read one in full use get_conversation with its id.

Input

FieldTypeDescription
organization_idintegerOnly to repeat your organization (or, with an Autonex staff key, pick another one)
date_fromstringFrom (conversation start) (YYYY-MM-DD, UTC)
date_tostringTo, inclusive (YYYY-MM-DD, UTC)
channel"voice" | "whatsapp" | "web" | "instagram" | "facebook"
statusstringStatus: active, pending, resolved, completed…
phonestringContact phone, any format
contact_namestring
textstringText in the summary, last message, name or messages
has_tool_errorsbooleanOnly conversations with a failed tool call
needs_humanboolean
quality_severitystringQuality analysis severity (e.g. high, critical)
location_idintegerNarrow to one centre (within your scope)
include_archivedbooleanInclude archived and hidden ones (default no)
limitintegerRows per page (default 20, max 100)
cursorstringThe next_cursor of the previous page

Every tool also accepts lang (es | en) for the language of the text answer.

Output

FieldTypeDescription
verdictRequiredstringOne line for the agent
conversationsRequiredobject[]
conversations[].idRequirednumber
conversations[].channelRequiredstring | null
conversations[].started_atRequiredstring | null
conversations[].last_message_atRequiredstring | null
conversations[].duration_secondsRequirednumber | null
conversations[].statusRequiredstring | null
conversations[].needs_humanRequiredboolean
conversations[].locationRequiredobject | null
conversations[].contactRequiredobject | null
conversations[].summaryRequiredstring | nullSummary (max 300 characters)
conversations[].message_countRequirednumber | null
conversations[].tool_callsRequirednumberTool calls (every id the tool_calls table uses)
conversations[].has_tool_errorsRequiredboolean
conversations[].quality_severityRequiredstring | null
conversations[].feedbackRequiredstring | null
next_cursorRequiredstring | nullPass it as cursor for the next page; null = no more
handlesRequirednumber[]Ids in order, to refer to "the second one", etc.
data_as_ofRequiredstring

Examples

Example 1: Yesterday's voice calls with failed tools

Call

JSON
{
  "name": "search_conversations",
  "arguments": {
    "channel": "voice",
    "date_from": "2026-11-23",
    "date_to": "2026-11-23",
    "has_tool_errors": true
  }
}

Example 2: Conversations of a phone number

Call

JSON
{
  "name": "search_conversations",
  "arguments": {
    "phone": "600 111 222",
    "limit": 5
  }
}

Equivalent JSON-RPC call (POST /mcp)

JSON
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "search_conversations",
    "arguments": {
      "channel": "voice",
      "date_from": "2026-11-23",
      "date_to": "2026-11-23",
      "has_tool_errors": true
    }
  }
}