Most n8n LinkedIn workflows post content or send messages. The first is safe; the second can get your account restricted.
The part that pays for sales teams is quieter: getting the right new leads from LinkedIn into your CRM, every week, without duplicates.
This guide explains what n8n can and cannot automate on LinkedIn, and shows a sync from Sales Navigator to HubSpot that we tested on a real weekly run.
30-Second Summary
- n8n can post on LinkedIn with its official LinkedIn node, and receive lead data from tools like Evaboot through a webhook.
- Sending messages or scraping with your session breaks LinkedIn's User Agreement and puts your account at risk.
- Our LinkedIn to HubSpot sync takes a weekly Sales Navigator run from Evaboot, matches each person to HubSpot by LinkedIn id and email, and lets Claude write a first line for the new ones.
- In our test, 12 of 15 people were new: they were created with a first line, and the 3 already in HubSpot were left alone.
- Pushing the same run again created nothing, and a changed job title came back as an update.
You can run the sync in n8n, every week, or from an AI Agent in Claude Code, Codex or Cursor.
We ran both on a real Sales Navigator search. Copy the workflow below, or follow the same method with your own tools.
We will walk you through the process step by step.
Everything is in one public GitHub repo: the n8n workflow, a small helper script, the buyer rules and the skill for your AI Agent. Pick the n8n tab to import the workflow, or paste the prompt into your AI Agent.
Set it up in n8n
Paste this prompt into your AI agent and it walks you through the import, one step at a time. Or open the workflow JSON on GitHub and import it yourself.
Set up the LinkedIn to HubSpot sync in my n8n. Clone https://github.com/evaboot-labs/n8n-linkedin-crm-sync and follow docs/n8n.md. Walk me through the two HubSpot properties, importing n8n/n8n-linkedin-crm-sync.json, the HubSpot and Anthropic credentials, the Evaboot webhook and the weekly export, one step at a time.
In the repo
- The workflow JSON: webhook in, HubSpot created or updated
- docs/n8n.md: the properties, the credentials and the weekly export
- The same match rules as the script
Let your AI agent set it up
Paste this prompt into Claude Code, Codex or Cursor. Your agent clones the public repo, follows its instructions and asks before every change.
Clone https://github.com/evaboot-labs/n8n-linkedin-crm-sync, read AGENTS.md and follow the skill. Sync my Sales Navigator search into HubSpot, and show me every change before you write anything.
In the repo
- The n8n-linkedin-crm-sync skill: search, match, note, review, write
- sync.py: the HubSpot match, the checks and the write-back
- BUYERS.md: who fits, and the first-line rules
We used Sales Navigator, Evaboot, HubSpot and Claude in our example, but with a few tweaks, the same method works with another CRM or model.
In this guide
- What You Can Automate on LinkedIn With n8n
- How to Sync LinkedIn Leads Into Your CRM With n8n
- How to Run the Sync From Your AI Agent
- Example: One Weekly Run, 15 People
- Other LinkedIn Workflows You Can Build in n8n
- Common n8n LinkedIn Automation Mistakes
What You Can Automate on LinkedIn With n8n
n8n connects to LinkedIn in two safe ways: its own LinkedIn node, which posts through LinkedIn's official API, and the tools that send LinkedIn data to an n8n webhook.
Everything else runs through your personal session, and that is where accounts get restricted:
| What | How in n8n | Risk to your account |
|---|---|---|
| Post to a profile or company page | n8n's LinkedIn node, official API | None |
| Get new leads from Sales Navigator | Evaboot exports a search and posts it to a webhook | None: you export your own search |
| Sync leads into your CRM | HubSpot, Pipedrive or Salesforce nodes | None |
| Send connection requests or messages | Third-party tools driven from n8n | High: LinkedIn forbids bots |
| Scrape profiles with your cookies | Browser automation | High: restrictions and bans |
LinkedIn's User Agreement forbids bots and scraping on the site. Keep the automation on your side: data in, CRM out, and a person on every message.
How to Sync LinkedIn Leads Into Your CRM With n8n
Our sync turns a weekly Sales Navigator run into clean HubSpot contacts, in six steps.
n8n matches, notes and writes. Evaboot does the LinkedIn part, and you do the outreach.
- Save a Sales Navigator Search
- Export It Every Week With Evaboot
- Send Each Run to an n8n Webhook
- Match Each Person to HubSpot
- Let Claude Write a First Line
- Create the New People, Update the Job Changes
1. Save a Sales Navigator Search
We searched for sales leaders at 15 French B2B software companies: VPs, Heads and Directors of Sales or Business Development. Sales Navigator found 57.
Save the search in Sales Navigator. A weekly export repeats a saved search; a one-off search built on a temporary company list cannot repeat.
2. Export It Every Week With Evaboot
Evaboot exported 15 of the 57 with verified emails, as one weekly run would bring:
A recurring export re-runs the saved search every week and returns only the people added since the last run:
3. Send Each Run to an n8n Webhook
Publish the workflow and copy the production URL of its webhook:
In Evaboot's Integrations page, add an n8n destination with that URL and attach the recurring export. Our AI Agent did it through the Evaboot MCP server:
4. Match Each Person to HubSpot
Two HubSpot searches cover the whole run: one by LinkedIn id, one by email. The LinkedIn id goes first because it never changes; the email catches contacts added by hand.
Each search is one HTTP call with your HubSpot key:
Each person comes out new, changed or known. Changed means the same person with another title or company: a job change.
5. Let Claude Write a First Line
For each new person, Claude writes a fit and one opener, from their title, their headline and their company's description.
One first line from our run
- Who: Vice President of Sales, EMEA at a life science software vendor
- Fit: good
- First line: Selling regulated content management to life science companies across EMEA starts with finding the right quality and regulatory leads at each account.
A "no" is never created. The first line lands in an AI first line field, ready for your first email or connection request.
6. Create the New People, Update the Job Changes
The new people who fit are created in one call, with an email only when Evaboot rates it safe. A changed person gets the new title and company, and a LinkedIn change field keeps what they were.
Here is the whole run in n8n: 15 people in, 12 new, 12 created:
Each new contact arrives with its first line, and the changed one keeps what it was:
How to Run the Sync From Your AI Agent
The same sync runs from Claude Code, Codex or Cursor with sync.py. The agent writes the first lines itself, and you read every change before anything is written.
On our run, the match, the check and the review gave the same 12 new and 3 known:
Use the agent for a first big import, where you want to read every line. Use n8n for the weekly runs.
Example: One Weekly Run, 15 People
We added three of the 15 to HubSpot first, as a CRM would already hold them: two with their LinkedIn id, one with the email only. Then we pushed the run:
| Push | New | Known | Changed | Created | Updated |
|---|---|---|---|---|---|
| First | 12 | 3 | 0 | 12 | 0 |
| Same run again | 0 | 15 | 0 | 0 | 0 |
| After a title edit | 0 | 14 | 1 | 0 | 1 |
The email match worked: the contact we added without a LinkedIn id was found by email and left alone.
The second push created nothing. For the third, we changed one contact's title in HubSpot by hand; the sync put the current title back and wrote the old one in the LinkedIn change field.
Other LinkedIn Workflows You Can Build in n8n
The same pattern, LinkedIn data in, your tools out, covers most safe LinkedIn automations:
- Post to LinkedIn From a Content Calendar
- Alert Your Team About New Leads
- Score New Leads Before They Reach the CRM
1. Post to LinkedIn From a Content Calendar
n8n's LinkedIn node creates a post for your profile or your company page. A schedule trigger and a sheet of drafts are enough.
Keep a person on the approval: a post goes out under your name.
2. Alert Your Team About New Leads
Add a Slack or email node after the create step, and the owner of the territory hears about each new lead the day it lands.
Send only the people who fit, or the alert becomes noise.
3. Score New Leads Before They Reach the CRM
Put an AI score between the match and the create step, and only the leads above your bar reach HubSpot.
Our guide to AI lead scoring for your ICP shows a tested scoring workflow.
Common n8n LinkedIn Automation Mistakes
Most problems come from automating the wrong side of LinkedIn.
Here are the four mistakes we see most:
- Automating Messages From Your Account
- Matching on Email Only
- Repeating a Search That Cannot Repeat
- Creating Everyone the Search Returns
1. Automating Messages From Your Account
A bot that sends connection requests or messages from your session breaks LinkedIn's rules, and the account is the price.
Automate the data, not the conversation.
2. Matching on Email Only
People change email when they change jobs. A sync that matches on email alone creates a second contact for the same person.
Match on the LinkedIn id first, then on email.
3. Repeating a Search That Cannot Repeat
A search built on a temporary company list stops working once the list is deleted. Our first test search did exactly that.
Save a plain Sales Navigator search before you make it recurring.
4. Creating Everyone the Search Returns
A broad search brings people who will never buy. Every one of them becomes a contact your team has to ignore.
Let the fit decide who gets created, and keep the rest out.
Frequently asked questions
Can n8n automate LinkedIn?
Yes, for posting and for lead data. The LinkedIn node posts through the official API, and tools like Evaboot send Sales Navigator leads to an n8n webhook.
Sending messages or scraping with your session breaks LinkedIn's User Agreement.
Can n8n post on LinkedIn?
Yes. n8n's LinkedIn node creates posts for a person or a company page.
You connect your LinkedIn account once in n8n's credentials.
Does n8n have a LinkedIn Sales Navigator integration?
No. Sales Navigator has no public API for n8n.
Evaboot exports your Sales Navigator searches and sends each run to an n8n webhook.
Is LinkedIn automation safe?
Posting through the official API and exporting your own searches are safe.
Bots that send messages or connection requests from your account put it at risk.
How do I stop duplicate contacts from LinkedIn in my CRM?
Match each person by LinkedIn id first, then by email, and create only the people your CRM does not hold.
In our test, a second push of the same run created nothing.
Rate this article