Workflows
notion_workflowAutomate Notion tasks with multi-step workflows triggered by schedules or webhook events. Chain actions like query, create page, comment, and more, with retries and durable execution.
Instructions
Multi-step workflows (version 2 of automations): a trigger (manual, schedule, or Notion webhook events) and typed steps run in order. Step actions: query, set, append, comment, create_page, move_page, duplicate_page, trash, replace_text, export_markdown, render_template, http, slack, foreach, switch, approval, delay, run_workflow. Each step has an id; may have if (a ${…} reference), retry {attempts, backoff_seconds}, timeout_seconds, and continue_on_error. Steps read earlier outputs with ${steps..} (query returns rows with id, url, title, and each property), the trigger with ${trigger.}, inputs with ${inputs.}, loop items with ${item} (or the foreach as name), and secrets with ${secret:NAME} (environment variable NOTION_PLUS_SECRET_NAME; never stored or shown). approval pauses until a checkbox is checked or a comment with a keyword is posted; delay pauses for minutes; both resume on the next scheduler pass. Runs are durable: a crash, failure, or pause resumes after the last finished step, and creating steps check what an interrupted attempt already made, so nothing is created twice. http and slack steps only reach hosts in NOTION_PLUS_HTTP_ALLOW (Slack's hook host is always allowed for slack). on_failure notifies Slack, an HTTP endpoint, or a page comment. Actions: list, get, save, delete, validate, run (now, with inputs), runs (history), run_status, resume (continue a waiting or failed run), cancel, convert (a v1 rule into a workflow, saved disabled), events / replay / discard (the webhook queue and its dead letters). Webhook events: page.created, page.content_updated, page.properties_updated, page.moved, page.deleted, page.undeleted, comment.created, data_source.content_updated, data_source.schema_updated.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Workflow id (get, delete, run, runs, convert: the rule id). | |
| limit | No | ||
| action | Yes | ||
| inputs | No | run: values for ${inputs.*}. | |
| run_id | No | ||
| status | No | runs / events: filter. | |
| event_id | No | ||
| workflow | No | save / validate: the whole workflow spec. |