Fetch the JSON Schema for test-suite spec files
Changed onFetch the JSON Schema for test-suite spec files
Request
- Base URLhttps://api.cekura.ai
- URLhttps://api.cekura.ai/test_framework/v1/scenarios/json_schema/
- Auth
- API key in header X-CEKURA-API-KEY
- or HTTP bearer
- or HTTP bearer
Query parameters
Spec version to fetch. Defaults to the current version.
Response
Name of the scenario
Agent ID Example: 2142
Alternative to agent ID - the assistant ID to use for this scenario Example: "asst_1234567890"
Personality ID Example: 123
Name of the personality used in this scenario Example: "Normal Male"
Name of the agent associated with this scenario Example: "Customer Support Agent"
List of metric names associated with this scenario Example: ["Metric 1", "Metric 2"]
Phone number used for outbound calls in this scenario Example: "+1234567890"
First message to be sent to the Main Agent
Scenario Instructions
Pre-recorded clips available to this scenario's conditional actions, keyed by clip id. Read-only: upload, replace and delete clips, and correct a transcript, through condition-audio/. Reference a clip from any number of verbatim steps by pasting its tag; steps lists where it is used (e.g. conditions[1].then[0]).
Example:
{
"greeting": {"tag": "<audio id=\"greeting\"/>", "filename": "greeting.wav",
"status": "ready", "duration": 2.4, "transcript": "Hi, is this the clinic?",
"steps": ["first_message", "conditions[1]"]}
}
Expected Outcome Prompt Example: "The user should be able to complete the order"
Language of the scenario
- af - Afrikaans
- ar - Arabic
- bn - Bengali
- bg - Bulgarian
- zh - Chinese Simplified
- cs - Czech
- da - Danish
- nl - Dutch
- en - English
- et - Estonian
- fi - Finnish
- fr - French
- de - German
- el - Greek
- gu - Gujarati
- hi - Hindi
- he - Hebrew
- hu - Hungarian
- id - Indonesian
- it - Italian
- ja - Japanese
- kn - Kannada
- kk - Kazakh
- ko - Korean
- ms - Malay
- ml - Malayalam
- mr - Marathi
- multi - Multilingual
- no - Norwegian
- pl - Polish
- pa - Punjabi
- pt - Portuguese
- ro - Romanian
- ru - Russian
- sk - Slovak
- es - Spanish
- sv - Swedish
- th - Thai
- tr - Turkish
- tl - Tagalog
- ta - Tamil
- te - Telugu
- uk - Ukrainian
- uz - Uzbek
- vi - Vietnamese
Type of scenario. Defaults to instruction. Must be sent as conditional_actions when the request includes the conditional_actions field.
- instruction - Instruction
- conditional_actions - Conditional Actions
Type of predefined suite (e.g., infrastructure)
- undefined - Undefined
- infrastructure - Infrastructure
Whether this is a predefined scenario (template)
Path of an existing folder to assign this evaluator to, e.g. "Sales" or "Sales.Inbound". Create it first with the create-folder endpoint.
Max call duration in seconds for this scenario. If not provided or set to null, the scenario will use the project's max_call_duration setting. Valid range: 10-3600 seconds (10 seconds to 60 minutes) Example: 600 (10 minutes)
Changes
- info
endpoint added
- info