Skip to navigation

Custom Evaluations

Custom Evaluation action named eval_lead_qualification, with a What to Evaluate prompt that scores whether the agent captured the caller's need, budget, timeline, and decision-making role

Custom evaluations score each call against your own criteria after it ends. Examples are whether the agent booked an appointment, read a required script, or resolved the caller’s issue.

Custom evaluations are ideal if you want to measure AI agent performance against custom goals, your business has unique workflows or compliance needs, or you need to track outcomes that can’t be inferred automatically.

Create one in Actions → Custom Evaluations → Create New. To run it, open an agent and select Actions → After the Call → Add Action → Custom Evaluation.

Output types

In the evaluation, enter an Action Name, describe the criteria in What to Evaluate, and choose an Output Type:

Output TypeResult
NumericA scale from 1 to 10.
DescriptiveA scale of Excellent, Good, Fair, Poor.
Likert ScaleFrom Strongly Agree to Strongly Disagree.
True/FalsePassed if true, not passed if false.
CategoricalOne of your own categories.

For every type except Categorical, you also set the expected result that counts as passed.

Evaluation results

Open a call in Call logs and select the Actions tab. Each evaluation shows the Request sent to the model and a Return value:

{
"lead_quality": "hot",
"is_expected_result": true
}

The first key is the evaluation’s Action Name, and its value is the result. is_expected_result is true when the result counts as passed, and false when it does not.

The same result is in executed_actions in the post-call webhook and in Get a call.

Categorical evaluations

A categorical evaluation sorts each call into one of your own categories, such as booking, support, billing, or spam. Use it to answer “what kind of call was this?”, such as caller intent, lead quality, or escalation reason.

Under Categories, select Add option to add between 2 and 20 options. Each option has:

  • Name: the value the result shows, such as hot. Names use letters, numbers, and underscores, up to 64 characters, and must be unique. We save them in lowercase with spaces turned into underscores, so Not Now becomes not_now.
  • Description: when the model should pick this option, up to 200 characters. The model reads it together with What to Evaluate.
  • Counts as passed: whether a call in this category passes the evaluation. It is selected by default. At least one option must stay selected.

After the call, the model picks one option, and the result shows its name. is_expected_result is true when that option counts as passed. The result is null and is_expected_result is false when the model answers with something that is not one of your options. The model’s answer, when it gave one, is kept in invalid_value.

Changing the options of a saved evaluation does not change calls that were already evaluated.

Examples

Action NameWhat to EvaluateOutput TypeExpected result
appointment_bookedDid the agent book an appointment?True/FalseTrue
caller_satisfactionRate the caller’s satisfaction with the call, based on tone, language, and resolution.Numeric8
privacy_noticeDid the agent explain data privacy and consent at the start of the call?DescriptiveExcellent
customer_experienceThe agent was friendly and professional, and the caller was happy with the call.Likert ScaleStrongly Agree
lead_qualityClassify how ready the caller is to buy.Categoricalhot, warm

For lead_quality, add the options hot, warm, cold, and not_a_lead, each with a description. Keep Counts as passed selected for hot and warm only.

Best practices

  • Write criteria the model can check in the transcript, such as “Did the agent confirm the appointment date?” rather than “Was the call good?”.
  • Choose the simplest output type that answers your question. Use True/False for yes or no outcomes and Numeric for ratings.
  • For Categorical, write option descriptions that do not overlap, so each call has one clear match.
  • Review results after the first calls, and refine What to Evaluate where they look wrong.

FAQ

An evaluation runs after a call ends, and only on agents it is attached to. Check that it is listed in the agent’s Actions tab under After the Call, then place a new call.

Yes. Attach the same evaluation to each agent from that agent’s Actions tab, under After the Call.

Save stays disabled until every option is valid. Each option needs a name and a description. Names must stay unique once lowercased, so Booking and booking clash. At least one option must have Counts as passed selected.

Yes. Create an action creates custom evaluations of every output type, including Categorical.