Setup
Add ananalysis config to your agent:
Analysis Options
| Field | Default | Description |
|---|---|---|
enabled | true | Enable/disable post-call analysis |
summary_enabled | true | Generate call summary |
summary_prompt | (auto) | Custom prompt for summary generation |
success_evaluation.enabled | false | Evaluate call success |
success_evaluation.scale | pass_fail | pass_fail, likert (1-5), or numeric (0-100) |
success_evaluation.rubric | (auto) | Criteria for success evaluation |
sentiment_enabled | false | Analyze customer sentiment |
structured_extraction_schema | null | JSON Schema for data extraction |
scoring_rubric | null | Custom scoring criteria |
model | (agent’s LLM) | Override LLM model for analysis |
Event Flow
Two events fire (Retell-style pattern):call.ended— Immediate, with call metadataanalysis.completed— Async (~2-5s), with full analysis results