API’s for managing scenarios. This view set provides endpoints to list, create, and manage and run scenarios.
API Key Authentication. It should be included in the header of each request.
JSON representation of the conversation transcript
ID of the personality to use in the simulation
ID of the agent to use in the simulation
Assistant ID to use in the simulation
Name for the simulated scenario
Prompt describing the expected outcome of the scenario
Unique identifier for the AI agent
Example: 123
Name of the scenario
80Foreign key reference to the personality used in this scenario
Name of the personality used in this scenario
Example: "Normal Male"
Expected outcome prompt for the scenario
Example: "The user should be able to complete the order"
Detailed instructions that guide the AI agent's behavior in this scenario
Language code for the scenario (ISO language code)
af - Afrikaansar - Arabicbg - Bulgarianzh - Chinese Simplifiedcs - Czechda - Danishnl - Dutchen - Englishfi - Finnishfr - Frenchde - Germanel - Greekhi - Hindihe - Hebrewhu - Hungarianid - Indonesianit - Italianja - Japaneseko - Koreanms - Malaymulti - Multilingualno - Norwegianpl - Polishpt - Portuguesero - Romanianru - Russiansk - Slovakes - Spanishsv - Swedishth - Thaitr - Turkishta - Tamiluk - Ukrainianvi - Vietnameseaf, ar, bg, zh, cs, da, nl, en, fi, fr, de, el, hi, he, hu, id, it, ja, ko, ms, multi, no, pl, pt, ro, ru, sk, es, sv, th, tr, ta, uk, vi, Type of scenario (instruction, real_world_smart, or real_world_fixed)
instruction - Instructionreal_world_smart - Real World Smartreal_world_fixed - Real World Fixedinstruction, real_world_smart, real_world_fixed List of tags associated with this scenario for categorization
Example: ["tag1", "tag2", "tag3"]
Foreign key reference to the AI agent that owns this scenario
Foreign key reference to the phone number used for inbound calls
Details of the phone number used for inbound calls
List of metrics associated with this scenario for evaluation
List of metric names associated with this scenario
Example: ["Metric 1", "Metric 2", "Metric 3"]
The initial message that the AI agent will send when the scenario starts
1000List of tool IDs that are available for use in this scenario
Example: ["TOOL_DTML", "TOOL_END_CALL"]
Test profile ID
Example: 123
Details of the test profile associated with this scenario Example:
{
"id": "<integer>",
"agent": "<integer>",
"name": "<string>",
"information": {
"user_name": "John Doe",
"user_email": "[email protected]",
}
}Timestamp when the scenario was created
Timestamp when the scenario was last updated
ID of the user who last updated this scenario