POST
/
test_framework
/
v1
/
scenarios-external
/
create_scenario_from_transcript
curl --request POST \
  --url https://new-prod.vocera.ai/test_framework/v1/scenarios-external/create_scenario_from_transcript/ \
  --header 'Content-Type: application/json' \
  --header 'X-VOCERA-API-KEY: <api-key>' \
  --data '{
  "personality": 123,
  "agent": 123,
  "assistant_id": "<string>",
  "transcript_json": {},
  "name": "<string>",
  "expected_outcome_prompt": "<string>"
}'
{
  "id": 123,
  "name": "<string>",
  "personality_name": "<string>",
  "phone_number": "<string>",
  "expected_outcome_prompt": "<string>",
  "instructions": "<string>",
  "scenario_language": "ar"
}

Authorizations

X-VOCERA-API-KEY
string
header
required

API Key Authentication. It should be included in the header of each request.

Body

transcript_json
object
required

JSON representation of the conversation transcript

personality
integer

ID of the personality to use in the simulation

agent
integer

ID of the agent to use in the simulation

assistant_id
string

Assistant ID to use in the simulation

name
string

Name for the simulated scenario

expected_outcome_prompt
string

Prompt describing the expected outcome of the scenario

Response

200
application/json
id
integer
required
personality_name
string
required
phone_number
string
required
expected_outcome_prompt
string
required
name
string
Maximum length: 80
instructions
string
scenario_language
  • ar - Arabic
  • bg - Bulgarian
  • zh - Chinese Simplified
  • cs - Czech
  • da - Danish
  • nl - Dutch
  • en - English
  • fi - Finnish
  • fr - French
  • de - German
  • el - Greek
  • hi - Hindi
  • hu - Hungarian
  • id - Indonesian
  • it - Italian
  • ja - Japanese
  • ko - Korean
  • ms - Malay
  • no - Norwegian
  • pl - Polish
  • pt - Portuguese
  • ro - Romanian
  • ru - Russian
  • sk - Slovak
  • es - Spanish
  • sv - Swedish
  • tr - Turkish
  • uk - Ukrainian
  • vi - Vietnamese
Available options:
ar,
bg,
zh,
cs,
da,
nl,
en,
fi,
fr,
de,
el,
hi,
hu,
id,
it,
ja,
ko,
ms,
no,
pl,
pt,
ro,
ru,
sk,
es,
sv,
tr,
uk,
vi