Raw schema
{
"type": "object",
"properties": {
"session": {
"type": "string",
"minLength": 8,
"maxLength": 200,
"description": "The session handle from open_journey (starts with cxs_)."
},
"turn_id": {
"description": "Your idempotency id for this step (fresh per step).",
"type": "string",
"minLength": 1,
"maxLength": 128
},
"action": {
"oneOf": [
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "pick"
},
"option": {
"type": "string",
"minLength": 1,
"maxLength": 64,
"description": "An option id from the LAST beat."
},
"said": {
"description": "The user's exact words, when they said more than the option.",
"type": "string",
"maxLength": 2000
}
},
"required": [
"kind",
"option"
]
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "say"
},
"text": {
"type": "string",
"minLength": 1,
"maxLength": 4000,
"description": "The user's exact words, unsummarised."
}
},
"required": [
"kind",
"text"
]
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "go"
},
"node": {
"type": "string",
"minLength": 1,
"maxLength": 64,
"description": "A stop id from the contract's toc."
}
},
"required": [
"kind",
"node"
]
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "drill"
}
},
"required": [
"kind"
]
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "simulate"
},
"scenario": {
"type": "string",
"minLength": 1,
"maxLength": 64,
"description": "A scenario id from capabilities.scenarios."
}
},
"required": [
"kind",
"scenario"
]
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "exit"
}
},
"required": [
"kind"
]
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "resume"
}
},
"required": [
"kind"
]
}
]
}
},
"required": [
"session",
"action"
]
}