Prerequisites:
- Authentication configured (see Authentication guide)
Create a workflow
Create an empty workflow that the copilot will populate.Endpoint:
POST /api/workflowsStart a copilot session
Create a copilot session linked to the workflow.Endpoint:
POST /api/copilot/sessionsDescribe 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}/chatSave 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}/snapshotWhat’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.