AutomationFlowsEmail & Gmail › Electron - Emails Transactionnels

Electron - Emails Transactionnels

ELECTRON - Emails Transactionnels. Uses gmail. Webhook trigger; 10 nodes.

Webhook trigger★★★☆☆ complexity10 nodesGmail
Email & Gmail Trigger: Webhook Nodes: 10 Complexity: ★★★☆☆ Added:

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
{
  "name": "ELECTRON - Emails Transactionnels",
  "nodes": [
    {
      "id": "webhook",
      "name": "Webhook - Order Event",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2,
      "position": [
        220,
        300
      ],
      "parameters": {
        "httpMethod": "POST",
        "path": "electron-email",
        "responseMode": "onReceived",
        "options": {
          "rawBody": false
        }
      }
    },
    {
      "id": "switch",
      "name": "Email Type Switch",
      "type": "n8n-nodes-base.switch",
      "typeVersion": 3,
      "position": [
        420,
        300
      ],
      "parameters": {
        "dataType": "string",
        "value1": "={{ $json.type }}",
        "operation": "equal",
        "value2": "welcome",
        "rules": {
          "cases": [
            {
              "operation": "equal",
              "value2": "welcome",
              "output": 0
            },
            {
              "operation": "equal",
              "value2": "order_confirmed",
              "output": 1
            },
            {
              "operation": "equal",
              "value2": "shipped",
              "output": 2
            },
            {
              "operation": "equal",
              "value2": "delivered",
              "output": 3
            },
            {
              "operation": "equal",
              "value2": "review_request",
              "output": 4
            },
            {
              "operation": "equal",
              "value2": "abandoned_cart",
              "output": 5
            }
          ],
          "rulesInput": {
            "mode": "string"
          }
        },
        "options": {
          "fallbackOutput": 6
        }
      }
    },
    {
      "id": "welcome",
      "name": "1 - Welcome Email",
      "type": "n8n-nodes-base.gmail",
      "typeVersion": 4,
      "position": [
        640,
        100
      ],
      "parameters": {
        "operation": "send",
        "from": "electronbusiness07@gmail.com",
        "to": "={{ $json.email }}",
        "subject": "Bienvenue chez ELECTRON - E-Designe! \ud83c\udf80",
        "bodyType": "text",
        "body": "Bonjour {{ $json.name }},\n\nMerci de votre inscription chez ELECTRON!\n\nNous sommes ravis de vous avoir avec nous.\n\nDecouvrez notre collection:\n- Robes elegantes\n- Tenues africaines traditionnelles\n- Vetements pour bebe\n- Accessoires de mode\n\nUtilisez le code **BIENVENUE10** pour obtenir 10% de reduction sur votre premiere commande!\n\nL'equipe ELECTRON\n\n---\n electronbusiness07@gmail.com",
        "options": {
          "includeHtml": false
        }
      },
      "credentials": {
        "gmailApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "id": "confirmed",
      "name": "2 - Order Confirmed",
      "type": "n8n-nodes-base.gmail",
      "typeVersion": 4,
      "position": [
        640,
        200
      ],
      "parameters": {
        "operation": "send",
        "from": "electronbusiness07@gmail.com",
        "to": "={{ $json.email }}",
        "subject": "Confirmation commande #{{ $json.orderId }} - ELECTRON",
        "bodyType": "text",
        "body": "Bonjour!\n\nVotre commande #{{ $json.orderId }} est confirmee!\n\nDetails:\n{{ $json.items }}\n\nTotal: {{ $json.total }} euros\n\nNous vous tiendrons informe de l'avancement!\n\nL'equipe ELECTRON",
        "options": {
          "includeHtml": false
        }
      },
      "credentials": {
        "gmailApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "id": "shipped",
      "name": "3 - Order Shipped",
      "type": "n8n-nodes-base.gmail",
      "typeVersion": 4,
      "position": [
        640,
        300
      ],
      "parameters": {
        "operation": "send",
        "from": "electronbusiness07@gmail.com",
        "to": "={{ $json.email }}",
        "subject": "Votre commande est expadiee! \ud83d\ude9a - ELECTRON",
        "bodyType": "text",
        "body": "Bonjour!\n\nVotre commande est en route!\n\nNumero de suivi: {{ $json.tracking }}\n\nDelai de livraison: 3-5 jours ouvres\n\nSuivez votre colis en ligne!\n\nL'equipe ELECTRON",
        "options": {
          "includeHtml": false
        }
      },
      "credentials": {
        "gmailApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "id": "delivered",
      "name": "4 - Order Delivered",
      "type": "n8n-nodes-base.gmail",
      "typeVersion": 4,
      "position": [
        640,
        400
      ],
      "parameters": {
        "operation": "send",
        "from": "electronbusiness07@gmail.com",
        "to": "={{ $json.email }}",
        "subject": "Commande livree! - ELECTRON",
        "bodyType": "text",
        "body": "Bonjour!\n\nVotre commande est livree!\n\nNous esperons qu'elle vous plaira!\n\nN'oubliez pas de laisser un avis - \u00e7a nous aide beaucoup a nous ameliorer.\n\nLien pour donner votre avis: {{ $json.reviewLink }}\n\nMerci de votre confiance!\n\nL'equipe ELECTRON",
        "options": {
          "includeHtml": false
        }
      },
      "credentials": {
        "gmailApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "id": "review",
      "name": "5 - Review Request",
      "type": "n8n-nodes-base.gmail",
      "typeVersion": 4,
      "position": [
        640,
        500
      ],
      "parameters": {
        "operation": "send",
        "from": "electronbusiness07@gmail.com",
        "to": "={{ $json.email }}",
        "subject": "Votre avis nous interesse - ELECTRON",
        "bodyType": "text",
        "body": "Bonjour!\n\nVotre commande a etee livree il y a quelques jours.\n\nVotre avis nous aide a ameliorer notre service!\n\nPrenez 1 minute pour noter votre experience:\n{{ $json.reviewLink }}\n\nMerci d'avance!\n\nL'equipe ELECTRON",
        "options": {
          "includeHtml": false
        }
      },
      "credentials": {
        "gmailApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "id": "abandoned",
      "name": "6 - Abandoned Cart",
      "type": "n8n-nodes-base.gmail",
      "typeVersion": 4,
      "position": [
        640,
        600
      ],
      "parameters": {
        "operation": "send",
        "from": "electronbusiness07@gmail.com",
        "to": "={{ $json.email }}",
        "subject": "Vous avez oublie quelque chose... \ud83d\uded2 - ELECTRON",
        "bodyType": "text",
        "body": "Bonjour {{ $json.name }},\n\nVous avez laisse des articles dans votre panier:\n\n{{ $json.items }}\n\nIls vous attendent!\n\nUtilisez le code **PANIER15** pour obtenir 15% de reduction et finaliser votre achat.\n\nAttention: cette offre expire dans 24h!\n\nL'equipe ELECTRON",
        "options": {
          "includeHtml": false
        }
      },
      "credentials": {
        "gmailApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "id": "fallback",
      "name": "Unknown Type",
      "type": "n8n-nodes-base.noOp",
      "typeVersion": 2,
      "position": [
        640,
        700
      ],
      "parameters": {}
    },
    {
      "id": "respond",
      "name": "Confirm",
      "type": "n8n-nodes-base.respondToWebhook",
      "typeVersion": 1,
      "position": [
        860,
        300
      ],
      "parameters": {
        "respondWith": "allEntries",
        "options": {}
      }
    }
  ],
  "connections": {
    "Webhook - Order Event": {
      "main": [
        [
          {
            "node": "Email Type Switch",
            "type": "main"
          }
        ]
      ]
    },
    "Email Type Switch": {
      "main": [
        [
          {
            "node": "1 - Welcome Email",
            "type": "main"
          }
        ],
        [
          {
            "node": "2 - Order Confirmed",
            "type": "main"
          }
        ],
        [
          {
            "node": "3 - Order Shipped",
            "type": "main"
          }
        ],
        [
          {
            "node": "4 - Order Delivered",
            "type": "main"
          }
        ],
        [
          {
            "node": "5 - Review Request",
            "type": "main"
          }
        ],
        [
          {
            "node": "6 - Abandoned Cart",
            "type": "main"
          }
        ],
        [
          {
            "node": "Unknown Type",
            "type": "main"
          }
        ]
      ]
    },
    "1 - Welcome Email": {
      "main": [
        [
          {
            "node": "Confirm",
            "type": "main"
          }
        ]
      ]
    },
    "2 - Order Confirmed": {
      "main": [
        [
          {
            "node": "Confirm",
            "type": "main"
          }
        ]
      ]
    },
    "3 - Order Shipped": {
      "main": [
        [
          {
            "node": "Confirm",
            "type": "main"
          }
        ]
      ]
    },
    "4 - Order Delivered": {
      "main": [
        [
          {
            "node": "Confirm",
            "type": "main"
          }
        ]
      ]
    },
    "5 - Review Request": {
      "main": [
        [
          {
            "node": "Confirm",
            "type": "main"
          }
        ]
      ]
    },
    "6 - Abandoned Cart": {
      "main": [
        [
          {
            "node": "Confirm",
            "type": "main"
          }
        ]
      ]
    },
    "Unknown Type": {
      "main": [
        [
          {
            "node": "Confirm",
            "type": "main"
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "1",
  "id": "emails-electron",
  "tags": [
    "electron",
    "email",
    "automation",
    "transactionnel"
  ],
  "createdAt": "2026-05-17T14:00:00.000Z",
  "updatedAt": "2026-05-17T14:00:00.000Z"
}

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

ELECTRON - Emails Transactionnels. Uses gmail. Webhook trigger; 10 nodes.

Source: https://github.com/IlarionDossouyovo/E-Designe/blob/b0d02eb068819aa923fadb5e848f00867e539265/n8n-workflows/02-emails-complete.json — 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

Wait. Uses httpRequest, itemLists, slack, gmail. Webhook trigger; 29 nodes.

HTTP Request, Item Lists, Slack +2
Email & Gmail

Receive support tickets via webhook, categorize by priority, track SLA deadlines, notify your team on Slack, and send confirmation emails to customers.

HTTP Request, Slack, Gmail +1
Email & Gmail

This workflow demonstrates a resilient publish/subscribe automation pattern using n8n, RabbitMQ, JSON Schema validation, and Gmail.

Rabbitmq, N8N Nodes Schema Guard, Rabbitmq Trigger +2
Email & Gmail

Addendo Pulse — Simulacion Completa. Uses httpRequest, gmail. Webhook trigger; 28 nodes.

HTTP Request, Gmail
Email & Gmail

This workflow is a fully automated AI matte painting generation system for VFX pipelines, designed to convert a single environment prompt into multiple cinematic background variations. It handles gene

HTTP Request, Jira, Slack +3