Category: Automations › Lead Generation & CRM · Best for: B2B sales teams · Platform: n8n · Steps: 56
What it does
It finds people on LinkedIn and adds their job, company and contact info to your list.
Get Email Address, Validate Deliverability & Update Column Status
Works with: Google Sheets, OpenAI, Apify
What you get
- The n8n workflow file (
workflow.json), ready to import - This setup guide
- The list of fields to change for your own accounts (see Install below)
- Email support if you get stuck
Before you start
-
An n8n account. Easiest: n8n Cloud (free trial). Self-host for free with Docker:
docker run -it --rm -p 5678:5678 -v n8n_data:/home/node/.n8n docker.n8n.io/n8nio/n8n, then open http://localhost:5678. -
Accounts and API keys for these services:
- Google (Sheets, Gmail, Drive, Calendar, Docs): how to connect (used by Google Sheets Trigger, Google Sheets Trigger2, Add Leads to Google Sheet, Add Linkedin Username, Get Pending Username Row, Add Email Address, Mark Invalid Email, Get Pending Email Statuses, Google Sheets Trigger3, Get Pending About and Posts Rows, Google Sheets Trigger4, Get Pending About and Posts Rows1, Google Sheets Trigger5, get invalid email rows, update_to_pending, get_failed_profile_summary_rows, update_to_pending1, get_failed_posts_summary_rows1, Update Profile Summary, Update Posts Summary, Get Completely Enriched Profiles, update_to_unscraped, Append to Enriched Leads Database, update status to failed, Google Sheets, Google Sheets Trigger6, Get Pending About and Posts Rows2, Update Profile Summary1, update status to failed1)
- OpenAI API key: how to connect (used by OpenAI1, Posts AI Summarizer, AI Profile Summarizer, AI Profile Summarizer1, Posts AI Summarizer1)
Install
- In n8n, click Create workflow (top right).
- Click the ⋯ menu → Import from file and choose
workflow.json. Or open the file, copy everything and paste it onto the empty canvas with Ctrl/Cmd + V. - Open each node with a red warning triangle and pick or create the matching credential from the list above.
- Point these fields at your own sheets, chats and accounts:
- Google Sheets Trigger →
sheetName: choose your own - Google Sheets Trigger →
documentId: choose your own - Google Sheets Trigger2 →
sheetName: choose your own - Google Sheets Trigger2 →
documentId: choose your own - Add Leads to Google Sheet →
sheetName: choose your own - Add Leads to Google Sheet →
documentId: choose your own - Add Linkedin Username →
sheetName: choose your own - Add Linkedin Username →
documentId: choose your own - Get Pending Username Row →
sheetName: choose your own - Get Pending Username Row →
documentId: choose your own - Add Email Address →
sheetName: choose your own - Add Email Address →
documentId: choose your own - Mark Invalid Email →
sheetName: choose your own - Mark Invalid Email →
documentId: choose your own - Get Email from Apollo →
x-api-key: replace the placeholder with your own
- Google Sheets Trigger →
- Click Save.
Test it
- Click Test workflow (or Execute workflow). Google Sheets Trigger4 starts it. Trigger it once with real sample data.
- Click each node to check its output. A green tick means the step worked.
- Fix any red node: it's almost always a credential or a field that still points at a sheet or chat that isn't yours.
Go live
Toggle Active (top right). From now on it runs on its own. Check Executions in the left sidebar to see every run.
How it works, step by step
- Google Sheets Trigger4 starts the workflow (Google Sheets).
- Google Sheets Trigger5 starts the workflow (Google Sheets).
- Google Sheets Trigger starts the workflow (Google Sheets).
- Google Sheets Trigger2 starts the workflow (Google Sheets).
- Google Sheets Trigger3 starts the workflow (Google Sheets).
- On form submission starts the workflow (Form).
- Schedule Trigger starts the workflow (Schedule).
- Schedule Trigger3 starts the workflow (Schedule).
- Schedule Trigger2 starts the workflow (Schedule).
- Google Sheets Trigger6 starts the workflow (Google Sheets).
- Get Pending About and Posts Rows1 uses Google Sheets.
- Get Completely Enriched Profiles uses Google Sheets.
- Get Pending Username Row uses Google Sheets.
- Get Pending Email Statuses uses Google Sheets.
- Get Pending About and Posts Rows uses Google Sheets.
- Generate Leads with Apollo.io calls an external API (https://api.apollo.io/api/v1/mixed_people/search).
- get invalid email rows uses Google Sheets.
- get_failed_posts_summary_rows1 uses Google Sheets.
- get_failed_profile_summary_rows uses Google Sheets.
- Get Pending About and Posts Rows2 uses Google Sheets.
- Get Profile Posts calls an external API (https://linkedin-data-api.p.rapidapi.com/get-profile-posts).
- Append to Enriched Leads Database uses Google Sheets to appendOrUpdate.
- OpenAI1 uses AI (OpenAI).
- Get Email from Apollo calls an external API (https://api.apollo.io/api/v1/people/match).
- Get About Profile calls an external API (https://linkedin-data-api.p.rapidapi.com).
- Split Out uses Split Out.
- update_to_pending uses Google Sheets to update.
- update_to_unscraped uses Google Sheets to update.
- update_to_pending1 uses Google Sheets to update.
- Get About Profile2 calls an external API ("apify-actor-endpoint").
- Clean Posts Data reshapes the data for the next step.
- Add Linkedin Username uses Google Sheets to update.
- Confirm Email Validity calls an external API (=https://api.mails.so/v1/validate?email={{ $json.person.emai).
- Clean Profile Data reshapes the data for the next step.
- Clean Data reshapes the data for the next step.
- Clean Profile Data1 reshapes the data for the next step.
- Clean Profile Data2 reshapes the data for the next step.
- update status to failed1 uses Google Sheets to update.
- Stringify Posts Data reshapes the data for the next step.
- Google Sheets uses Google Sheets to update.
- If email is valid checks a condition and routes items accordingly.
- Stringify Profile Data1 reshapes the data for the next step.
- update status to failed uses Google Sheets to update.
- Add Leads to Google Sheet uses Google Sheets to append.
- Stringify Data2 reshapes the data for the next step.
- Stringify Data3 reshapes the data for the next step.
- Posts AI Summarizer uses AI (OpenAI).
- Add Email Address uses Google Sheets to update.
- Mark Invalid Email uses Google Sheets to update.
- AI Profile Summarizer uses AI (OpenAI).
- AI Profile Summarizer1 uses AI (OpenAI).
- Posts AI Summarizer1 uses AI (OpenAI).
- Update Posts Summary uses Google Sheets to update.
- Update Profile Summary uses Google Sheets to update.
- Merge uses Merge.
- Update Profile Summary1 uses Google Sheets to update.
India & US notes
India: Zoho CRM and WhatsApp follow-ups are the most common combo; you can swap the CRM node for Zoho CRM. US: HubSpot free CRM is the usual starting point.
Extra setup notes
These notes are also on the canvas as yellow sticky notes:
Extract Linkedin Username
Scrape Leads from Apollo
Get Email Address, Validate Deliverability & Update Column Status
Update Contact Scrape Status from Invalid back to Pending
Get Profile Summary & Update Status (Rapid API - Primary Option)
Get Summary of Latest Linkedin Profile Posts (Rapid API - Primary Option)
Update Completely Enriched Profile to Final Database
Update profile summary status from failed back to pending
Update posts summary status from failed back to pending
Get Profile and Latest Posts Summary & Update Status (Apify Alternative - Secondary, if rapid api option doesn't work )
Some users that dont have an account on rapid API cant sign up hence are unable to get to the api and get an api key. This alternative is tailored for you. Immediatelty you get access to rapid API, please switch back to using that one. It is more reliable in scraping detailed data. See updated documentation
Troubleshooting
- "Credentials not found": open the node and select your credential again.
- Google "access blocked": in Google Cloud, add your email as a test user on the OAuth consent screen.
- Webhook not firing: copy the node's Production URL (not Test URL) into the other app, and make sure the workflow is Active.
- AI node errors: check your API key has billing enabled and the model name exists on your plan.
- Nothing happens on schedule: the workflow must be Active, and self-hosted n8n must stay running.
Need help?
Reply to your Morning Method order email and we'll help you get it running.
© Morning Method