Skip to navigation

Search, read, and export the Conversations of your AI Agent, and find out why a conversation failed. The alias is convos.

Commands

Find conversations

CommandWhat it does
conversations searchSearches conversations by date, topic, resolution, CSAT, handoff, channel, language, custom metric result, and more.
conversations recentLists the most recent conversations from the last 7 days.
conversations exportExports the conversations in a date range as CSV or JSON, with optional transcripts and AI reasoning.
conversations handoff-reasonsCounts conversations per handoff reason, with sample conversation IDs.

Read one conversation

CommandWhat it does
conversations get <id>Shows the metadata of a conversation.
conversations transcript <id>Shows the messages only.
conversations reasoning <id>Shows the AI reasoning events only.
conversations log <id>Shows the messages and the AI reasoning in time order.
conversations details <id>Shows the resolution, summary, Custom Instructions, Coaching, handoffs, and session variables.
conversations handoffs <id>Shows each handoff attempt with its target, outcome, reason code, and reasoning.
conversations classification <id>Shows the topics and intents assigned to the conversation.
conversations topic <id>Shows the topic of a conversation. With --change, sets a different topic.
conversations coaching <id>Shows the Coaching items for the conversation.
conversations guidance <id>Shows the Custom Instructions that the AI Agent considered.

Diagnose a conversation

CommandWhat it does
conversations diagnose <id>Finds where a conversation failed and names the target to fix.

Examples

Find the conversations from the last 7 days that the AI Agent did not resolve:

adacli acme conversations search --resolution not-resolved --since 7d

Get up to 500 conversations from the last 30 days with a failed tool handoff, as JSON. In the response, capped is true when more conversations match, and partial is true when a read failure stopped the walk early:

adacli acme conversations search --handoff-reason tool_failed --since 30d --all --limit 500 --json

Read the messages and the AI reasoning of one conversation:

adacli acme conversations log <conversation-id>

Export the last 30 days with transcripts to a JSON file:

adacli acme conversations export --since 30d --transcripts --json -o conversations.json

Show the top handoff reasons of last week, with 5 sample conversations for each reason:

adacli acme conversations handoff-reasons --since 7d --samples 5

Find why one conversation failed:

adacli acme conversations diagnose <conversation-id>

Details

  • search, export, and handoff-reasons use the last 30 days when you give no dates. --since takes a relative range, such as 7d. --start and --end take YYYY-MM-DD.
  • search returns one page. --size sets the page size, up to 500. Add --all to read every page, and --limit to stop after a number of conversations.
  • --filter takes the format TYPE:OP:v1,v2[:item]. The same format works in analytics metric, topics performance, and custom-metrics.
  • export stops at 50,000 rows to a file and at 10,000 rows to standard output. Use --limit to raise the file limit, up to 100,000 rows.
  • export, search --all, and recent exit 20 when a read failure stops the walk early. The rows are usable but incomplete. With -o, export writes them to <file>.partial and does not change <file>.
  • export exits 21 when the date range has no conversations. It writes nothing and does not change an existing -o file.
  • diagnose, transcript, reasoning, log, details, handoffs, and guidance exit 22 when the read is empty after a retry. adacli cannot confirm that result. Check the exit code before you act on it. See Output and exit codes for all exit codes.
  • A reason code belongs to a handoff attempt, and an attempt can fail. To find the conversations that escalated, use search --handoff. See Handoff reasons.
  • The classifier runs after a conversation ends, and after a 10-minute idle pause. Until then, a recent conversation shows unclassified.
  • When the improvement loop is available for your account, diagnose and handoff-reasons name the loop command as the next step. See Improvement loop.

For every option of a command, run it with --help, for example adacli acme conversations search --help.

  • analytics: read metrics for the same conversations.
  • topics: get the topic and intent IDs for search filters.
  • custom-metrics: find the conversations that pass or fail a custom metric.