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 →
{
"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": {}
}
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 →
Related workflows
Workflows that share integrations, category, or trigger type with this one. All free to copy and import.
This workflow receives new signup events, enriches each contact with Twain (and optionally a LinkedIn lookup), drafts a personalized welcome email in Gmail, and posts review-ready previews to Slack, w
Receive orders via webhook with automatic payment verification, stock checking, inventory reservation, shipping label generation, confirmation emails, and Slack notifications.
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
This workflow runs every 3 hours to read appointments from Google Sheets and send confirmation, reminder, win-back, and review-request messages via Gmail and/or Twilio SMS, then updates the sheet and
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