Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.coval.ai/llms.txt

Use this file to discover all available pages before exploring further.

A conversation is a recorded interaction (voice call or chat) submitted to Coval for monitoring evaluation. Conversations are distinct from simulations, which are synthetic test runs generated by Coval.

Submit Conversation

Submit a recorded conversation for monitoring evaluation. At least one input source is required (--transcript-file, --audio-file, --audio-url, or --upload-id); audio sources are mutually exclusive.
coval conversations submit [OPTIONS]
OptionTypeDescription
--transcript-filepathJSON file containing the transcript (an array of message objects).
--audio-filepathLocal audio file. The CLI base64-encodes the bytes into the request body.
--audio-urlstringPresigned URL to audio (S3, GCS, Azure Blob, or any HTTPS URL).
--upload-idstringReference to a prior POST /v1/audio:upload (upl_<26-char ULID>).
--metricstringMetric ID to evaluate. Repeat for multiple. Defaults to your org’s monitoring metrics.
--metadatakey=valueCustom metadata for filtering and conditional metrics. Repeat for multiple.
--external-idstringExternal conversation ID from your system.
--agent-idstringAgent to associate with this conversation (22-char ID).
--occurred-atISO 8601When the conversation actually occurred.
Returns the created conversation in PENDING status. Poll coval conversations get <id> to watch evaluation progress.
# Submit a transcript with custom metrics and metadata
coval conversations submit \
  --transcript-file ./call.json \
  --metric 29BlkepvvX19ebbLDB0y6Q \
  --metric mymKvEg6ZA65srXbTX5wSM \
  --metadata campaign=summer-2026 \
  --metadata customer_id=cust-abc-123 \
  --external-id call-abc-123 \
  --agent-id gk3jK9mPq2xRt5vW8yZaBc \
  --occurred-at 2026-05-05T12:34:56Z

# Submit audio by presigned URL
coval conversations submit \
  --audio-url 'https://bucket.s3.amazonaws.com/audio.wav?X-Amz-Algorithm=...' \
  --external-id call-abc-123

# Submit a local audio file (base64-encoded into the request body)
coval conversations submit --audio-file ./recording.wav --external-id call-abc-123
For audio files larger than a few megabytes, prefer --audio-url or --upload-id over --audio-file — the API Gateway request body is capped at 10 MB.

List Conversations

coval conversations list [OPTIONS]
OptionTypeDefaultDescription
--filterstringFilter expression
--page-sizenumber50Results per page
--order-bystringSort order
Output columns: ID, STATUS, EXTERNAL ID, AUDIO, OCCURRED AT
# List recent conversations
coval conversations list

# Filter by status
coval conversations list --filter 'status="COMPLETED"'

# Filter by external ID
coval conversations list --filter 'external_conversation_id="call-abc-123"'

Get Conversation

coval conversations get <conversation_id>
ArgumentTypeRequiredDescription
conversation_idstringYesThe conversation ID
Returns full conversation details as JSON including transcript, status, agent and persona references, progress, and metadata.
coval conversations get conv_abc123

Download Audio

Download or get the audio URL for a conversation recording.
coval conversations audio <conversation_id> [OPTIONS]
ArgumentTypeRequiredDescription
conversation_idstringYesThe conversation ID
OptionTypeDescription
-o, --outputstringFile path to save audio
# Print audio URL
coval conversations audio conv_abc123

# Download audio file
coval conversations audio conv_abc123 -o recording.wav
When using -o, a progress bar shows the download status.

List Metrics

List all metric results for a conversation.
coval conversations metrics <conversation_id>
ArgumentTypeRequiredDescription
conversation_idstringYesThe conversation ID
Output columns: OUTPUT ID, METRIC ID, STATUS, VALUE, SUBVALUES
coval conversations metrics conv_abc123

Get Metric Detail

Retrieve metric results for a conversation. The second argument accepts two ID types and the output adapts accordingly:
  • 26-char MetricOutput ULID — prints one row (the specific output).
  • 22-char Metric definition ID — prints every output recorded for that metric on the conversation.
coval conversations metric-detail <conversation_id> <id>
ArgumentTypeRequiredDescription
conversation_idstringYesThe conversation ID
idstringYesEither a 26-char MetricOutput ULID or a 22-char Metric definition ID
By MetricOutput ULID (one row):
coval conversations metric-detail conv_abc123 01JCQR8Z9PQSTNVWXY12345678
By Metric definition ID (one or more rows):
coval conversations metric-detail conv_abc123 4HTX6gnqXtpexWSLNaKdC4

Delete Conversation

coval conversations delete <conversation_id>
ArgumentTypeRequiredDescription
conversation_idstringYesThe conversation ID to delete

Conversation Statuses

StatusDescription
PENDINGConversation is created but not yet started
IN_QUEUEConversation is queued for evaluation
IN_PROGRESSMetrics are actively running against the conversation
COMPLETEDEvaluation finished successfully
FAILEDEvaluation encountered an error
CANCELLEDEvaluation was cancelled
DELETEDConversation was deleted
When using --filter, use the underscore-separated enum values (e.g., status="IN_PROGRESS").