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

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

Ready for 3.0

by Sridevi Edupuganti ✓ · 330 views · created 2025-11-21 · Document Extraction, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 11 nodes and runs when someone submits an n8n form (“Upload Json file to convert to Sanitized JSON version”). Along the way it connects OpenAI and Gmail.

How it runs

Trigger: When someone submits an n8n form (“Upload Json file to convert to Sanitized JSON version”).

  1. Extract JSON content (Extract from File): extracts data from a file (from json)
  2. Prepare Original Workflow Structure (Edit Fields (Set)): sets 1 field: originalWorkflowJson
  3. Format Original Workflow(JS) (Code): runs custom JavaScript code
  4. AI Sanitize Workflow JSON (OpenAI): uses OpenAI
  5. Combine Original & Sanitized JSON (Merge): merges the data from its input branches
  6. Format Sanitized Workflow (JS) (Code): runs custom JavaScript code
  7. Generate Workflow Change log (AI) (OpenAI): uses OpenAI
  8. Create Sanitized JSON File (Convert to File): converts data to a file (to text)
  9. Assemble Email Content & Attachment (Merge): merges the data from its input branches
  10. Email Sanitized Workflow + Report (Gmail): uses Gmail

Services it uses

OpenAIGmail

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (8)

From the author

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…

Excerpt from Sridevi Edupuganti's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.