Skip to main content

Automate lead enrichment & personalized outreach with HubSpot, Phantombuster & GPT

Workflow preview

Workflow preview
100%
Automate lead enrichment & personalized outreach with HubSpot, Phantombuster & GPT preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

How it works 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...

Best for

  • Lead Nurturing automation workflows
  • Multimodal AI automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.googlesheets, n8n-nodes-base.hubspot, n8n-nodes-base.webhook, n8n-nodes-base.if, n8n-nodes-base.httprequest, n8n-nodes-base.wait, n8n-nodes-base.code

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Avkash Kakdiya.

Original n8n.io source

1.1 Workflow description

Title
Automate lead enrichment & personalized outreach with HubSpot, Phantombuster & GPT
Workflow name
Automate lead enrichment & personalized outreach with HubSpot, Phantombuster & GPT

How it works

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 process from contact capture to sending a personalized email — all automatically.

The system fetches new or updated HubSpot contacts, verifies and enriches their Twitter/LinkedIn data via Phantombuster, merges the profile and engagement insights, and finally generates a customized email ready for outreach.

Step-by-step

1. Trigger & Input

  • HubSpot Contact Webhook: Fires when a contact is created or updated in HubSpot.

  • Fetch Contact: Pulls the full contact details (email, name, company, and social profiles).

  • Update Google Sheet: Logs Twitter/LinkedIn usernames and marks their tracking status.

2. Validation

  • Validate Twitter/LinkedIn Exists: Checks if the contact has a valid social profile before proceeding to scraping.

3. Social Media Scraping (via Phantombuster)

  • Launch Profile Scraper & 🎯 Launch Tweet Scraper: Triggers Phantombuster agents to fetch profile details and recent tweets.

  • Wait Nodes: Ensures scraping completes (30–60 seconds).

  • Fetch Profile/Tweet Results: Retrieves output files from Phantombuster.

  • Extract URL: Parses the job output to extract the downloadable .json or .csv data file link.

4. Data Download & Parsing

  • Download Profile/Tweet Data: Downloads scraped JSON files.

  • Parse JSON: Converts the raw file into structured data for processing.

5. Data Structuring & Merging

  • Format Profile Fields: Maps stats like bio, followers, verified status, likes, etc.

  • Format Tweet Fields: Captures tweet data and associates it with the lead’s email.

  • Merge Data Streams: Combines tweet and profile datasets.

  • Combine All Data: Produces a single, clean object containing all relevant lead details.

6. AI Email Generation & Delivery

  • Generate Personalized Email: Feeds the merged data into OpenAI GPT (via LangChain) to craft a custom HTML email using your brand details.

  • Parse Email Content: Cleans AI output into structured subject and body fields.

  • Sends Email: Automatically delivers the personalized email to the lead via Gmail.

Benefits

  • Automated Lead Enrichment — Combines CRM and real-time social media data with zero manual research.

  • Personalized Outreach at Scale — AI crafts unique, relevant emails for each contact.

  • Improved Engagement Rates — Targeted messages based on actual social activity and profile details.

  • Seamless Integration — Works directly with HubSpot, Google Sheets, Gmail, and Phantombuster.

  • Time & Effort Savings — Replaces hours of manual lookup and email drafting with an end-to-end automated flow.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 2 - 📝 Update Sheet with Users Twitter/LinkedIn

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.6

Block 3 - 👤 Fetch Contact

Type / Role
n8n-nodes-base.hubspot - hubspot
Config choices
Version 2.1

Block 4 - 🔗 HubSpot Contact Webhook

Type / Role
n8n-nodes-base.webhook - webhook
Config choices
Version 2

Block 5 - ✅ Validate Twitter/LinkedIn Exists

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 6 - 🚀 Launch Profile Scraper

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.1

Block 7 - 🎯 Launch Tweet Scraper

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.1

Block 8 - ⏳ Wait for Profile Processing

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1.1

Block 9 - ⏳ Wait for Tweet Processing

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1.1

Block 10 - 📊 Fetch Profile Results

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 11 - 📊 Fetch Tweet Results

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 12 - 🔍 Extract Profile URL

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 13 - 🔍 Extract Tweet URL

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 14 - 📥 Download Profile Data

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 15 - 📋 Parse Profile JSON

Type / Role
n8n-nodes-base.extractFromFile - extractFromFile
Config choices
Version 1

Block 16 - 🏷️ Format Profile Fields

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 17 - 🏷️ Format Tweet Fields

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 18 - 🔄 Merge Data Streams

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.2

Block 19 - 🧩 Combine All Data

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 20 - 🧠 Generate Personalized Email

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2

Block 21 - 🤖 OpenAI Language Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 22 - ✂️ Parse Email Content

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 23 - 📧 Sends Email

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.1

Block 24 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Showing the first 24 of 30 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Automate lead enrichment & personalized outreach with HubSpot, Phantombuster & GPT
Complexity advanced
Nodes 30
Categories Lead Nurturing, Multimodal AI
Author Avkash Kakdiya
Published 11 Aug 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/7233/7233.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Automate lead enrichment & personalized outreach with HubSpot, Phantombuster & GPT do?

How it works 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...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Lead Nurturing, Multimodal AI use case.