Skip to main content

Automatically document and backup N8N workflows

Workflow preview

Workflow preview
100%
Automatically document and backup N8N workflows preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Automatically backs up your workflows to Github and generates documentation in a Notion database. Weekly run, uses the "internal infra" tag to look for new or recently modified workflows Uses a Not...

Best for

  • DevOps automation workflows
  • AI Summarization automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.set, n8n-nodes-base.httprequest, n8n-nodes-base.notion, n8n-nodes-base.slack, @n8n/n8n-nodes-langchain.openai, n8n-nodes-base.stickynote, n8n-nodes-base.github, n8n-nodes-base.if

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Luke.

Original n8n.io source

1.1 Workflow description

Title
Automatically document and backup N8N workflows
Workflow name
Automatically document and backup N8N workflows

Automatically backs up your workflows to Github and generates documentation in a Notion database.

  • Weekly run, uses the "internal-infra" tag to look for new or recently modified workflows
  • Uses a Notion database page to hold the workflow summary, last updated date, and a link to the workflow
  • Uses OpenAI's 4o-mini to generate a summarization of what the workflow does
  • Stores a backup of the workflow in GitHub (recommend a private repo)
  • Sends notification to Slack channel for new or updated workflows

Who is this for

  • Anyone seeking backup of their most important workflows
  • Anyone seeking version control for their most important workflows

Credentials required

  • N8N: You will need an N8N credential created so the workflow can query the N8N instance to find all active workflows with the "internal-infra" tag
  • Notion: You will need an Notion credential created
  • OpenAI: You will need an OpenAI credential, unless you intend on rewiring this with your AI of choice (ollama, openrouter, etc.)
  • GitHub: You will need an GitHub credential
  • Slack: You will require an Slack credential, recommend a Bot / access token configuration

Setup

Notion
  • Create a database with the following columns. Column type is specified in [type].
    • Workflow Name [text]
    • isActive (dev) [checkbox]
    • Error workflow setup [checkbox]
    • AI Summary [text]
    • Record last update [date/time]
    • URL (dev) [text/url]
    • Workflow created at [date/time]
    • Workflow updated at [date/time]
Slack
  • Create a channel for updates to be posted into
Github
  • Create a private repo for your workflows to be exported into
N8N
  • Download & install the template
  • Configure the blocks to use your N8N, Notion, OpenAI & Slack credentials for your own
  • Edit the "Set Fields" block and change the URL to that of your N8N instance (cloud or self-hosted)
  • Edit the "Add to Notion" action and specify the Database page you wish to update
  • Edit the Slack actions to specify the Channel you want slack notifications posted to
  • Edit the GitHub actions to specify the Repository Owner & Repository Name

Sample output in Notion

Workflow diagram

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Set fields

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.3

Block 2 - Get notion page with workflow id

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.1

Block 3 - Map fields

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.3

Block 4 - Add to Notion

Type / Role
n8n-nodes-base.notion - notion
Config choices
Version 2.1

Block 5 - Update in Notion

Type / Role
n8n-nodes-base.notion - notion
Config choices
Version 2.1

Block 6 - Notify internal-infra of push

Type / Role
n8n-nodes-base.slack - slack
Config choices
Version 2.3

Block 7 - Notify internal-infra of update

Type / Role
n8n-nodes-base.slack - slack
Config choices
Version 2.3

Block 8 - Notify on workflow setup error

Type / Role
n8n-nodes-base.slack - slack
Config choices
Version 2.3

Block 9 - Summarize what the Workflow does

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 1.8

Block 10 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 11 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 12 - Upload changes to repo

Type / Role
n8n-nodes-base.github - github
Config choices
Version 1

Block 13 - Create new file in repo

Type / Role
n8n-nodes-base.github - github
Config choices
Version 1

Block 14 - Notify on create file in repo fail

Type / Role
n8n-nodes-base.slack - slack
Config choices
Version 2.3

Block 15 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 16 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 17 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 18 - Is this a new workflow (to Notion) ?

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2

Block 19 - Every Monday at 1am

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.1

Block 20 - Check if updated in last 7 days

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 21 - Get active workflows with internal-infra tag

Type / Role
n8n-nodes-base.n8n - n8n
Config choices
Version 1

Block 22 - Check that error workflow has been configured

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

3. Summary Table

Workflow Automatically document and backup N8N workflows
Complexity advanced
Nodes 22
Categories DevOps, AI Summarization
Author Luke
Published 29 Mar 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/3354/3354.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Automatically document and backup N8N workflows do?

Automatically backs up your workflows to Github and generates documentation in a Notion database. Weekly run, uses the "internal infra" tag to look for new or recently modified workflows Uses a Not...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your DevOps, AI Summarization use case.