Use this reusable n8n workflow to centralize and standardize system alerts sent via Gmail. Easily configure subject prefixes and multi-line message bodies using the n8n node logic.
Download this n8n workflow template and start using it instantly.
This n8n workflow solves the problem of decentralized and inconsistent system alerting. By abstracting the sending process into a dedicated sub-workflow, you ensure all alerts adhere to a strict standard, making them easy to filter, prioritize, and manage in an email client like Gmail.
Crucially, this n8n template automatically prefixes the email subject with ❗ n8n Alert:, which is essential for setting up reliable email filters. When using this n8n node structure, engineers can reliably star these messages in Gmail to ensure they appear in a Priority Inbox, bypassing Gmail's tendency to de-prioritize automated messages. This specific approach increases the reliability and visibility of critical information generated by your main n8n workflows.
This automation is designed to function as a reusable service executed by other, larger n8n workflows. The flow starts with a special type of n8n trigger:
When Executed by Another Workflow n8n trigger waits for incoming data from a parent n8n node (an 'Execute Workflow' node in another automation). It specifically expects two key parameters: subject (the core subject line of the alert) and lines (an array of strings forming the message body).lines and uses an expression to join them together with newline characters (\n), formatting the content into a readable, multi-line email body.=❗ n8n Alert: {{ $json.subject }}. This ensures every email sent by this n8n workflow is immediately identifiable.Send a message). Click on the credentials field and link your existing Gmail OAuth2 credential, or create a new one, granting n8n permission to send emails from your account.[email protected] to your desired alert recipient address. When Executed by Another Workflow (n8n trigger):
Function: Serves as the listener for cross-workflow communication, allowing external n8n templates to trigger this alert service.
Key Configuration: Defines input schema requiring subject (string) and lines (array).
Send a message (Gmail n8n node):
Function: Executes the final action of sending the alert email using configured Gmail credentials.
Key Configuration:
sendTo: Requires the target recipient email.
subject: Uses the expression =❗ n8n Alert: {{ $json.subject }} to standardize alerting.
* message: Uses the expression ={{ $json.lines.join("\n") }} to convert the input array into a readable body.
Use this robust n8n workflow to automatically monitor public GitHub repositories for new releases and send instant, detailed notifications directly to Slack. This n8n template is ideal for Dev/Ops.

Use this powerful n8n workflow to monitor AWS IAM access key rotation compliance. Automatically detect keys older than 365 days and send immediate alerts using the Slack n8n node.

Automate severe weather alerts using this n8n workflow. The n8n trigger checks the Visual Crossing API hourly and sends instant safety notifications via the Telegram n8n node.

Automate instant Telegram notifications for new WooCommerce orders using a robust n8n workflow. Track sales in real-time with this essential n8n template.

I worked for 7 years at Palantir before founding a devops startup, Kurtosis. I then started investigating quantified life, which led me to n8n!







































