At the end of the call, you can summarize and evaluate how it went.

The Call Analysis feature allows you to summarize and evaluate calls, providing valuable insights into their effectiveness. This feature uses a combination of prompts and schemas to generate structured data and success evaluations based on the call’s content. The underlying models driving our call analysis pipeline are the latest version of Anthropic’s Claude Sonnet and in case of failure OpenAI’s GPT 4o.

You can customize the below in the assistant’s assistant.analysisPlan.

Summary Prompt

The summary prompt is used to create a concise summary of the call. This summary is stored in call.analysis.summary.

Default Summary Prompt

The default summary prompt is:

You are an expert note-taker. You will be given a transcript of a call. Summarize the call in 2-3 sentences, if applicable.

Customizing the Summary Prompt

You can customize the summary prompt by setting the summaryPrompt property in the API or SDK:

1{
2 "summaryPrompt": "Custom summary prompt text"
3}

To disable the summary prompt, set it to an empty string "" or "off":

1{
2 "summaryPrompt": ""
3}

Structured Data Prompt

The structured data prompt extracts specific pieces of data from the call. This data is stored in call.analysis.structuredData.

Default Structured Data Prompt

The default structured data prompt is:

You are an expert data extractor. You will be given a transcript of a call. Extract structured data per the JSON Schema.

Customizing the Structured Data Prompt

You can set a custom structured data prompt using the structuredDataPrompt property:

1{
2 "structuredDataPrompt": "Custom structured data prompt text"
3}

Structured Data Schema

The structured data schema enforces the format of the extracted data. It is defined using JSON Schema standards.

Customizing the Structured Data Schema

You can set a custom structured data schema using the structuredDataSchema property:

1{
2 "structuredDataSchema": {
3 "type": "object",
4 "properties": {
5 "field1": { "type": "string" },
6 "field2": { "type": "number" }
7 },
8 "required": ["field1", "field2"]
9 }
10}

Success Evaluation Prompt

The success evaluation prompt is used to determine if the call was successful. This evaluation is stored in call.analysis.successEvaluation.

Default Success Evaluation Prompt

The default success evaluation prompt is:

You are an expert call evaluator. You will be given a transcript of a call and the system prompt of the AI participant. Determine if the call was successful based on the objectives inferred from the system prompt.

Customizing the Success Evaluation Prompt

You can set a custom success evaluation prompt using the successEvaluationPrompt property:

1{
2 "successEvaluationPrompt": "Custom success evaluation prompt text"
3}

To disable the success evaluation prompt, set it to an empty string "" or "off":

1{
2 "successEvaluationPrompt": ""
3}

Success Evaluation Rubric

The success evaluation rubric defines the criteria used to evaluate the call’s success. The available rubrics are:

  • NumericScale: A scale of 1 to 10.
  • DescriptiveScale: A scale of Excellent, Good, Fair, Poor.
  • Checklist: A checklist of criteria and their status.
  • Matrix: A grid that evaluates multiple criteria across different performance levels.
  • PercentageScale: A scale of 0% to 100%.
  • LikertScale: A scale of Strongly Agree, Agree, Neutral, Disagree, Strongly Disagree.
  • AutomaticRubric: Automatically break down evaluation into several criteria, each with its own score.
  • PassFail: A simple ‘true’ if the call passed, ‘false’ if not.

Customizing the Success Evaluation Rubric

You can set a custom success evaluation rubric using the successEvaluationRubric property:

1{
2 "successEvaluationRubric": "NumericScale"
3}

Combining Prompts and Rubrics

You can use prompts and rubrics in combination to create detailed instructions for the call analysis:

1{
2 "successEvaluationPrompt": "Evaluate the call based on these criteria:...",
3 "successEvaluationRubric": "Checklist"
4}

By customizing these properties, you can tailor the call analysis to meet your specific needs and gain valuable insights from your calls.