This workflow corresponds to n8n.io template #10634 โ we link there as the canonical source.
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 โ
{
"meta": {
"templateCredsSetupCompleted": true
},
"nodes": [
{
"id": "fc53e914-3f27-46aa-bd68-6e662e5b583d",
"name": "When clicking \u2018Execute workflow\u2019",
"type": "n8n-nodes-base.manualTrigger",
"position": [
-288,
2224
],
"parameters": {},
"typeVersion": 1
},
{
"id": "666340f9-3cbb-400b-952d-4ac804eea26d",
"name": "Send a message",
"type": "n8n-nodes-base.gmail",
"position": [
2896,
2416
],
"parameters": {
"sendTo": "={{ $('JsonData1').item.json.email_from }}",
"message": "={{ $('Client HTML Template').item.json.html }}",
"options": {},
"subject": "=Thank you for showing interest \u2014 our team will contact you shortly"
},
"credentials": {
"gmailOAuth2": {
"name": "<your credential>"
}
},
"typeVersion": 2.1
},
{
"id": "098a2b85-9ba6-4382-b8b4-5cda2c7ab4c9",
"name": "Webhook1",
"type": "n8n-nodes-base.webhook",
"position": [
-16,
1840
],
"parameters": {
"path": "automation/lead-create/email",
"options": {},
"httpMethod": "POST"
},
"typeVersion": 2.1
},
{
"id": "b83afe86-848f-464c-bf31-7e16801e7b50",
"name": "Code",
"type": "n8n-nodes-base.code",
"position": [
-48,
2224
],
"parameters": {
"jsCode": "// Loop over input items and add a new field called 'myNewField' to the JSON of each one\nconst sample_data = [\n {\n \"headers\": {\n \"host\": \"n8n.yourdomain.com\",\n \"x-real-ip\": \"0.0.0.0\",\n \"x-forwarded-for\": \"2603:3:610f:580::, 0.0.0.0\",\n \"x-forwarded-proto\": \"http\",\n \"connection\": \"upgrade\",\n \"content-length\": \"461\",\n \"user-agent\": \"python-requests/2.25.1\",\n \"content-type\": \"application/json\",\n \"accept\": \"*/*\",\n \"cf-ray\": \"99ccd7119db946e0-SIN\",\n \"accept-encoding\": \"gzip, br\",\n \"cdn-loop\": \"cloudflare; loops=1\",\n \"cf-connecting-ip\": \"2603:3:610f:580::\",\n \"cf-visitor\": \"{\\\"scheme\\\":\\\"https\\\"}\"\n },\n \"params\": {},\n \"query\": {},\n \"body\": {\n \"_action\": \"Send Webhook Notification(#635)\",\n \"_id\": 80,\n \"_model\": \"crm.lead\",\n \"contact_name\": \"Vivek Vithalani\",\n \"create_date\": \"2025-11-11 09:41:30.531789\",\n \"description\": \"<p>Q1 Lead Automation Testing question<br>Q2 Lead Automation Testing question<br>Q3 Lead Automation Testing question</p>\",\n \"display_name\": \"Lead Automation Testing\",\n \"email_from\": \"user@example.com\",\n \"expected_revenue\": 0,\n \"id\": 80,\n \"phone\": \"9426264288\",\n \"probability\": 0.29\n },\n \"webhookUrl\": \"https://n8n.yourdomain.com/webhook/automation/lead-create\",\n \"executionMode\": \"production\"\n }\n];\n\nreturn sample_data;"
},
"typeVersion": 2
},
{
"id": "7aa50d00-962a-40a1-b757-394e5a6d1841",
"name": "Sticky Note1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1152,
1232
],
"parameters": {
"width": 704,
"height": 2208,
"content": "### Lead Automation Email Workflow\n\n### This workflow automatically sends email alerts whenever a new lead is created from any CRM, web form, or connected app. \n### It also supports optional thank-you or confirmation emails to the lead for faster and more professional responses.\n\n---\n\n## How It Works\n\nWhen a new lead is created in your CRM or form, a POST request is sent to your n8n webhook. \nThe workflow then performs these steps:\n\n1. **Receives Data:** The webhook captures the incoming lead information. \n2. **Cleans Payload:** A Code node removes unnecessary fields (like `_model` or `_action`). \n3. **Formats the Data:** The workflow prepares a clean, structured dataset. \n4. **Generates the Email Template:** The HTML node inserts the data into a professional email layout. \n5. **Sends Emails:** \n - One message goes to your internal sales or marketing inbox. \n - Optionally, another email goes to the lead as a thank-you or confirmation. \n6. **Instant Delivery:** Emails are sent within seconds using Gmail OAuth2 or SMTP.\n\nThis process ensures your team and customers stay informed in real time.\n\n---\n\n## \u2699\ufe0f Setup Guide\n\n### 1. Configure the Webhook in Your CRM\n\nCreate a webhook or automation rule in your CRM that sends a **POST** request to your n8n endpoint:\n\n```\nhttps://n8n.yourdomain.com/webhook/automation/lead-create/email\n```\n\nExample JSON payload:\n```json\n{\n \"id\": 123,\n \"display_name\": \"John Doe\",\n \"email_from\": \"john.doe@example.com\",\n \"phone\": \"+1 9876543210\",\n \"description\": \"Interested in our service package\",\n \"create_date\": \"2025-11-12 09:30:00\"\n}\n```\n\nThis setup works with any system \u2014 **Odoo**, **HubSpot**, **Zoho**, **Pipedrive**, **Salesforce**, or a custom CRM that supports outgoing webhooks.\n\n---\n\n### 2. Configure Company Information\n\nUse the **Company Config Node** (Set node) to define your business details for the email template:\n\n```json\n{\n \"company_name\": \"Your Company Name\",\n \"company_logo_url\": \"https://yourdomain.com/logo.png\",\n \"website_url\": \"https://yourdomain.com\",\n \"contact_url\": \"https://yourdomain.com/contact\",\n \"copy_right_year\": \"2025\"\n}\n```\n\nThese values are used automatically inside your email header or footer.\n\n---\n\n### 3. Configure Email Sending Method\n\nYou can send emails through one of the following options:\n\n#### Option A \u2014 Gmail (OAuth2)\nConnect your Gmail account securely with OAuth2 for quick setup.\n\n#### Option B \u2014 SMTP\nUse your company\u2019s SMTP server to send emails from a custom domain.\n\nBoth options are already integrated in this workflow \u2014 just configure credentials in n8n.\n\n---\n\n**Created by:** v3codestudio \n**Category:** CRM / Email / Automation \n**Purpose:** Automate lead notifications and email follow-ups from any CRM system.\n"
},
"typeVersion": 1
},
{
"id": "98eb4cbf-9f18-439a-bbba-fd48fd333d4e",
"name": "Overview Note16",
"type": "n8n-nodes-base.stickyNote",
"position": [
-128,
1664
],
"parameters": {
"color": 7,
"width": 340,
"height": 364,
"content": "## Request & Validation\nReceives the API request and checks for the required \u201cname\u201d parameter.\nReturns a validation message if missing."
},
"typeVersion": 1
},
{
"id": "3a21015a-688f-4bc8-931b-0a47a4754bcd",
"name": "Overview Note1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-384,
2048
],
"parameters": {
"color": 7,
"width": 596,
"height": 364,
"content": "## Manual Trigger node and Sample Data"
},
"typeVersion": 1
},
{
"id": "c6869f67-982e-4f50-a070-be9f31262e40",
"name": "Overview Note17",
"type": "n8n-nodes-base.stickyNote",
"position": [
976,
1664
],
"parameters": {
"color": 7,
"width": 340,
"height": 364,
"content": "## HTML Template\n- Prepare Awesome HTML template."
},
"typeVersion": 1
},
{
"id": "f27b8c6d-3ca7-436e-b848-10f69f3e6b18",
"name": "Overview Note18",
"type": "n8n-nodes-base.stickyNote",
"position": [
1712,
1536
],
"parameters": {
"color": 7,
"width": 708,
"height": 492,
"content": "## Email\n- Send an automated email to the configured recipient through the Gmail / SMTP mail integration."
},
"typeVersion": 1
},
{
"id": "4a57579e-27cf-4342-9c24-fb4b27bb0700",
"name": "Overview Note19",
"type": "n8n-nodes-base.stickyNote",
"position": [
1344,
1664
],
"parameters": {
"color": 7,
"width": 340,
"height": 364,
"content": "## Company Email Address\n- Enter your email address in this node to receive notifications whenever a new lead is created."
},
"typeVersion": 1
},
{
"id": "8bf17cba-a9fb-4f74-9925-3c69ba7f2cc1",
"name": "Configured email1",
"type": "n8n-nodes-base.set",
"position": [
1456,
1840
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "f4d511c9-281e-4e84-96a4-c1350741992f",
"name": "email",
"type": "string",
"value": "user@example.com"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "352d2ab6-b902-466c-8d33-2430b20da621",
"name": "Overview Note20",
"type": "n8n-nodes-base.stickyNote",
"position": [
240,
1664
],
"parameters": {
"color": 7,
"width": 340,
"height": 364,
"content": "## Prepare Data / Clean Payload\n- Remove unused key from JSON data"
},
"typeVersion": 1
},
{
"id": "e77a9c68-22f1-4ce8-9d11-8e21e6ad9896",
"name": "JsonData1",
"type": "n8n-nodes-base.code",
"position": [
368,
1840
],
"parameters": {
"jsCode": "// Get all input items\nconst items = $input.all();\n\nreturn items.map(item => {\n const body = { ...item.json.body };\n\n // Remove unwanted keys\n delete body._action;\n delete body._model;\n\n // Return cleaned body\n return { json: body };\n});"
},
"typeVersion": 2
},
{
"id": "11914de9-3e30-4cc7-b88e-fe09dfcecc3a",
"name": "Send email1",
"type": "n8n-nodes-base.emailSend",
"position": [
2192,
1664
],
"parameters": {
"html": "={{ $('Internal Team HTML Template').item.json.html }}",
"options": {},
"subject": "=New Lead {{ $('JsonData1').item.json.id }}",
"toEmail": "={{ $('Configured email1').item.json.email }}",
"fromEmail": "user@example.com"
},
"credentials": {
"smtp": {
"name": "<your credential>"
}
},
"typeVersion": 2.1
},
{
"id": "1a47d125-6953-4afa-a63a-9f2e02f20d33",
"name": "Overview Note21",
"type": "n8n-nodes-base.stickyNote",
"position": [
2464,
2096
],
"parameters": {
"color": 7,
"width": 708,
"height": 492,
"content": "## Send Email to Reception\n- Send a polite thank-you email to the client, expressing appreciation for their interest in our services."
},
"typeVersion": 1
},
{
"id": "70a4cc7a-135b-4e84-ae7d-a0732b76df58",
"name": "Overview Note22",
"type": "n8n-nodes-base.stickyNote",
"position": [
2080,
2096
],
"parameters": {
"color": 7,
"width": 340,
"height": 364,
"content": "## Client HTML Template\n- Client HTML template \u2014 thank you email."
},
"typeVersion": 1
},
{
"id": "eab5b3af-fed9-4224-a622-2f6662593ed4",
"name": "Send email client",
"type": "n8n-nodes-base.emailSend",
"position": [
2912,
2208
],
"parameters": {
"html": "={{ $('Client HTML Template').item.json.html }}",
"options": {},
"subject": "=Thank you for showing interest \u2014 our team will contact you shortly",
"toEmail": "={{ $('JsonData1').item.json.email_from }}",
"fromEmail": "user@example.com"
},
"credentials": {
"smtp": {
"name": "<your credential>"
}
},
"typeVersion": 2.1
},
{
"id": "c0617d1e-2640-49bf-9f2d-597751edf44e",
"name": "Client HTML Template",
"type": "n8n-nodes-base.html",
"position": [
2192,
2240
],
"parameters": {
"html": "<!-- Subject: Thank you \u2014 we'll contact you shortly -->\n<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\" />\n <meta name=\"viewport\" content=\"width=device-width,initial-scale=1.0\" />\n <title>Thank You</title>\n <style>\n body {\n margin: 0;\n padding: 0;\n background-color: #f2f4f7;\n font-family: \"Poppins\",\"Helvetica Neue\",Helvetica,Arial,sans-serif;\n color: #333;\n }\n\n .wrapper {\n width: 100%;\n padding: 40px 10px;\n background-color: #f2f4f7;\n }\n\n .container {\n max-width: 600px;\n margin: 0 auto;\n background-color: #ffffff;\n border-radius: 18px;\n overflow: hidden;\n box-shadow: 0 8px 24px rgba(0,0,0,0.08);\n transition: all 0.3s ease;\n }\n\n .header {\n background: linear-gradient(135deg, #4f46e5, #3b82f6);\n color: #fff;\n text-align: center;\n padding: 40px 20px;\n }\n\n .header img {\n width: 140px;\n margin-bottom: 20px;\n }\n\n .header h1 {\n font-size: 28px;\n margin: 0;\n line-height: 1.3;\n font-weight: 700;\n }\n\n .body {\n padding: 40px 30px 50px 30px;\n text-align: center;\n }\n\n .body p {\n font-size: 16px;\n line-height: 1.7;\n color: #555;\n margin: 0 0 20px 0;\n }\n\n .highlight {\n color: #1d4ed8;\n font-weight: 600;\n }\n\n .footer {\n background-color: #f9fafb;\n text-align: center;\n padding: 25px 20px;\n font-size: 13px;\n color: #888;\n }\n\n .footer a {\n color: #6366f1;\n text-decoration: none;\n }\n\n @media (prefers-color-scheme: dark) {\n body {\n background-color: #0f172a;\n color: #e2e8f0;\n }\n .wrapper {\n background-color: #0f172a;\n }\n .container {\n background-color: #1e293b;\n box-shadow: 0 8px 24px rgba(0,0,0,0.6);\n }\n .header {\n background: linear-gradient(135deg, #3b82f6, #1e3a8a);\n color: #fff;\n }\n .body p {\n color: #cbd5e1;\n }\n .highlight {\n color: #60a5fa;\n }\n .footer {\n background-color: #111827;\n color: #94a3b8;\n }\n .footer a {\n color: #60a5fa;\n }\n }\n\n @media only screen and (max-width:480px) {\n .body { padding: 30px 20px; }\n .header h1 { font-size: 24px; }\n }\n </style>\n</head>\n<body>\n <span style=\"display:none;font-size:1px;color:#f2f4f7;max-height:0;max-width:0;opacity:0;overflow:hidden;\">\n Thank you for showing interest \u2014 our team will contact you shortly.\n </span>\n\n <div class=\"wrapper\">\n <div class=\"container\">\n <!-- Header -->\n <div class=\"header\">\n <img src=\"{{ $('Company Data Config').item.json.company_logo_url }}\" alt=\"Company Logo\" />\n <h1>Thank You for Your Interest!</h1>\n </div>\n\n <!-- Body -->\n <div class=\"body\">\n <p>Hi {{ $('JsonData1').item.json.contact_name }},</p>\n <p>\n We\u2019re excited that you\u2019re interested in working with us! \n Our team will contact you shortly to guide you through the next steps.\n </p>\n </div>\n\n <!-- Footer -->\n <div class=\"footer\">\n <p>\u00a9 {{ $('Company Data Config').item.json.copy_right_year }} {{ $('Company Data Config').item.json.company_name }}. All rights reserved.</p>\n </div>\n </div>\n </div>\n</body>\n</html>"
},
"typeVersion": 1.2
},
{
"id": "f0f24f3c-a372-4123-a722-97593e3597bd",
"name": "Internal Team HTML Template",
"type": "n8n-nodes-base.html",
"position": [
1088,
1840
],
"parameters": {
"html": "<div style=\"font-family: 'Segoe UI', Arial, sans-serif; background-color: #f6f9fc; padding: 30px;\">\n <div style=\"max-width: 600px; margin: 0 auto; background: #ffffff; border-radius: 12px; box-shadow: 0 3px 8px rgba(0,0,0,0.08); overflow: hidden;\">\n \n <div style=\"background: linear-gradient(90deg, #4b6cb7, #182848); color: #fff; padding: 20px 30px;\">\n <h2 style=\"margin: 0; font-weight: 600;\">\ud83c\udf89 New Lead Created</h2>\n <p style=\"margin: 4px 0 0; opacity: 0.85;\">A new CRM lead has been successfully added to your Odoo system.</p>\n </div>\n \n <div style=\"padding: 30px;\">\n <table style=\"width: 100%; border-collapse: collapse; font-size: 15px;\">\n <tr>\n <td style=\"padding: 10px; border-bottom: 1px solid #eee;\"><strong>Lead ID</strong></td>\n <td style=\"padding: 10px; border-bottom: 1px solid #eee;\">{{ $json.id }}</td>\n </tr>\n <tr>\n <td style=\"padding: 10px; border-bottom: 1px solid #eee;\"><strong>Lead Name</strong></td>\n <td style=\"padding: 10px; border-bottom: 1px solid #eee;\">{{ $json.display_name }}</td>\n </tr>\n <tr>\n <td style=\"padding: 10px; border-bottom: 1px solid #eee;\"><strong>Email</strong></td>\n <td style=\"padding: 10px; border-bottom: 1px solid #eee;\">{{ $json.email_from }}</td>\n </tr>\n <tr>\n <td style=\"padding: 10px; border-bottom: 1px solid #eee;\"><strong>Phone</strong></td>\n <td style=\"padding: 10px; border-bottom: 1px solid #eee;\">{{ $json.phone }}</td>\n </tr>\n <tr>\n <td style=\"padding: 10px; border-bottom: 1px solid #eee;\"><strong>Created Date</strong></td>\n <td style=\"padding: 10px; border-bottom: 1px solid #eee;\">{{ $json.create_date }}</td>\n </tr>\n </table>\n </div>\n </div>\n</div>"
},
"typeVersion": 1.2
},
{
"id": "4f871ed1-c366-434f-82ce-467dc48142c2",
"name": "Company Data Config",
"type": "n8n-nodes-base.set",
"position": [
1824,
2304
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "033c746f-01bb-4a90-be1f-5484bc55379b",
"name": "company_name",
"type": "string",
"value": "V3 Code Studio"
},
{
"id": "4e679484-e467-436e-a6f8-3ad490121c61",
"name": "company_logo_url",
"type": "string",
"value": "https://lh3.googleusercontent.com/ogw/AF2bZyi5CAZS2H707lnLAQyBuq7d_6RcOYlt73eobWOjDG_-OA=s250-c-mo"
},
{
"id": "e7cdec8f-b194-4a47-a045-556f89287775",
"name": "website_url",
"type": "string",
"value": "https://n8n.io/creators/v3codestudio"
},
{
"id": "4e0d9938-0579-4045-92b5-76714a249db9",
"name": "copy_right_year",
"type": "string",
"value": "2025"
},
{
"id": "27bc0f32-9df2-4f2f-acdc-1727cafb6730",
"name": "contact_url",
"type": "string",
"value": "https://n8n.io/creators/v3codestudio"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "85206691-1eeb-4a88-bd3e-4077c49eede2",
"name": "Overview Note23",
"type": "n8n-nodes-base.stickyNote",
"position": [
1712,
2096
],
"parameters": {
"color": 7,
"width": 340,
"height": 364,
"content": "## Company Data Config for Prepare HTML Template\n- company_name\n- company_logo_url\n- website_url\n- copy_right_year\n- contact_url"
},
"typeVersion": 1
},
{
"id": "7a03ae13-5594-46c8-b079-c3233c8b9176",
"name": "Send a message1",
"type": "n8n-nodes-base.gmail",
"position": [
2192,
1872
],
"parameters": {
"sendTo": "={{ $('Configured email1').item.json.email }}",
"message": "={{ $('Internal Team HTML Template').item.json.html }}",
"options": {},
"subject": "=New Lead {{ $('JsonData1').item.json.id }}"
},
"credentials": {
"gmailOAuth2": {
"name": "<your credential>"
}
},
"typeVersion": 2.1
},
{
"id": "dd2e331b-808f-45d6-ad0f-8569128f18cf",
"name": "Send Email From Gmail / SMPT",
"type": "n8n-nodes-base.set",
"position": [
720,
1840
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "8a295892-6ca5-463b-96eb-65415615f52d",
"name": "is_smtp",
"type": "boolean",
"value": false
}
]
}
},
"typeVersion": 3.4
},
{
"id": "f8fd10ca-26af-41a4-92d4-590a52225fec",
"name": "Overview Note24",
"type": "n8n-nodes-base.stickyNote",
"position": [
608,
1664
],
"parameters": {
"color": 7,
"width": 340,
"height": 364,
"content": "## Send Email (Gmail / SMTP Switch)\n- Switch to send email via Gmail or SMTP."
},
"typeVersion": 1
},
{
"id": "083932c2-95ad-4130-8ed7-dd992c1495ac",
"name": "Switch1",
"type": "n8n-nodes-base.switch",
"position": [
1824,
1760
],
"parameters": {
"rules": {
"values": [
{
"outputKey": "smtp",
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "9b86e730-4a53-47f5-8517-b338ae510a12",
"operator": {
"type": "boolean",
"operation": "true",
"singleValue": true
},
"leftValue": "={{ $('Send Email From Gmail / SMPT').item.json.is_smtp }}",
"rightValue": ""
}
]
},
"renameOutput": true
},
{
"outputKey": "gmail",
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "1994856e-5c38-45c5-b280-874512671946",
"operator": {
"type": "boolean",
"operation": "false",
"singleValue": true
},
"leftValue": "={{ $('Send Email From Gmail / SMPT').item.json.is_smtp }}",
"rightValue": ""
}
]
},
"renameOutput": true
}
]
},
"options": {}
},
"typeVersion": 3.2
},
{
"id": "be404fc9-3ab8-43f5-9378-eb0db4f8fbf2",
"name": "Switch2",
"type": "n8n-nodes-base.switch",
"position": [
2608,
2336
],
"parameters": {
"rules": {
"values": [
{
"outputKey": "smtp",
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "9b86e730-4a53-47f5-8517-b338ae510a12",
"operator": {
"type": "boolean",
"operation": "true",
"singleValue": true
},
"leftValue": "={{ $('Send Email From Gmail / SMPT').item.json.is_smtp }}",
"rightValue": ""
}
]
},
"renameOutput": true
},
{
"outputKey": "gmail",
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "1994856e-5c38-45c5-b280-874512671946",
"operator": {
"type": "boolean",
"operation": "false",
"singleValue": true
},
"leftValue": "={{ $('Send Email From Gmail / SMPT').item.json.is_smtp }}",
"rightValue": ""
}
]
},
"renameOutput": true
}
]
},
"options": {}
},
"typeVersion": 3.2
}
],
"connections": {
"Code": {
"main": [
[
{
"node": "JsonData1",
"type": "main",
"index": 0
}
]
]
},
"Switch1": {
"main": [
[
{
"node": "Send email1",
"type": "main",
"index": 0
}
],
[
{
"node": "Send a message1",
"type": "main",
"index": 0
}
]
]
},
"Switch2": {
"main": [
[
{
"node": "Send email client",
"type": "main",
"index": 0
}
],
[
{
"node": "Send a message",
"type": "main",
"index": 0
}
]
]
},
"Webhook1": {
"main": [
[
{
"node": "JsonData1",
"type": "main",
"index": 0
}
]
]
},
"JsonData1": {
"main": [
[
{
"node": "Send Email From Gmail / SMPT",
"type": "main",
"index": 0
}
]
]
},
"Send a message": {
"main": [
[]
]
},
"Configured email1": {
"main": [
[
{
"node": "Company Data Config",
"type": "main",
"index": 0
},
{
"node": "Switch1",
"type": "main",
"index": 0
}
]
]
},
"Company Data Config": {
"main": [
[
{
"node": "Client HTML Template",
"type": "main",
"index": 0
}
]
]
},
"Client HTML Template": {
"main": [
[
{
"node": "Switch2",
"type": "main",
"index": 0
}
]
]
},
"Internal Team HTML Template": {
"main": [
[
{
"node": "Configured email1",
"type": "main",
"index": 0
}
]
]
},
"Send Email From Gmail / SMPT": {
"main": [
[
{
"node": "Internal Team HTML Template",
"type": "main",
"index": 0
}
]
]
},
"When clicking \u2018Execute workflow\u2019": {
"main": [
[
{
"node": "Code",
"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.
gmailOAuth2smtp
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
<p> <strong>๐ Never miss a new lead again โ get instant email alerts and stay ahead of every opportunity!</strong> </p>
Source: https://n8n.io/workflows/10634/ โ original creator credit. Request a take-down โ
More Marketing & Ads workflows โ ยท Browse all categories โ
Related workflows
Workflows that share integrations, category, or trigger type with this one. All free to copy and import.
Run professional email campaigns with A/B testing, Google Sheets tracking, and Slack analytics. FEATURES:
This workflow allows you to send multi-step email campaigns using n8n, Gmail and Google Sheets.
Automate Google Analytics Reporting - AlexK1919. Uses manualTrigger, stickyNote, googleAnalytics, gmail. Event-driven trigger; 23 nodes.
This n8n workflow collects, processes, and formats Google Analytics data into a comprehensive HTML report. The report is segmented into three primary categories: Engagement Stats, Search Results, and
This workflow automates sales contact follow-ups and engagement tracking by integrating HighLevel CRM, Gmail, Slack, and Google Sheets. It fetches all contacts from HighLevel, filters inactive contact