test_framework

Create a test set from a production call log

Changed on

Promote a real production call into a labeled test set by attaching the specified metrics. The call's transcript, recording, and any existing metric evaluations are copied into the new test set so they can be reviewed and used as labeled ground truth. Returns the created or existing test set.

post/test_framework/test-sets/create_from_call_log/

Request

  • Base URL
    https://api.cekura.ai
  • URL
    https://api.cekura.ai/test_framework/test-sets/create_from_call_log/
  • Auth
    • API key in header X-CEKURA-API-KEY
    • or HTTP bearer
    • or HTTP bearer

Request body

call_log_idinteger required

ID of the call log to create test set from

projectinteger

ID of the project that owns the call log

namestring

Optional name for the test set. If not provided, call log ID will be used

Response

idinteger
agentinteger required
namestring

Name of the test set Example: "Test Set 1"

transcriptstring

Full text transcript of the call. Example:

[00:01] Testing Agent: Hello. 
[00:02] Main Agent: Hello, how can I help you today?
[00:03] Testing Agent: Well, I mean, sure. What time exactly are we talking about here
[00:04] Main Agent: 6 PM.
[00:05] Testing Agent: Great. I'll book that for you. Just a sec.
[00:06] Main Agent: Okay.
transcript_objectunknown
voice_recordingstring uri required
voice_recording_urlstring

Audio URL

call_end_reasonstring

Reason why the call ended. Example:

  • "customer-ended-call"
  • "agent-ended-call"
durationstring

Call duration in minutes in MM:SS format. Example: 01:10

source_model'CallLog' | 'Run'
  • CallLog - Call Log
  • Run - Run
source_idstring
created_atstring date-time

When this record was created. Example: 2024-03-15T10:30:45Z

updated_atstring date-time

When this record was last updated. Example: 2024-03-15T10:35:11Z

Changes