POST
/
test_framework
/
v1
/
scenarios
/
cURL
curl --request POST \
  --url https://api.cekura.ai/test_framework/v1/scenarios/ \
  --header 'Content-Type: application/json' \
  --header 'X-CEKURA-API-KEY: <api-key>' \
  --data '{
  "agent": 123,
  "assistant_id": "<string>",
  "name": "<string>",
  "personality": 123,
  "instructions": "<string>",
  "expected_outcome_prompt": "<string>",
  "metrics": {},
  "tags": [
    "<string>"
  ],
  "tool_ids": [
    "<string>"
  ],
  "test_profile": 123,
  "inbound_phone_number": 123
}'
{
  "id": 123,
  "name": "<string>",
  "agent": 123,
  "personality": 123,
  "personality_name": "<string>",
  "tags": [
    "<string>"
  ],
  "tool_ids": "<any>",
  "runs": [
    123
  ],
  "metrics": [
    123
  ],
  "metric_names": [
    "<string>"
  ],
  "phone_number": "<string>",
  "first_message": "<string>",
  "inbound_phone_number": 123,
  "inbound_phone_number_data": {
    "id": 123,
    "number": "<string>",
    "phone_number_id": "<string>",
    "common": "<string>"
  },
  "instructions": "<string>",
  "simulation_description": "<string>",
  "information_fields": {},
  "expected_outcome_prompt": "<string>",
  "scenario_language": "ar",
  "test_profile": 123,
  "test_profile_data": {
    "id": 123,
    "agent": 123,
    "name": "<string>",
    "information": {}
  }
}

Authorizations

X-CEKURA-API-KEY
string
header
required

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

Body

personality
integer
required

The personality of the evaluator

agent
integer

ID of the AI agent this scenario belongs to

assistant_id
string

Alternative to agent ID - the assistant ID to use for this scenario

name
string
Maximum length: 80
instructions
string
expected_outcome_prompt
string
metrics
object

List of metric IDs to associate with this evaluator

tags
string[]

List of tags to associate with the evaluator

tool_ids
string[]

List of tool IDs to use for evaluator

test_profile
integer

The test profile ID to use for the evaluator

inbound_phone_number
integer

The inbound phone number ID to use for the evaluator

Response

id
integer
required
inbound_phone_number_data
object
required

Details of the phone number used for inbound calls

test_profile_data
object
required

Details of the test profile associated with this scenario

name
string

Name of the evaluator

agent
integer

ID of the AI agent this scenario belongs to

personality
integer

ID of the personality

personality_name
string

Name of the personality

tags
string[]

List of tags of the evaluators

tool_ids
any

List of tool IDs to associate with this scenario

runs
integer[]

List of run IDs

metrics
integer[]

List of metric IDs

metric_names
string[]

List of metric names

phone_number
string

Phone number eg: +17776666333

first_message
string

First message of the evaluator

inbound_phone_number
integer | null
instructions
string

Instructions of the evaluator

simulation_description
string
information_fields
object

Information fields of the evaluator

expected_outcome_prompt
string

Expected outcome prompt of the evaluator

scenario_language
enum<string>

Language of the scenario

  • 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
  • multi - Multilingual
  • 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,
multi,
no,
pl,
pt,
ro,
ru,
sk,
es,
sv,
tr,
uk,
vi
test_profile
integer | null