Voice Testing › Create a voice scenario
Voice Testing
Create a voice scenario Create a single voice scenario manually.
curl -- request POST \
-- url "https://agent-testing.lambdatest.com/api/projects/{project_id}/voice-scenarios/create" \
-- header "Authorization: Basic <encoded-value>" \
-- header "Content-Type: application/json" \
-- data ' {
"title" : "Order status lookup" ,
"description" : "Caller wants to check the status of an existing order and asks for the expected delivery date." ,
"persona" : "Brief and Direct" ,
"expected_output" : [
"Agent greets the caller professionally" ,
"Agent asks for the order number" ,
"Agent provides the order status and delivery date"
] ,
"category" : "task_completion" ,
"max_turns" : 15 ,
"first_speaker" : "simulator" ,
"max_duration_seconds" : 300
} '
{
"success" : true ,
"scenario" : {
"id" : "<string>" ,
"title" : "<string>" ,
"description" : "<string>" ,
"persona" : "<string>" ,
"category" : "task_completion" ,
"expected_output" : [
"<string>"
] ,
"max_turns" : 123 ,
"first_speaker" : "<string>" ,
"max_duration_seconds" : 123 ,
"prompt_version_id" : "<string>" ,
"sync_status" : "<string>"
}
}
Authorizations Authorization string header required
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Body application/json title string
Short scenario title
description string
Detailed prose description of the test scenario
persona string
Caller persona name
expected_output array
Validation criteria checked after the call
category string
greeting | task_completion | error_recovery | multi_turn | hold_transfer
max_turns integer
Max conversation turns
first_speaker string
simulator | agent
max_duration_seconds integer
Max call duration in seconds
Response 200▼
application/json The created scenario (saved by default).
scenario object required
The created/updated scenario
▶ Hide child attributesscenario. id string
Example: "<string>"
scenario. title string
Example: "<string>"
scenario. description string
Example: "<string>"
scenario. persona string
Example: "<string>"
scenario. category string
Example: "task_completion"
scenario. expected_output string[]
scenario. first_speaker string
Example: "<string>"
scenario. max_duration_seconds number
scenario. prompt_version_id string
Example: "<string>"
scenario. sync_status string
Example: "<string>"
curl -- request POST \
-- url "https://agent-testing.lambdatest.com/api/projects/{project_id}/voice-scenarios/create" \
-- header "Authorization: Basic <encoded-value>" \
-- header "Content-Type: application/json" \
-- data ' {
"title" : "Order status lookup" ,
"description" : "Caller wants to check the status of an existing order and asks for the expected delivery date." ,
"persona" : "Brief and Direct" ,
"expected_output" : [
"Agent greets the caller professionally" ,
"Agent asks for the order number" ,
"Agent provides the order status and delivery date"
] ,
"category" : "task_completion" ,
"max_turns" : 15 ,
"first_speaker" : "simulator" ,
"max_duration_seconds" : 300
} '
{
"success" : true ,
"scenario" : {
"id" : "<string>" ,
"title" : "<string>" ,
"description" : "<string>" ,
"persona" : "<string>" ,
"category" : "task_completion" ,
"expected_output" : [
"<string>"
] ,
"max_turns" : 123 ,
"first_speaker" : "<string>" ,
"max_duration_seconds" : 123 ,
"prompt_version_id" : "<string>" ,
"sync_status" : "<string>"
}
}