What Gets Generated
Every completed call includespostCallAnalytics:
| Field | Description |
|---|---|
summary | AI-generated call summary |
dispositionMetrics | Extracted data points you configure |
Accessing Post-Call Data
Example Output
Configuring Disposition Metrics
Useset_post_call_config() to define what data to extract:
Disposition Metric Types
| Type | Description | Requires choices |
|---|---|---|
STRING | Free text (names, notes) | No |
BOOLEAN | Yes/No values | No |
INTEGER | Numeric values (ratings) | No |
ENUM | Selection from predefined list | Yes |
DATETIME | Date/time values | No |
Metric Configuration Schema
Each disposition metric requires:| Field | Required | Description |
|---|---|---|
identifier | Yes | Unique ID (e.g., customer_status) |
dispositionMetricPrompt | Yes | Question to extract this data |
dispositionValues.type | Yes | STRING, BOOLEAN, INTEGER, ENUM, DATETIME |
choices | For ENUM | List of allowed values |
Getting Current Configuration
Complete Example: Sales Call Analytics
SDK Reference
| Method | Description |
|---|---|
call.get_post_call_config(agent_id) | Get agent’s analytics config |
call.set_post_call_config(agent_id, ...) | Configure summary and disposition metrics |
call.get_call(call_id) | Get call details with analytics |
call.get_calls(agent_id=..., limit=...) | List calls with optional filters |
Tips
When are metrics populated?
When are metrics populated?
Disposition metrics are extracted after the call ends, typically within 10-30 seconds. The AI analyzes the transcript based on your configured prompts.
What makes a good disposition prompt?
What makes a good disposition prompt?
Be specific and direct. Instead of “What happened?”, use:
- “Did the customer agree to schedule a follow-up? Answer yes or no.”
- “What is the customer’s email? Return ‘not provided’ if not mentioned.”
Can I change metrics after calls are made?
Can I change metrics after calls are made?
Yes. New calls use the updated config. Existing calls keep their original analytics.
What if the AI can't extract a value?
What if the AI can't extract a value?
The metric will have an empty or null value. Specify fallback behavior in your prompts, like “Return ‘unknown’ if not mentioned.”

