Deploy this essential n8n workflow to automatically generate weekly security audit reports for your n8n instance, including risk levels, credential exposure, and execution status, delivered via Gmail. Use this powerful n8n template for DevOps monitoring.
Download this n8n workflow template and start using it instantly.
System Administrators and DevOps Engineers responsible for n8n instance health and security.
Technical managers requiring regular, automated risk assessments.
Users looking for advanced n8n templates utilizing the internal n8n node for monitoring.
Anyone needing an automated weekly security n8n trigger.
Maintaining security compliance and operational health is critical for any self-hosted n8n instance. This specialized n8n workflow template solves the challenge of manual auditing by automatically generating a comprehensive security report every week. Leveraging the dedicated n8n node for auditing, this automation reviews exposed credentials, dangerous node usage (like Code and Execute Command), and instance security settings. The report is then enriched with real-time execution data, showing the status (success/failure) of the analyzed n8n workflow runs. Finally, it uses a multi-language Code n8n node to format the results into a rich, color-coded HTML report and delivers it instantly via Gmail. This is a crucial n8n workflow for proactive security management.
The entire process is initiated by the Schedule n8n trigger.
Set Config Variables n8n node, where crucial parameters (recipient email, project name, server URL, and report language) are defined.n8n node (using the API) executes the core function: Generate a security audit. This action scans the entire n8n instance for security vulnerabilities.Filter duplicate WorkflowID Code n8n node. This ensures that unique n8n workflow IDs are isolated for subsequent lookups.Get last executions n8n node is called, retrieving the latest run status (success or failure) and execution timestamps directly from the n8n API. This step enriches the final report.If Language n8n node checks the configured 'Language' variable. If set to 'FR', it routes to the French formatter; otherwise, it defaults to the English formatter.Format Audit Report - EN/FR) compiles all data (audit findings, execution statuses, security settings) into a single, comprehensive HTML email body and determines the risk level (Low, Moderate, High) for the email subject line.Send Gmail (HTML) n8n node sends the fully formatted HTML report to the configured recipient, completing the scheduled n8n workflow.To deploy this powerful n8n workflow template, follow these steps:
Generate a security audit n8n node and the Get last executions n8n node, configure a new 'n8n API' credential using the generated API Key.Send Gmail (HTML) n8n node.emailto value to your target recipient address.projectname (e.g., 'Production Instance').server_url to your n8n domain (e.g., https://n8n.mydomain.com). Do not include a trailing slash (/).Language to 'EN' or 'FR' (uppercase). Schedule Trigger (Weekly) (n8n trigger):
Function: Initiates the entire n8n workflow on a weekly basis (default: Monday, 6 AM).
Key Configuration: mode: everyWeek, hour: 6.
Set Config Variables (Set n8n node):
Function: Defines runtime variables used throughout the n8n workflow, including the email recipient, project identifier, server base URL, and report language.
Key Configuration: Defines global variables via expressions for downstream nodes.
Generate a security audit (n8n node):
Function: Uses the internal n8n API to perform a security audit of the instance, including credential exposure and node risk assessment.
Key Configuration: resource: audit, operation: generate.
Filter duplicate WorkflowID (Code n8n node):
Function: Processes the raw audit output to extract a list of unique n8n workflow IDs that contain security issues, preventing redundant API calls.
Key Configuration: Custom JavaScript to deduplicate based on workflowId.
Get last executions (n8n node):
Function: Fetches the recent execution status (last run) for each unique problematic n8n workflow identified in the previous step.
Key Configuration: Uses an expression for the workflowId filter; limit: 1.
If Language (If n8n node):
Function: Routes the data stream based on the 'Language' configuration variable, ensuring the correct formatting script runs.
Key Configuration: Checks if Language equals 'FR'.
Format Audit Report - EN/FR (Code n8n node):
Function: Aggregates audit findings, security settings, and execution statuses into a final, structured HTML and Markdown report, calculating the overall risk level.
Key Configuration: Extensive JavaScript to build the report dynamically, including embedded links to the affected n8n workflow pages.
Send Gmail (HTML) (Gmail n8n node):
Function: Sends the final, richly formatted HTML security report via email.
Key Configuration: Uses expressions for toList and subject (which includes the calculated risk level and emoji) and includes the HTML message body.
Use this n8n workflow to automate weekly reporting of projects missing budgeted costs. This n8n template queries MySQL, uses the n8n Switch node for routing by cost center, and sends custom HTML emails via Microsoft Outlook.

A powerful n8n workflow to automate weekly e-commerce newsletters. Fetch discounted products from Algolia, generate responsive HTML, manage subscribers in Google Sheets, and send personalized emails using the n8n node ecosystem.

Generate a personalized, AI-summarized weekly Google Calendar schedule using this powerful n8n workflow. It automatically handles date calculations, prioritization, and delivery via email.

Use this powerful n8n workflow to automate weekly tech stack analysis. It uses a scheduled n8n trigger, fetches data via BuiltWith, summarizes with GPT-4o, and sends clear reports via Gmail. Start leveraging n8n templates today.

Use this complex n8n workflow to automatically generate structured weekly team reports from chaotic WhatsApp group activity. Leverages Google Gemini AI for deep conversational analysis. Get started with these powerful n8n templates.


8 years exp in IT over different kind of task, from support to sysadmin. Automation learner and builder. I will share simple workflow that can be used in various situation.







































