πŸ“– Automatically document n8n workflows directly in Notion database

⚑ 4,860 views Β· πŸ“– Internal Wiki & Knowledge Base

Description

Use case

n8n workflows can go out of hand when you’re automating as much as we do at n8n. We needed a place to document them and keep track of who owns and maintains them. To facilitate this we use this n8n workflow to automatically sync workflows directly to a Notion database if it has the tag sync-to-notion.

Screenshot 20240228 at 21.03.27.pngScreenshot 20240228 at 21.03.21.png

How to setup

  1. Add your n8n api creds
  2. Add your Notion creds
  3. Create notion database with fields env id as text, isActive (dev) as boolean, URL (dev) as url, Workflow created at as date, Workflow updated at as date, Error workflow setup as boolean (Make sure page is connected)
  4. Add tag sync-to-notion to some workflows

πŸ”— Nodes Used

HTTP Request, Notion, n8n, Schedule Trigger

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup