create_workflow
Build a complete Paperless-ngx automation workflow with triggers and actions in one call. Actions run in order whenever any trigger matches.
Instructions
Create a complete workflow — the automation Paperless actually runs — with its triggers and actions in one call. The workflow runs its actions in order whenever ANY of its triggers matches. Example: strip PDF passwords from API uploads = triggers [{type: 2, sources: [2]}] + actions [{type: 5, passwords: ["secret"]}]. Triggers and actions are given as full objects (same fields as create_workflow_trigger / create_workflow_action). Paperless rejects a remote OCR action (7) without a consumption-started trigger (1), and an apply-AI-suggestions action (8) with only consumption-started triggers.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| order | No | Run order relative to other workflows (lower runs first) | |
| actions | Yes | New actions (any id is ignored) | |
| enabled | No | Default true | |
| triggers | Yes | New triggers (any id is ignored) |