Automatically document and backup N8N workflows

Nodes

3b9f1b78-6b80-4575-aa6c-9669870003898c6be9a3-5bfc-4944-bb99-86bb97507a26f46e04ec-9a94-4c82-81ed-da3e98d961f1eb4d7d31-2fbb-4c15-b894-0022be7a4ecf696173da-41ce-4099-af01-be2e2f7d5be1+2

Categories

Created by

LuLuke

Last edited 10 days ago

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

New to n8n?

Need help building new n8n workflows? Process automation for you or your company will save you time and money, and it's completely free!