Prerequisites:
- Authentication configured (see Authentication guide)
1
Create a workflow
Create an empty workflow that the copilot will populate.Endpoint:
POST /api/workflows2
Start a copilot session
Create a copilot session linked to the workflow.Endpoint:
POST /api/copilot/sessions3
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}/chat4
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}/snapshot5
Execute the workflow
Run the copilot-built workflow with input data.Endpoint:
POST /api/workflows/{id}/executeYou 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.