AutomationFlowsEmail & Gmail › Welcome Email Sequence — Hubspot → Gmail

Welcome Email Sequence — Hubspot → Gmail

2. Welcome Email Sequence — HubSpot → Gmail. Uses hubspot, httpRequest, gmail. Scheduled trigger; 7 nodes.

Cron / scheduled trigger★★★★☆ complexity7 nodesHubSpotHTTP RequestGmail
Email & Gmail Trigger: Cron / scheduled Nodes: 7 Complexity: ★★★★☆ Added:

This workflow follows the Gmail → HTTP Request 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
{
  "name": "2. Welcome Email Sequence \u2014 HubSpot \u2192 Gmail",
  "nodes": [
    {
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "hours",
              "hoursInterval": 24,
              "triggerAtHour": 9
            }
          ]
        }
      },
      "id": "node-schedule",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1.2,
      "position": [
        240,
        300
      ]
    },
    {
      "parameters": {
        "resource": "engagement",
        "operation": "getAll",
        "returnAll": true,
        "filters": {}
      },
      "id": "node-hubspot1",
      "name": "HubSpot",
      "type": "n8n-nodes-base.hubspot",
      "typeVersion": 2,
      "position": [
        460,
        300
      ]
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": false,
            "leftValue": "",
            "typeValidation": "loose"
          },
          "conditions": [
            {
              "id": "cond1",
              "leftValue": "={{ $json.title }}",
              "rightValue": "Send email day",
              "operator": {
                "type": "string",
                "operation": "contains"
              }
            }
          ],
          "combinator": "and"
        }
      },
      "id": "node-filter",
      "name": "Filter",
      "type": "n8n-nodes-base.filter",
      "typeVersion": 2,
      "position": [
        680,
        300
      ]
    },
    {
      "parameters": {
        "method": "GET",
        "url": "https://docs.google.com/document/d/TODO/export?format=txt",
        "options": {}
      },
      "id": "node-http",
      "name": "HTTP Request",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        900,
        300
      ]
    },
    {
      "parameters": {
        "language": "javaScript",
        "jsCode": "const dayMatch = $input.first().json.title.match(/day\\s*(\\d+)/i);\nconst dayNum = dayMatch ? dayMatch[1] : \"1\";\nconst fullText = $input.last().json.body || $input.last().json.data || \"\";\n// Split by \"## Day X\" markers\nconst sections = fullText.split(/##\\s*Day\\s*\\d+/i);\nconst sectionIndex = parseInt(dayNum);\nconst emailContent = sections[sectionIndex] || sections[1] || \"\";\nconst subjectMatch = emailContent.match(/Subject:\\s*(.+)/i);\nconst subject = subjectMatch ? subjectMatch[1].trim() : `Pals By Design \u2014 Day ${dayNum}`;\nconst body = emailContent.replace(/Subject:.*\\n/i, '').trim();\nreturn [{ json: { subject, body, day: dayNum } }];"
      },
      "id": "node-code",
      "name": "Code",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        1120,
        300
      ]
    },
    {
      "parameters": {
        "sendTo": "TODO",
        "subject": "={{ $json.subject }}",
        "message": "={{ $json.body }}",
        "options": {}
      },
      "id": "node-gmail",
      "name": "Gmail",
      "type": "n8n-nodes-base.gmail",
      "typeVersion": 2.1,
      "position": [
        1340,
        300
      ]
    },
    {
      "parameters": {
        "resource": "task",
        "operation": "update",
        "taskId": "={{ $('HubSpot').item.json.id }}",
        "updateFields": {
          "status": "COMPLETED"
        }
      },
      "id": "node-hubspot2",
      "name": "HubSpot1",
      "type": "n8n-nodes-base.hubspot",
      "typeVersion": 2,
      "position": [
        1560,
        300
      ]
    }
  ],
  "connections": {
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "HubSpot",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HubSpot": {
      "main": [
        [
          {
            "node": "Filter",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter": {
      "main": [
        [
          {
            "node": "HTTP Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request": {
      "main": [
        [
          {
            "node": "Code",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code": {
      "main": [
        [
          {
            "node": "Gmail",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Gmail": {
      "main": [
        [
          {
            "node": "HubSpot1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {}
}
Pro

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

About this workflow

2. Welcome Email Sequence — HubSpot → Gmail. Uses hubspot, httpRequest, gmail. Scheduled trigger; 7 nodes.

Source: https://gist.github.com/PalsByDesign/f73b9cc65412ef129ad890dc18cd9081 — 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

Receive orders via webhook with automatic payment verification, stock checking, inventory reservation, shipping label generation, confirmation emails, and Slack notifications.

HTTP Request, Gmail, Slack +1
Email & Gmail

This workflow automates the process of retrieving Stripe invoices, validating API responses, generating payment receipts, sending them via email, storing PDFs in Google Drive, and appending details to

HTTP Request, Gmail, Google Drive +1
Email & Gmail

This workflow runs on a schedule to monitor HubSpot deals with upcoming contract expiry dates. It filters deals that are 30, 60, or 90 days away from expiration and processes each one individually. Ba

Gmail, HubSpot, HTTP Request +2
Email & Gmail

This workflow identifies HubSpot deals that have gone untouched for 21+ days and automatically updates their status to Closed Lost. It fetches associated contacts, retrieves their details, and sends p

HubSpot, HTTP Request, Gmail +1
Email & Gmail

Schedule Http. Uses scheduleTrigger, stickyNote, gmail, hubspot. Scheduled trigger; 12 nodes.

Gmail, HubSpot, HTTP Request