Scenario Builder

Generate Workflow From Prompt

Changed on

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

post/v1/scenario/generate-from-prompt

Request

  • Base URL
    https://api.getbluejay.ai
  • URL
    https://api.getbluejay.ai/v1/scenario/generate-from-prompt
  • Auth
    HTTPBearer (a scheme the document does not define)

Headers

X-Organization-Idstring
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.

Changes