Workflows: create
workflows_createCreate a new workflow with one trigger and no steps. Choose Manual, Timed, Event, or Api, then add steps and enable it when ready.
Instructions
Create a new workflow. Creates the workflow with one trigger and no steps: Manual needs entity, Timed needs cron, Event needs entity plus an event (EntityCreated by default) and an optional filter, and Api needs api_route. It stays disabled unless enabled is set; add steps with workflows_step_add, then turn it on with workflows_enable.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cron | No | Cron expression, required for a Timed trigger (e.g. '0 9 * * *') | |
| name | Yes | Workflow name | |
| event | No | Event for an Event trigger: EntityCreated (default), EntityUpdated, EntityDeleted, UserRegistered, PaymentSucceeded and others. Not case-sensitive | |
| entity | No | Entity name, required for an Event or Manual trigger | |
| filter | No | Filter expression JSON for Event trigger (fires only when predicate matches the row) | |
| enabled | No | Enable workflow immediately after creation | |
| trigger | No | Trigger type: Manual (default), Timed, Event, Api. Not case-sensitive | |
| api_route | No | API route, required for an Api trigger | |
| description | No | Workflow description | |
| filter_file | No | Path to a file containing the filter expression JSON |