Search conversations
- 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
| Field | Type | Description |
|---|---|---|
organization_id | integer | Only to repeat your organization (or, with an Autonex staff key, pick another one) |
date_from | string | From (conversation start) (YYYY-MM-DD, UTC) |
date_to | string | To, inclusive (YYYY-MM-DD, UTC) |
channel | "voice" | "whatsapp" | "web" | "instagram" | "facebook" | |
status | string | Status: active, pending, resolved, completed… |
phone | string | Contact phone, any format |
contact_name | string | |
text | string | Text in the summary, last message, name or messages |
has_tool_errors | boolean | Only conversations with a failed tool call |
needs_human | boolean | |
quality_severity | string | Quality analysis severity (e.g. high, critical) |
location_id | integer | Narrow to one centre (within your scope) |
include_archived | boolean | Include archived and hidden ones (default no) |
limit | integer | Rows per page (default 20, max 100) |
cursor | string | The next_cursor of the previous page |
Every tool also accepts lang (es | en) for the language of the text answer.
Output
| Field | Type | Description |
|---|---|---|
verdictRequired | string | One line for the agent |
conversationsRequired | object[] | |
conversations[].idRequired | number | |
conversations[].channelRequired | string | null | |
conversations[].started_atRequired | string | null | |
conversations[].last_message_atRequired | string | null | |
conversations[].duration_secondsRequired | number | null | |
conversations[].statusRequired | string | null | |
conversations[].needs_humanRequired | boolean | |
conversations[].locationRequired | object | null | |
conversations[].contactRequired | object | null | |
conversations[].summaryRequired | string | null | Summary (max 300 characters) |
conversations[].message_countRequired | number | null | |
conversations[].tool_callsRequired | number | Tool calls (every id the tool_calls table uses) |
conversations[].has_tool_errorsRequired | boolean | |
conversations[].quality_severityRequired | string | null | |
conversations[].feedbackRequired | string | null | |
next_cursorRequired | string | null | Pass it as cursor for the next page; null = no more |
handlesRequired | number[] | Ids in order, to refer to "the second one", etc. |
data_as_ofRequired | string |
Examples
Example 1: Yesterday's voice calls with failed tools
Call
{
"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
{
"name": "search_conversations",
"arguments": {
"phone": "600 111 222",
"limit": 5
}
}Equivalent JSON-RPC call (POST /mcp)
{
"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
}
}
}