Skip to main content

Strip secrets from JSON file via AI Formatter + Merge node&send mail report

Workflow preview

Workflow preview
100%
Strip secrets from JSON file via AI Formatter + Merge node&send mail report preview
Open on n8n.io

Important notice

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

1. Workflow Overview

Description This workflow sanitizes any uploaded n8n workflow JSON by removing credentials, webhook IDs, and sensitive metadata. Using AI and structured comparison, it generates a clean, secure wor...

Best for

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

Tools used

n8n-nodes-base.formtrigger, n8n-nodes-base.extractfromfile, n8n-nodes-base.set, n8n-nodes-base.code, @n8n/n8n-nodes-langchain.openai, n8n-nodes-base.merge, n8n-nodes-base.converttofile, n8n-nodes-base.gmail

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Strip secrets from JSON file via AI Formatter + Merge node&send mail report
Workflow name
Strip secrets from JSON file via AI Formatter + Merge node&send mail report

Description

This workflow sanitizes any uploaded n8n workflow JSON by removing credentials, webhook IDs, and sensitive metadata. Using AI and structured comparison, it generates a clean, secure workflow version, creates a downloadable sanitized file, and emails a detailed change-log report to the user.

Key Features

• AI-powered sanitization of workflow JSON • Automatic removal of secrets, credentials,
webhook IDs, and metadata • Node-level change detection and comparison • Generates sanitized workflow file (JSON) • Sends formatted HTML email report with attachment • Supports customization for additional filtering rules

How It Works

The user uploads a workflow JSON file, which is extracted and formatted. AI then sanitizes the workflow and returns a secure version. Both original and sanitized workflows are merged for analysis, and a structured change-log is generated. A sanitized JSON file is created and emailed to the user with the report.

How to Use

Upload your workflow JSON via the form. The workflow processes it automatically, generates a sanitized version, creates a change-log, and emails both the report and sanitized JSON file to you.

Requirements

• OpenAI credentials • Gmail or SMTP credentials • n8n workflow JSON exported from the editor

Customising This Workflow

Modify sanitization rules, formatting logic, or email templates inside the JS and AI nodes to suit organizational security policies or custom metadata filtering.

Support:

Join n8n Discord https://discord.com/invite/n8n or Community Forum https://community.n8n.io/

README file available at https://bit.ly/GeneratesanitizedJSONfile

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 - Upload Workflow Json

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

Block 2 - Extract JSON content

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

Block 3 - Prepare Original Workflow Structure

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

Block 4 - Format Original Workflow(JS)

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

Block 5 - AI Sanitize Workflow JSON

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

Block 6 - Format Sanitized Workflow (JS)

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

Block 7 - Combine Original & Sanitized JSON

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.2

Block 8 - Generate Workflow Change log (AI)

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

Block 9 - Assemble Email Content & Attachment

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.2

Block 10 - Create Sanitized JSON File

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

Block 11 - Email Sanitized Workflow + Report

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

Block 12 - Sticky Note

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

Block 13 - Sticky Note1

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

Block 14 - Sticky Note2

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

Block 15 - Sticky Note3

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

Block 16 - Sticky Note4

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

Block 17 - Sticky Note5

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

Block 18 - Sticky Note6

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

Block 19 - Sticky Note7

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

3. Summary Table

Workflow Strip secrets from JSON file via AI Formatter + Merge node&send mail report
Complexity advanced
Nodes 19
Categories Document Extraction, AI Summarization
Author Sridevi Edupuganti
Published 21 Nov 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/11065/11065.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 Strip secrets from JSON file via AI Formatter + Merge node&send mail report do?

Description This workflow sanitizes any uploaded n8n workflow JSON by removing credentials, webhook IDs, and sensitive metadata. Using AI and structured comparison, it generates a clean, secure wor...

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 Document Extraction, AI Summarization use case.