This workflow follows the Agent → Gmail 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": "My workflow 12",
"nodes": [
{
"parameters": {
"httpMethod": "POST",
"path": "lead-intake",
"responseMode": "responseNode",
"options": {}
},
"id": "REMOVED",
"name": "Webhook - New Lead",
"type": "n8n-nodes-base.webhook",
"typeVersion": 2,
"position": [
80,
352
]
},
{
"parameters": {
"text": "=Name: {{ $json.name }}\nEmail: {{ $json.email }}\nCompany: {{ $json.company }}",
"options": {
"systemMessage": "Voc\u00ea \u00e9 um assistente de automa\u00e7\u00e3o que recebe dados brutos de leads. Enrique\u00e7a com cargo prov\u00e1vel, tamanho da empresa e segmento. Retorne em JSON estruturado."
}
},
"id": "REMOVED",
"name": "AI Lead Enrichment",
"type": "@n8n/n8n-nodes-langchain.agent",
"typeVersion": 1,
"position": [
464,
352
]
},
{
"parameters": {
"model": "gpt-4.1-mini",
"options": {}
},
"id": "REMOVED",
"name": "OpenAI Chat Model",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"typeVersion": 1,
"position": [
288,
560
],
"credentials": {
"REDACTED": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"operation": "create"
},
"id": "REMOVED",
"name": "CRM - HubSpot",
"type": "n8n-nodes-base.hubspot",
"typeVersion": 2,
"position": [
880,
352
],
"credentials": {
"REDACTED": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"options": {}
},
"id": "REMOVED",
"name": "Respond to Webhook",
"type": "n8n-nodes-base.respondToWebhook",
"typeVersion": 1,
"position": [
1488,
352
]
},
{
"parameters": {
"sendTo": "={{ $('Webhook - New Lead').item.json.body.email }}",
"subject": "Novo Lead Capturado",
"emailType": "text",
"message": "=Novo lead capturado! Nome: {{ $('Webhook - New Lead').item.json.body.name }} Email: {{ $('Webhook - New Lead').item.json.body.email }} Empresa: {{ $('Webhook - New Lead').item.json.body.company }}",
"options": {}
},
"type": "n8n-nodes-base.gmail",
"typeVersion": 2.1,
"position": [
1184,
352
],
"id": "REMOVED",
"name": "Send a message",
"credentials": {
"REDACTED": {
"name": "<your credential>"
}
}
}
],
"connections": {
"Webhook - New Lead": {
"main": [
[
{
"node": "AI Lead Enrichment",
"type": "main",
"index": 0
}
]
]
},
"AI Lead Enrichment": {
"main": [
[
{
"node": "CRM - HubSpot",
"type": "main",
"index": 0
}
]
]
},
"CRM - HubSpot": {
"main": [
[
{
"node": "Send a message",
"type": "main",
"index": 0
}
]
]
},
"OpenAI Chat Model": {
"ai_languageModel": [
[
{
"node": "AI Lead Enrichment",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Send a message": {
"main": [
[
{
"node": "Respond to Webhook",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "REMOVED",
"meta": {
"info": "sanitized"
},
"id": "REMOVED",
"tags": []
}
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.
REDACTED
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
My workflow 12. Uses agent, lmChatOpenAi, hubspot, gmail. Webhook trigger; 6 nodes.
Source: https://github.com/viniciusadrian1/N8N-Lead-Enrichment-AI/blob/727451ebed9f20bbab1e5f28f6b87764dd7b4b40/n8n-lead-enrichment-ai.json — 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.
Marketing, growth, and automation teams that need to ship polished bilingual newsletters—complete with images, optional video, and multi-channel distribution—without writing a line of code. A Webhook
Hubspot Splitout. Uses stickyNote, agent, googleCalendarTool, executeWorkflowTrigger. Webhook trigger; 31 nodes.
This n8n workflow streamlines the onboarding process for new customers by automating personalized email communication, calendar scheduling, and contact assignment in HubSpot. It is perfect for busines
This workflow enriches and personalizes your lead profiles by integrating HubSpot contact data, scraping social media information, and using AI to generate tailored outreach emails. It streamlines the
Fully production-ready B2B lead outreach pipeline that: Takes industry keywords from a form trigger (or you can manually add rows to Google Sheets) Scrapes targeted LinkedIn leads using Apify (peakyde