Workflows API¶
DAG-based document automation for Team+ subscribers.
Overview¶
The Workflows API enables creation and management of multi-step document processing workflows using Directed Acyclic Graphs (DAGs).
Key Features:
- Visual Workflow Designer - Build complex workflows graphically
- AI Processing Nodes - Automated document analysis and extraction
- Human Approval - Inject human decision points
- External Integration - Call external APIs and MCP tools
- Real-time Status - Monitor workflow execution progress
Availability: Team+ tier required
Quick Start¶
Create a Simple Workflow¶
{
"name": "Invoice Processing",
"trigger": {
"type": "document_upload",
"conditions": {
"folder_path": "/invoices/*",
"file_types": ["pdf"]
}
},
"nodes": [
{
"id": "extract",
"type": "ai_extract",
"config": {
"document_id": "{{trigger.document_id}}",
"extraction_schema": {
"vendor_name": "string",
"invoice_number": "string",
"amount": "number",
"due_date": "date"
}
}
},
{
"id": "approval",
"type": "human_approval",
"config": {
"assignee_type": "role",
"assignee_value": "finance_manager",
"title": "Approve Invoice"
},
"depends_on": ["extract"]
}
]
}
Workflow Management¶
Create Workflow¶
See full DAG API documentation
Execute Workflow¶
Request:
Node Types¶
AI Nodes¶
ai_summarize- Generate document summaryai_analyze- Deep document analysisai_extract- Extract structured dataai_classify- Categorize documentsai_qa- Answer questions about documents
Human Nodes¶
human_approval- Approve/reject decisionshuman_review- Review with editshuman_assignment- Route to users
Control Nodes¶
condition- If/else branchingswitch- Multi-way branchingparallel- Parallel executionjoin- Wait for parallel branchesloop- Iterate over collections
Integration Nodes¶
http_request- Call external APIsmcp_tool- Execute MCP toolsnotification- Send notifications
Complete Documentation¶
For full workflow documentation, see:
Next Steps¶
-
Upload Documents
Trigger workflows with document uploads
-
Workflow Events
Get notified of workflow status changes