Metric
Create a metric definition
Create a new custom metric definition. The metric will be added to the specified analysis package and can be used for evaluating calls.
post/v1/metric/definitions
Request body
Example request
{
"name": "Customer Satisfaction",
"metricId": "customer_satisfaction",
"outputType": "BOOLEAN",
"scope": "GLOBAL",
"supportedContexts": [
"CALL"
],
"llmPrompt": "Evaluate whether the customer expressed satisfaction with the service provided.",
"booleanTrueLabel": "Satisfied",
"booleanFalseLabel": "Not Satisfied",
"scaleMin": 1,
"scaleMax": 5
}Response
The created metric definition