v3

OpenAPI 3.1.02026-07-31350397683.8 KB
Scenario Builder

Generate Workflow From Prompt

Generate a validated React Flow graph from natural language (not persisted). Use POST /v1/scenario to save.

post/v1/scenario/generate-from-prompt

Headers

X-API-Keystring required

API key required to authenticate requests.

Request body

promptstring required

What the workflow should cover (steps, branches, agent vs user lines).

contextstring nullable

Optional product or agent context to steer the layout.

Response

Successful Response

definitionobject required

React Flow graph that passed the same validation as create/update.