← Back to projects
n8n HubSpot Phantombuster GPT-4 Gmail

HubSpot + Phantombuster + GPT:
Auto-Personalised Outreach

Every new contact in HubSpot triggers a pipeline that scrapes their live LinkedIn and Twitter activity, feeds it to GPT, and sends a genuinely personalised email, automatically, within minutes of them hitting your CRM.

0
Manual research
Live
Social data
100%
Unique emails
<5min
Contact-to-send

CRMs are full of contacts nobody has actually researched. Sales reps open LinkedIn, spend 10 minutes reading someone's profile, write a semi-personalised email. And repeat. 40 times a day. It's unsustainable and the output is still mediocre.

The real cost isn't just time. It's quality. A rep doing manual research at scale can't stay genuinely relevant to every prospect. This system does it better, faster, and without fatigue.

Sales Teams with HubSpot

Already using HubSpot for contact management. This slots in as an automation layer. No new tools for reps to learn.

High-Touch B2B Sales

Selling enterprise deals where a generic template destroys your chances. Every email needs to feel researched. This makes that scalable.

SDR Managers

Want to free reps from top-of-funnel research so they focus on conversations and closing, not copy-pasting LinkedIn bios.

Agencies & Consultants

Running personalised outreach for clients across multiple industries. One workflow handles all of them with different AI prompts per client.

1
HubSpot Webhook Trigger

The workflow fires the moment a contact is created or updated in HubSpot. n8n receives the webhook, pulls full contact details (email, name, company, LinkedIn URL, Twitter handle) and logs the tracking status to Google Sheets.

HubSpot WebhookGoogle Sheets
2
Social Profile Validation

Before scraping, the workflow checks whether the contact has a valid LinkedIn or Twitter handle. If neither exists, it routes to a fallback node that uses the company website and news coverage instead. No contact is left without research context.

Conditional LogicFallback Routing
3
Live Social Scraping via Phantombuster

Phantombuster scrapes the prospect's LinkedIn profile (recent posts, headline, current role, shared connections) and Twitter activity (recent tweets, engagement patterns). This returns real-time signal: what they're thinking about right now. Not 6-month-old profile text.

Phantombuster APILinkedIn ScraperTwitter Scraper
4
GPT-4 Email Generation

The enriched profile, social activity, and company context are passed to GPT-4 with a tailored system prompt. GPT generates a personalised subject line and email body that references something specific: a post they shared, a challenge in their role, or a recent company announcement. No two emails are the same.

GPT-4Custom Prompt
5
Send via Gmail & Log to HubSpot

The generated email is sent directly from Gmail with correct From name and reply-to settings. Simultaneously, HubSpot is updated: the email content is logged as a note on the contact, and the contact's outreach status is set to "contacted". Full CRM traceability, zero manual entry.

Gmail APIHubSpot Update
n8n
Orchestration
HubSpot
CRM & trigger
Phantombuster
Social scraping
GPT-4
Email generation
Gmail
Email delivery
Google Sheets
Status tracking
1
HubSpot Private App

In HubSpot: Settings → Integrations → Private Apps → Create. Scopes needed: contacts.read, contacts.write, crm.objects.contacts. Copy the access token into n8n. Set up a webhook pointing to your n8n webhook URL.

2
Phantombuster API

Create a Phantombuster account, set up the LinkedIn Profile Scraper and Twitter Profile Scraper phantoms. Copy your API key and the phantom IDs into the n8n HTTP Request nodes.

3
Gmail OAuth2

Connect Gmail using OAuth2 in n8n. Ensure the connected account matches the From address you want prospects to see. Set up a reply-to address if your sending account differs from your inbox.

4
Customise the AI Prompt

Edit the GPT system prompt with your product, ICP pain points, desired tone, and any hard rules (max word count, no-mention list, preferred CTA). This is the most important step — the quality of the AI output depends entirely on prompt quality.

5
Test with a Dummy Contact

Create a test contact in HubSpot with your own LinkedIn URL. Verify the webhook fires, Phantombuster returns data, GPT generates a sensible email, and Gmail sends it. Check HubSpot for the logged note. Then activate.

Want this built for your CRM?

I'll configure the full workflow for your HubSpot instance, tools, and outreach tone.