observability

Create evaluators from call logs

Changed on

Turn up to 50 call logs (a list of ids, or a number of call logs) into evaluators and return them once every call log is processed. Call logs need a transcript. Usually takes 1–3 minutes.

post/observability/v3/call-logs/create_scenarios/

Request

  • Base URL
    https://api.cekura.ai
  • URL
    https://api.cekura.ai/observability/v3/call-logs/create_scenarios/
  • Auth
    • API key in header X-CEKURA-API-KEY
    • or HTTP bearer
    • or HTTP bearer
    • or HTTP bearer

Request body

agent_idinteger

Agent ID, required if assistant_id is not provided Example: 2142

assistant_idstring

Assistant ID, required if agent_id is not provided Example: asst_1234567890

call_logsinteger[]

List of call log IDs to create scenarios from. Can also be the string "all" to process all call logs. Example: [1, 2, 3] or "all"

copy_to_agentinteger nullable

Optional agent ID to copy created scenarios to Example: 2142

project_idinteger

Project ID. Required when using folder_path. Example: 1376

folder_pathstring nullable

Folder path to assign the created scenarios to. Example: "Sales.Inbound"

Response

status'completed' | 'failed'

failed when the job could not produce its result; see error / errors.

project_idinteger nullable
agent_idinteger nullable
total_scenariosinteger
completed_scenariosinteger
failed_scenariosinteger
scenarios_listobject[]

The created evaluators.

Changes