curl --request POST \
--url https://api.cekura.ai/test_framework/v1/scenarios/adv_update/ \
--header 'Content-Type: application/json' \
--header 'X-CEKURA-API-KEY: <api-key>' \
--data '
{
"agent": 12,
"scenarios": [
101,
102,
103
],
"metric_ids_to_add": [
501,
502
]
}
'{
"name": "<string>",
"instructions": "<string>",
"agent": 123,
"id": 123,
"personality": 123,
"personality_name": "<string>",
"agent_name": "<string>",
"phone_number": "<string>",
"expected_outcome_prompt": "<string>",
"scenario_language": "af",
"scenario_type": "instruction",
"tags": "<unknown>",
"inbound_phone_number": 123,
"inbound_phone_number_data": "<string>",
"metrics": "<string>",
"metric_names": "<string>",
"first_message": "Hello",
"tool_ids": "<unknown>",
"test_profile": 123,
"test_profile_data": {
"name": "<string>",
"id": 123,
"project": 123,
"agent": 123,
"agent_name": "<string>",
"information": "<unknown>",
"created_by": 123,
"last_updated_by": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
},
"dynamic_variable_values": "<unknown>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"created_by": 123,
"last_updated_by": 123,
"folder_path": "<string>"
}{
"field_name": [
"<string>"
]
}Bulk Update Evaluators
Bulk-update many evaluators in a single call: attach/detach metrics or tools, switch personality, append instructions, move into a folder, or change phone number / max duration.
curl --request POST \
--url https://api.cekura.ai/test_framework/v1/scenarios/adv_update/ \
--header 'Content-Type: application/json' \
--header 'X-CEKURA-API-KEY: <api-key>' \
--data '
{
"agent": 12,
"scenarios": [
101,
102,
103
],
"metric_ids_to_add": [
501,
502
]
}
'{
"name": "<string>",
"instructions": "<string>",
"agent": 123,
"id": 123,
"personality": 123,
"personality_name": "<string>",
"agent_name": "<string>",
"phone_number": "<string>",
"expected_outcome_prompt": "<string>",
"scenario_language": "af",
"scenario_type": "instruction",
"tags": "<unknown>",
"inbound_phone_number": 123,
"inbound_phone_number_data": "<string>",
"metrics": "<string>",
"metric_names": "<string>",
"first_message": "Hello",
"tool_ids": "<unknown>",
"test_profile": 123,
"test_profile_data": {
"name": "<string>",
"id": 123,
"project": 123,
"agent": 123,
"agent_name": "<string>",
"information": "<unknown>",
"created_by": 123,
"last_updated_by": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
},
"dynamic_variable_values": "<unknown>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"created_by": 123,
"last_updated_by": 123,
"folder_path": "<string>"
}{
"field_name": [
"<string>"
]
}Authorizations
Body
Response
Scenario Instructions - format depends on scenario_type:
For scenario_type="instruction":
Plain text describing the caller's behavior.
Example: "You are a customer calling to inquire about your order status. Be polite and provide order number 12345 when asked."
For scenario_type="conditional_actions":
Use the structured conditional_actions field instead. If you must send via this field, pass the same object as a JSON-formatted string. The earlier id-based format (id, condition, action, type, fixed_message) is still accepted on writes. Responses return this shape unless conditional_actions_format=legacy is passed:
{
"role": "A friendly customer calling about an appointment",
"first_message": "Hi, I'd like to check on my upcoming appointment <silence time=\"1.5s\" />",
"conditions": [
{"when": "The agent asks for your name", "say": "My name is Sarah Johnson"},
{"when": "The agent asks for your date of birth", "say": "January first, nineteen ninety"},
{
"when": "The agent confirms your identity and provides appointment details",
"say": "Thank you, that's all I needed",
"then": ["<endcall />"]
}
]
}
Structure:
role: Personality/role descriptionfirst_message: What the caller says first; empty means wait for the agent. Use{"say": "...", "then": [...]}to add follow-ups.conditions[].when: A third-person description of the agent's observable action, matched semantically against the conversationconditions[].say: The caller's reply, spoken verbatim. Wrap the whole step in<ai_generated>...</ai_generated>to let the caller improvise from it insteadconditions[].then: Optional follow-up steps, each fired on the caller's next turn after one agent reply, in order- Steps support SSML
<silence time="1.5s" />(interruptible),<hold time="2s" />(not interruptible),[laughter]and<endcall />in verbatim steps
Language code for the scenario (ISO language code)
af- Afrikaansar- Arabicbn- Bengalibg- Bulgarianzh- Chinese Simplifiedcs- Czechda- Danishnl- Dutchen- Englishet- Estonianfi- Finnishfr- Frenchde- Germanel- Greekgu- Gujaratihi- Hindihe- Hebrewhu- Hungarianid- Indonesianit- Italianja- Japanesekn- Kannadakk- Kazakhko- Koreanms- Malayml- Malayalammr- Marathimulti- Multilingualno- Norwegianpl- Polishpa- Punjabipt- Portuguesero- Romanianru- Russiansk- Slovakes- Spanishsv- Swedishth- Thaitr- Turkishtl- Tagalogta- Tamilte- Teluguuk- Ukrainianuz- Uzbekvi- Vietnamese
af, ar, bn, bg, zh, cs, da, nl, en, et, fi, fr, de, el, gu, hi, he, hu, id, it, ja, kn, kk, ko, ms, ml, mr, multi, no, pl, pa, pt, ro, ru, sk, es, sv, th, tr, tl, ta, te, uk, uz, vi, null Type of scenario:
instruction: Standard instruction-based scenario where instructions field contains plain textconditional_actions: Conditional action-based scenario where instructions field contains JSON
instruction- Instructionconditional_actions- Conditional Actions
instruction, conditional_actions REMOVED FROM API. Historically stored a flat copy of the agent's dynamic-variable values for the scenario. The column is retained read-only for legacy rows; reads still return its historical value, but writes via the API are rejected with a 400. At call time the Run-level helper consults this column ONLY when the attached test_profile is legacy-flat (or absent) — sectioned test profiles are the canonical source and ignore this column. Put dynamic-variable values in test_profile.information.main_agent_variables for new scenarios.