AutomationFlowsEmail & Gmail › Send Standardized Alert Emails via Gmail with Custom Subject and Content

Send Standardized Alert Emails via Gmail with Custom Subject and Content

ByKevin @mieubrisse on n8n.io

This is a basic helper workflow to abstract the process of sending an alert email through Gmail.

Event trigger★★☆☆☆ complexity4 nodesExecute Workflow TriggerGmail
Email & Gmail Trigger: Event Nodes: 4 Complexity: ★★☆☆☆ Added:

This workflow corresponds to n8n.io template #6189 — we link there as the canonical source.

This workflow follows the Execute Workflow Trigger → Gmail recipe pattern — see all workflows that pair these two integrations.

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "id": "17yjHH5i669dVRGk",
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "name": "\u2757 Send Email Alert",
  "tags": [],
  "nodes": [
    {
      "id": "6daa4fcf-1fd5-440a-9fbf-545a2a1ccb46",
      "name": "When Executed by Another Workflow",
      "type": "n8n-nodes-base.executeWorkflowTrigger",
      "position": [
        0,
        0
      ],
      "parameters": {
        "workflowInputs": {
          "values": [
            {
              "name": "subject"
            },
            {
              "name": "lines",
              "type": "array"
            }
          ]
        }
      },
      "typeVersion": 1.1
    },
    {
      "id": "f6b0969d-8043-4687-9a4d-68e109b7cacd",
      "name": "Send a message",
      "type": "n8n-nodes-base.gmail",
      "position": [
        208,
        0
      ],
      "parameters": {
        "sendTo": "user@example.com",
        "message": "={{ $json.lines.join(\"\\n\") }}",
        "options": {
          "appendAttribution": false
        },
        "subject": "=\u2757 n8n Alert: {{ $json.subject }}",
        "emailType": "text"
      },
      "credentials": {
        "gmailOAuth2": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 2.1
    },
    {
      "id": "57956b5a-0cad-4452-adf0-f34655d92561",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        144,
        -96
      ],
      "parameters": {
        "content": "\u26a0\ufe0f If you change the subject, you should change the email filter that selects these emails!"
      },
      "typeVersion": 1
    },
    {
      "id": "d534819e-84fd-45f3-9685-9396ad8bfed3",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -400,
        -416
      ],
      "parameters": {
        "width": 464,
        "height": 384,
        "content": "This is a basic helper workflow to abstract the process of sending an alert email through Gmail.\n\nIt takes in two parameters:\n- Subject\n- Lines (as an array of lines)\n\nYou'll also need to fill in your email.\n\nNotably, all emails it sends have `\u2757 n8n Alert: ` prefixed to the subject line, which makes them easy to identify and highlight in an email inbox.\n\nIn Gmail, this can be done by starring all messages that come in with `\u2757 n8n Alert:` in the subject line, then using the Priority Inbox to push starreed messages to the top.\n\n_It's important to star the message rather than Mark As Important, because Gmail refuses to mark emails sent by automation as important._\n"
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "b5e01a9c-886e-432e-b894-7cd8421ba6ec",
  "connections": {
    "When Executed by Another Workflow": {
      "main": [
        [
          {
            "node": "Send a message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}

Credentials you'll need

Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.

Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

This is a basic helper workflow to abstract the process of sending an alert email through Gmail.

Source: https://n8n.io/workflows/6189/ — original creator credit. Request a take-down →

More Email & Gmail workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

Email & Gmail

📩🤖 This workflow automatically processes emails received in Gmail, extracts their attachments, and organizes them into specific folders in Google Drive based on the sender's email address.

Gmail Trigger, Google Drive, Execute Workflow Trigger +1
Email & Gmail

How it works: The organizer continuously monitors your Gmail inbox. It analyzes sender and subject to categorize emails (Work, Purchases, Newsletter) and automatically applies labels. Based on the cat

Gmail Trigger, Gmail
Email & Gmail

Community Node Disclaimer: This workflow uses KlickTipp community nodes.

N8N Nodes Klicktipp, Gmail
Email & Gmail

Let's build this workflow to streamline your customer support. Here is a detailed, node-by-node explanation of how it works and how to set it up in n8n.

Gmail Trigger, Trello, Gmail +1
Email & Gmail

Send an email via Gmail when a workflow error occurs.

Error Trigger, Gmail