Skip to main content
POST
Draw steps from words

Authorizations

Authorization
string
header
required

An API key from Settings → API keys, sent as Authorization: Bearer kb_live_…. A workspace key starts kb_; a personal key starts kbp_ and acts as its owner.

Headers

Kallabot-Version
enum<string>

The API version to answer as, a date (YYYY-MM-DD). Leave it out for the current version (2026-11-07). An unknown version is refused with 400 unsupported_api_version.

Available options:
2026-11-07
Example:

"2026-11-07"

Path Parameters

agent_id
string
required

Body

application/json
words
string
required

What the owner typed: "Ask for their name and postcode, check we deliver there, take the order", or a change to steps that exist: "add a step asking about allergies".

Required string length: 1 - 2000
set_id
string | null

Edit this set of steps (config.pathways[].id). Leave it out to draw a new set.

Maximum string length: 40
kind
enum<string> | null

For a new set. Left out: pathway, or phone_menu when the place is a call and the words describe pressing keys. A phone menu asked for on a chat is drawn as steps with buttons.

Available options:
pathway,
phone_menu
place
enum<string> | null

Where the steps will answer. It decides the wording: the caller and keys on calls, the customer and buttons on chats.

Available options:
phone_in,
phone_out,
whatsapp,
instagram,
messenger,
web_chat
current
Current · object | null

The set as the builder holds it right now, unsaved. It is what gets edited, in place of the saved one.

Response

Successful Response

set
Set · object
required

The whole set of steps (config.pathways[] shape), tidied, with no problems that would stop it being saved for that kind and place. Nothing is saved: send it back in pathways to keep it.

summary
string
required

One to four short sentences on what was drawn or changed.

changes
StepsDraftChanges · object
required

What differs from the set it started from.

notes
string[]
required

What the owner still has to fill in, e.g. "Add the number for the front desk".