🎯 Auto-document and backup workflows with GPT-4 and Airtable

230 views · 🎯 AI Summarization & Classification

Description

Never worry about losing your n8n workflows again. This template provides a powerful, automated backup system that gives you the peace of mind of version control without the complexity of Git.

On a schedule you define, it intelligently scans your n8n instance for new workflow versions and saves them as downloadable snapshots in a clean and organized Airtable base.

But it’s more than just a backup. This workflow uses AI to automatically generate a concise summary of what each workflow does and even documents the changes between versions. The result is a fully searchable, self-documenting library of all your automations, making it the perfect “single source of truth” for your team or personal projects.

Who is this for?

What problem does this solve?

How it works

  1. Scheduled check: On a recurring schedule (e.g., daily), the workflow fetches a list of all workflows from your n8n instance.
  2. Detect new versions: It compares the current version ID of each workflow with the snapshot IDs already saved in your Airtable base. It only proceeds with new, unsaved versions.
  3. Generate AI documentation: For each new snapshot, the workflow performs two smart actions:
    • AI Changelog: It compares the new workflow JSON with the previously saved version and uses AI to generate a one-sentence summary of what’s changed.
    • AI Summary: It periodically re-analyzes the entire workflow to generate a fresh, high-level summary of its purpose, ensuring the main description stays up-to-date.
  4. Store in Airtable: It saves everything neatly in the provided two-table Airtable base:
    • A Workflows table holds the main record and the AI summary.
    • A linked Snapshots table stores the version-specific details, the AI changelog, and the actual .json backup file as an attachment.

Setup

  1. Duplicate the Airtable base: Before you start, click here to duplicate the Airtable Base template into your own Airtable account.
  2. Configure the workflow:
    • Connect your n8n API credentials to the n8n nodes.
    • Connect your Airtable credentials and map the nodes to the base you just duplicated.
    • Connect your AI provider credentials to the OpenAI Chat Model nodes.
    • Important: In the Store workflow file into Airtable (HTTP Request) node, you must replace <AIRTABLE-BASE-ID> in the URL with your own base ID (it starts with app...).
  3. Set your schedule: Configure the Schedule Trigger to your desired frequency (daily is a good start).
  4. Activate the workflow. Your automated, AI-powered backup system is now live!

Taking it further

🔗 Nodes Used

Airtable, HTTP Request, Convert to/from binary data, n8n, Schedule Trigger, Filter

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup