This workflow corresponds to n8n.io template #8701 — we link there as the canonical source.
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 →
{
"id": "TEMPLATE_WORKFLOW_ID",
"meta": {
"templateCredsSetupCompleted": false
},
"name": "30 - Personalized Lead Engagement System",
"tags": [],
"nodes": [
{
"id": "a3682f34-dd55-4dcc-bdb4-08217ba0b03f",
"name": "Lead Capture Note",
"type": "n8n-nodes-base.stickyNote",
"position": [
192,
1088
],
"parameters": {
"color": 4,
"width": 448,
"height": 576,
"content": "## Lead Capture & Data Collection\n\n*This workflow runs on a scheduled basis to automatically capture website visitors using Albacross API. It identifies companies and individuals who have shown interest by visiting your website, collecting valuable data including:\n\n\u2022 Company name and domain\n\u2022 Industry information\n\u2022 Number of employees\n\u2022 Visitor contact details\n\nThe schedule can be set to run hourly, daily, or at custom intervals based on your lead volume and requirements.*"
},
"typeVersion": 1
},
{
"id": "8e3b8a6b-49d1-4d98-9169-7121d62ba631",
"name": "Data Enrichment Note",
"type": "n8n-nodes-base.stickyNote",
"position": [
656,
1088
],
"parameters": {
"width": 432,
"height": 576,
"content": "## Data Enrichment & CRM Integration\n\n*The captured visitor data is then enriched using Datagma API to gather additional professional information such as:\n\n\u2022 Full name and job title\n\u2022 Professional email address\n\u2022 Phone number\n\u2022 LinkedIn profile\n\u2022 Company details\n\nThis enriched data is immediately synced to HubSpot, creating or updating contact records with lead status set to 'NEW' for proper sales pipeline management.*"
},
"typeVersion": 1
},
{
"id": "88fe8cd6-00de-4020-a0c0-a53a4915f12f",
"name": "Personalized Outreach Note",
"type": "n8n-nodes-base.stickyNote",
"position": [
1312,
1088
],
"parameters": {
"color": 3,
"width": 448,
"height": 576,
"content": "## Personalized Outreach & Tracking\n\n*Using the enriched contact data, a personalized email message is dynamically generated that:\n\n\u2022 Addresses the recipient by name\n\u2022 References their company and industry\n\u2022 Mentions specific value propositions\n\u2022 Includes a clear call-to-action\n\nThe email is sent via Gmail and all activity is automatically logged back to HubSpot for comprehensive lead tracking and follow-up management.*"
},
"typeVersion": 1
},
{
"id": "d0e6cd4d-b933-4799-8d5f-11022e5d66fb",
"name": "\u23f0 Schedule Trigger",
"type": "n8n-nodes-base.scheduleTrigger",
"position": [
256,
1472
],
"parameters": {
"rule": {
"interval": [
{}
]
}
},
"typeVersion": 1.2
},
{
"id": "a44aadb3-614d-4f7a-b245-50e6652b53aa",
"name": "\ud83c\udf10 Albacross Website Visitor",
"type": "n8n-nodes-base.httpRequest",
"position": [
480,
1472
],
"parameters": {
"url": "https://api.albacross.com/v1/visitors?api_key=YOUR_TOKEN_HERE",
"options": {
"timeout": 10000
}
},
"typeVersion": 4.1
},
{
"id": "8bcebbbb-36a1-4677-9b5d-e86a4c73d797",
"name": "\ud83d\udd0d Enrich Lead Data",
"type": "n8n-nodes-base.httpRequest",
"position": [
704,
1472
],
"parameters": {
"url": "https://api.datagma.net/api/v2/person",
"options": {},
"sendQuery": true,
"sendHeaders": true,
"queryParameters": {
"parameters": [
{
"name": "apiId",
"value": "YOUR_DATAGMA_API_KEY"
},
{
"name": "data",
"value": "Email_Of_The_Person"
}
]
},
"headerParameters": {
"parameters": [
{
"name": "accept",
"value": "application/json"
}
]
}
},
"typeVersion": 4.1
},
{
"id": "2ab43b4b-042e-43c2-bba4-12a37f211fec",
"name": "\ud83d\udcc7 Create/Update HubSpot Contact",
"type": "n8n-nodes-base.hubspot",
"position": [
928,
1472
],
"parameters": {
"email": "={{ $json.email }}",
"options": {},
"authentication": "appToken",
"additionalFields": {
"industry": "={{ $('\ud83c\udf10 Albacross Website Visitor').item.json.industry }}",
"jobTitle": "={{ $json.job_title }}",
"lastName": "={{ $json.last_name }}",
"firstName": "={{ $json.first_name }}",
"leadStatus": "NEW",
"companyName": "={{ $('\ud83c\udf10 Albacross Website Visitor').item.json.company_name }}",
"linkedinUrl": "={{ $json.linkedin_url }}",
"phoneNumber": "={{ $json.phone }}",
"numberOfEmployees": "={{ $('\ud83c\udf10 Albacross Website Visitor').item.json.employees }}"
}
},
"credentials": {
"hubspotAppToken": {
"name": "<your credential>"
}
},
"typeVersion": 2
},
{
"id": "392cacc9-0782-4dc9-8af6-c01f1d90fb14",
"name": "\u270d\ufe0f Generate Personalized Message",
"type": "n8n-nodes-base.code",
"position": [
1152,
1472
],
"parameters": {
"jsCode": "const visitorData = $('\ud83c\udf10 Albacross Website Visitor').item.json;\nconst enrichedData = $('\ud83d\udd0d Enrich Lead Data').item.json;\nconst hubspotData = $('\ud83d\udcc7 Create/Update HubSpot Contact').item.json;\n\nconst firstName = enrichedData.first_name || 'there';\nconst companyName = visitorData.company_name || 'your company';\nconst industry = visitorData.industry || 'your industry';\nconst website = visitorData.domain || '';\n\nconst personalizedMessage = `Hi ${firstName},\\n\\nI noticed someone from ${companyName} recently visited our website and showed interest in our solutions. As a company in the ${industry} space, I thought you might find value in how we've helped similar businesses streamline their operations and drive growth.\\n\\nWe've worked with several companies in your industry to:\\n\u2022 Reduce operational costs by 20-30%\\n\u2022 Improve efficiency through automation\\n\u2022 Scale their business processes effectively\\n\\nI'd love to share how we could potentially help ${companyName} achieve similar results. Would you be open to a brief 15-minute call this week to discuss your current challenges and see if there's a fit?\\n\\nBest regards,\\n[Your Name]\\n[Your Title]\\n[Your Company]\\n[Your Phone]\\n[Your Email]`;\n\nreturn {\n subject: `Quick question about ${companyName}'s growth goals`,\n message: personalizedMessage,\n recipientEmail: enrichedData.email,\n recipientName: `${firstName} ${enrichedData.last_name || ''}`.trim(),\n companyName: companyName,\n hubspotContactId: hubspotData.id\n};"
},
"typeVersion": 2
},
{
"id": "031094a9-8c26-448f-bec0-377dcdc30cdb",
"name": "\ud83d\udce7 Send Personalized Email",
"type": "n8n-nodes-base.gmail",
"position": [
1376,
1472
],
"parameters": {
"sendTo": "={{ $json.recipientEmail }}",
"message": "={{ $json.message }}",
"options": {},
"subject": "={{ $json.subject }}"
},
"credentials": {
"gmailOAuth2": {
"name": "<your credential>"
}
},
"typeVersion": 2.1
},
{
"id": "997315ba-3d13-4a64-b00c-e5f83fae2123",
"name": "\ud83d\udcdd Log Email Activity in HubSpot",
"type": "n8n-nodes-base.hubspot",
"position": [
1600,
1472
],
"parameters": {
"type": "email",
"metadata": {},
"resource": "engagement",
"authentication": "appToken",
"additionalFields": {}
},
"credentials": {
"hubspotAppToken": {
"name": "<your credential>"
}
},
"typeVersion": 2
}
],
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "TEMPLATE_VERSION_ID",
"connections": {
"\u23f0 Schedule Trigger": {
"main": [
[
{
"node": "\ud83c\udf10 Albacross Website Visitor",
"type": "main",
"index": 0
}
]
]
},
"\ud83d\udd0d Enrich Lead Data": {
"main": [
[
{
"node": "\ud83d\udcc7 Create/Update HubSpot Contact",
"type": "main",
"index": 0
}
]
]
},
"\ud83d\udce7 Send Personalized Email": {
"main": [
[
{
"node": "\ud83d\udcdd Log Email Activity in HubSpot",
"type": "main",
"index": 0
}
]
]
},
"\ud83c\udf10 Albacross Website Visitor": {
"main": [
[
{
"node": "\ud83d\udd0d Enrich Lead Data",
"type": "main",
"index": 0
}
]
]
},
"\ud83d\udcc7 Create/Update HubSpot Contact": {
"main": [
[
{
"node": "\u270d\ufe0f Generate Personalized Message",
"type": "main",
"index": 0
}
]
]
},
"\u270d\ufe0f Generate Personalized Message": {
"main": [
[
{
"node": "\ud83d\udce7 Send Personalized Email",
"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.
gmailOAuth2hubspotAppToken
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
This workflow automatically captures website visitors using Albacross, enriches their data with Datagma, and syncs it into HubSpot. Once leads are created or updated, a personalized email is generated and sent through Gmail. All email activities are logged in HubSpot for proper…
Source: https://n8n.io/workflows/8701/ — 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.
*Smartlead to HubSpot Performance Analytics A streamlined workflow to analyze your Smartlead performance metrics by tracking lifecycle stages in HubSpot and generating automated reports.*
This template is perfect for: Marketing Teams looking to automatically qualify inbound leads from campaigns Sales Teams wanting to prioritize high-value prospects instantly Agencies offering lead qual
Automate lead intake, AI qualification, and next‑step outreach. Qualified leads get a scheduled meeting, Zoom details, an email confirmation, CRM update, and Mailchimp enrollment. Not‑qualified leads
This workflow automatically checks Zoho CRM every 5 minutes for newly created leads, enriches each lead using People Data Labs, evaluates its quality using Google Gemini (LLM Chain) and updates the le
Stop wasting time on bad leads and manual research. This advanced n8n workflow automates your entire lead qualification and CRM entry process for HubSpot, ensuring you only sync high-quality, pre-rese