Skip to main content
The AI copilot generates a complete workflow graph from a natural language description. You create a copilot session linked to a workflow, describe what you want, and the copilot produces the blocks and edges. Iterate over multiple chat turns to refine the workflow.
Prerequisites:
  • Authentication configured (see Authentication guide)
1

Create a workflow

Create an empty workflow that the copilot will populate.Endpoint: POST /api/workflows
2

Start a copilot session

Create a copilot session linked to the workflow.Endpoint: POST /api/copilot/sessions
3

Describe your workflow

Send a natural language description via the chat endpoint. The copilot responds with a streaming SSE response that includes the generated workflow graph.Endpoint: POST /api/copilot/sessions/{id}/chat
4

Save the copilot's suggestion

Save the copilot’s generated workflow graph as a snapshot. This applies the blocks and edges to the workflow.Endpoint: POST /api/copilot/sessions/{id}/messages/{mid}/snapshot
5

Execute the workflow

Run the copilot-built workflow with input data.Endpoint: POST /api/workflows/{id}/execute
You can also build workflows programmatically via PUT /api/workflows/{id}/graph; see the Build Workflows Programmatically guide.

What’s Next

Workflows (Programmatic)

Fine-tune workflows by editing the graph directly.

Workflows

Understand block types and graph execution.

Copilot API Reference

Full endpoint documentation.