See llms.txt for all machine-readable content.

Back to Templates

Back up workflow catalog JSON to Notion with n8n API

Quick overview

This workflow runs manually or hourly to back up your n8n workflows into a Notion database by creating or updating one page per workflow with a generated README and a verified JSON file attachment, using the n8n API and Notion API with optional email reporting.

How it works

  1. Discover active, inactive and archived workflows through the n8n API.
  2. Match each workflow to one stable page in a dedicated Notion catalog.
  3. Generate readable English documentation from the workflow's notes and configured steps.
  4. Attach one complete, formatted JSON export directly to each workflow page.
  5. Download and verify the attachment before accepting a replacement or removing an older copy.
  6. Preserve personal notes and recognized documentation edits. Keep the last backup when a source workflow becomes unavailable.
  7. Process workflows sequentially with paced requests, bounded retries and a report that identifies incomplete backups.

Setup

  1. Import public-export.json from the V3 release package and keep the backup inactive while configuring integrations.
  2. Create an n8n API credential with permission to read workflows and executions, then select it in the n8n API node.
  3. Import and save the separate setup-notion-catalog.json companion from the same V3 package. It creates or reuses the dedicated Notion catalog and its 14 properties.
  4. Select your Notion integration credentials in the setup companion and both Notion API nodes of the backup; share the intended parent page or existing catalog with that integration.
  5. In Configuration, set setupWorkflowId to the saved companion workflow ID, configure your Notion parent or existing data source and n8n instance/API URLs, then run setup sequentially before the first backup.
  6. Configure SMTP credentials and notification preferences if email reports are required. Otherwise, leave notifications off and disable the optional Send backup email node.
  7. Configure binary storage and execution retention for your deployment.
  8. Run a sync, inspect the generated documentation and download a JSON attachment before enabling unattended execution.
  9. Choose a schedule and time zone that suit your needs, then activate the configured workflow.

Requirements

  • An n8n instance with public API access and permission to read the workflows and executions being documented.
  • A Notion workspace with a dedicated catalog database and an integration that can read, insert and update its content and upload files.
  • A Notion upload allowance large enough for the workflow exports being backed up.
  • Binary storage supported by your n8n deployment and sufficient capacity for attachments and execution data.
  • An SMTP account only if you enable email notifications.

Customization

  • Adjust workflow inclusion, exclusions and archived-workflow handling in Configuration.
  • Change the schedule, request pacing, runtime budget and file-size allowance to match your environment.
  • Improve the English sticky notes in source workflows to make the generated documentation more useful.
  • Add personal commentary to the Notes property or outside the managed documentation sections.
  • Configure email notifications or an independent n8n error workflow to suit your monitoring preferences.

Additional info

  • Synchronization runs from n8n to Notion. Restore an exported workflow by importing its JSON into n8n.
  • Exports represent the latest saved workflow definition, which may differ from the published version.
  • Encrypted credential values and pinned data are excluded. Back up the n8n database, encryption key, credentials and runtime files separately.
  • Operational exports can retain source URLs, identifiers and credential references. Review them before sharing outside your organization.
  • Files that exceed the configured upload allowance produce an error and leave the previous backup intact.
  • V3 uses native n8n nodes and requires its separate setup-notion-catalog.json companion. No AI service or community node package is required.

Published V3 package, setup companion and release reference: https://github.com/paoloronco/n8n-templates/tree/main/catalog/n8n-published/23213
V4 is a separate unified 30-node revision under review as #22936. The main repository workflow.json is V4, not the downloadable V3 release.