Skip to main content
POST
/
test_framework
/
v1
/
scenarios
/
create-from-transcript-bg
/
cURL
curl --request POST \
  --url https://api.cekura.ai/test_framework/v1/scenarios/create-from-transcript-bg/ \
  --header 'Content-Type: application/json' \
  --header 'X-CEKURA-API-KEY: <api-key>' \
  --data '
{
  "transcript_json": [
    {
      "content": "<string>",
      "end_time": 123,
      "start_time": 123,
      "data": {
        "id": "<string>",
        "name": "<string>",
        "arguments": null,
        "result": null
      }
    }
  ],
  "personality": 123,
  "agent": 123,
  "assistant_id": "<string>",
  "name": "<string>",
  "expected_outcome_prompt": "<string>",
  "folder_path": "<string>"
}
'
{
  "progress_id": "<string>"
}

Authorizations

X-CEKURA-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

folder_path
string | null

Folder path to assign the scenario to (e.g. 'folder_name' or 'parent.child')

Response

progress_id
string