Import and Export
Workflows can be exported as JSON and imported back. This enables backup, sharing between team members, and moving workflows across projects.
Exporting a Workflow
- Open the workflow on the canvas.
- Click Export in the toolbar.
- Choose Export as JSON.
- A
.jsonfile downloads to your computer.
What's in the Export
The JSON export includes:
- All nodes (type, position, label, configuration)
- All edges (connections between nodes)
- Trigger configuration
- Agent node references (agent IDs from the source project)
- Expression strings
{
"version": "1.0",
"name": "Research Pipeline",
"exported_at": "2024-01-15T10:30:00Z",
"nodes": [
{
"id": "node_1",
"type": "triggerNode",
"position": {"x": 100, "y": 200},
"data": {
"label": "Trigger",
"trigger_type": "manual",
"default_input": "artificial intelligence"
}
},
{
"id": "node_2",
"type": "agentNode",
"position": {"x": 350, "y": 200},
"data": {
"label": "Research",
"agent_id": "agent_abc123",
"input": "{{trigger.output}}"
}
}
],
"edges": [
{
"id": "edge_1",
"source": "node_1",
"target": "node_2"
}
]
}
Importing a Workflow
- Click Workflows in the sidebar.
- Click the Import button (or the dropdown next to New Workflow).
- Select your JSON file.
- Preview the workflow structure.
- Give it a name (defaults to the original workflow name).
- Click Import.
The workflow appears in your list. Open it on the canvas to see the imported nodes.
When importing a workflow from a different project (or from a different user's export), agent node references (agent_id) will point to agents that don't exist in your project. These nodes show a ⚠️ indicator. You must select a replacement agent from your project's agents before running.
Use Cases
Backup
Export workflows periodically to keep local backups. Combine with a Schedule trigger + an http_request node to automate backups to S3, Notion, or another store.
Sharing
Share workflow designs with teammates or the community:
- Export the JSON
- Send via Slack, email, GitHub, etc.
- Recipient imports into their project and replaces agent references
Moving Between Projects
- Export from Project A
- Import into Project B
- Update agent references to Project B's agents
Version Control
Commit workflow JSON files to Git for version history:
git add workflows/research-pipeline.json
git commit -m "Add research pipeline workflow"
Batch Export
To export all workflows in a project at once:
- Go to Workflows list.
- Click Export All (bulk action menu).
- Downloads a
.zipfile containing individual JSON files for each workflow.
JSON Schema
Workflow export files follow this schema:
interface WorkflowExport {
version: "1.0";
name: string;
exported_at: string; // ISO 8601
nodes: Node[];
edges: Edge[];
}
interface Node {
id: string;
type: "triggerNode" | "agentNode" | "branchNode" | "loopNode" | "outputNode" | "humanLoopNode" | "noteNode";
position: { x: number; y: number };
data: Record<string, unknown>; // Type-specific configuration
}
interface Edge {
id: string;
source: string; // Node ID
target: string; // Node ID
sourceHandle?: string; // "true" or "false" for branch nodes
}