Skip to main content
POST
Create agent scenario

Authorizations

Authorization
string
header
required

Access token issued by gs.service.id. Its access_identity claim carries team_sid, actor_sid and actor_type, and that team scope is authoritative.

Team-SID
string
header
required

Team scope for tokens that do not carry one. Ignored when the token already names a team.

Body

application/json

Request body of create_agent_scenario.

title
string
required

The scenario's name, 1..255 chars, the natural key inside the team.

Required string length: 1 - 255
trigger
string
required

When the scenario applies, in plain language, written for an LLM to match against one inbound reply.

Required string length: 1 - 2048
agent_sid
string

The AI SDR whose scenario it is (ub_ag_…); with a platform key, which agent's version. Left out, the team's default agent.

Required string length: 18
Pattern: ^ub_ag_
context
string | null

The instructions over the playbook, any length; the compaction writes the copy the model reads after the save.

Maximum string length: 32768
steps
object[] | null

The scenario's own steps; omit them and the classified scenario's playbook applies with the context over it.

Maximum array length: 16
level
enum<string>

Default autopilot. off drafts no reply (the other steps still run; a task step hands the thread over). The 21st own scenario is a 429 limit_exceeded.

Available options:
autopilot,
copilot,
conditional,
off
conditions
object[]

With level conditional: the conditions in order (at most 6), the first that holds deciding; a lead condition needs its words.

Maximum array length: 6

Response

create success envelope.

success
enum<boolean>
required
Available options:
true
operation
enum<string>
required
Available options:
create
item
object
required
already_exists
boolean
required
meta
object
required