Category: Automations › Lead Generation & CRM · Best for: Teams running their CRM in Airtable · Platform: n8n · Steps: 10
What it does
It finds companies on LinkedIn and saves them in your Airtable CRM.
This section initiates the workflow and searches for your target companies on LinkedIn using the Ghost Genius API.
Works with: Airtable
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:
- API key sent as an HTTP header (see the node for which service): how to connect (used by Get Company Info, Search Companies)
- Airtable personal access token: how to connect (used by Check If Company Exists, Add Company to CRM)
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:
- Check If Company Exists →
base: choose your own - Check If Company Exists →
table: choose your own - Add Company to CRM →
base: choose your own - Add Company to CRM →
table: choose your own
- Check If Company Exists →
- Click Save.
Test it
- Click Test workflow (or Execute workflow). When clicking ‘Test workflow’ 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
- When clicking ‘Test workflow’ starts the workflow (Manual).
- Set Variables reshapes the data for the next step.
- Search Companies calls an external API (https://api.ghostgenius.fr/v2/search/companies).
- Extract Company Data uses Split Out.
- Process Each Company uses Split In Batches.
- Get Company Info calls an external API (https://api.ghostgenius.fr/v2/company).
- Filter Valid Companies checks a condition and routes items accordingly.
- Check If Company Exists uses Airtable to search.
- Is New Company? checks a condition and routes items accordingly.
- Add Company to CRM uses Airtable to create.
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:
LinkedIn Company Search
This section initiates the workflow and searches for your target companies on LinkedIn using the Ghost Genius API.
You can filter and refine your search using keywords, company size, location, industry, or even whether the company has active job postings. Use the "Set Variables" node for it.
Note that you can retrieve a maximum of 1000 companies per search (corresponding to 100 LinkedIn pages), so it's important not to exceed this number of results to avoid losing prospects.
Example: Let's say I want to target Growth Marketing Agencies with 11-50 employees. I do my search and see that there are 10,000 results. So I refine my search by using location to go country by country and retrieve all 10,000 results in several batches ranging from 500 to 1000 depending on the country.
Tips: To test the workflow or to see the number of results of your search, change the pagination parameter (Max Pages) in the "Search Companies" node. It will be displayed at the very top of the response JSON.
Company Data Processing
This section processes each company individually.
We retrieve all the company information using Get Company Details by using the LinkedIn link obtained from the previous section.
Then we filter the company based on the number of followers, which gives us a first indication of the company's credibility (200 in this case), and whether their LinkedIn page has a website listed.
The workflow implements batch processing with a 2-second delay between requests to respect API rate limits. This methodical approach ensures reliable data collection while preventing API timeouts.
You can adjust these thresholds based on your target market - increasing the follower count for more established businesses or decreasing it for emerging markets.
CRM Integration
This section handles the Airtable CRM integration.
It first checks if the company already exists in your database (using LinkedIn ID) to prevent duplicates because when you do close enough searches, some companies may come up several times.
If it's a new company, it adds the record to Airtable with comprehensive details including name, LinkedIn URL, website, tagline, description, and category.
The workflow automatically tags companies as 'Growth Marketing Agency 11-50 ' and sets the country to ' United States' (customize according to your use case).
Introduction
Welcome to my template! Before explaining how to set it up, here's some important information:
This automation is very easy to implement and is designed for anyone wanting to build and enrich a solid CRM through LinkedIn research.
The initial data source can be changed as long as you have the LinkedIn URL of the company.
For any questions, you can send me a DM on my LinkedIn :)
Setup
-
Create an account on Ghost Genius API and get your API key.
-
Configure the Search Companies and Get Company Info modules by creating a "Header Auth" credential: Name: "Authorization" Value: "Bearer api_key"
-
Create an Airtable base named "CRM" and add at least the following columns: name (default), website (url), LinkedIn (url), id (number).
-
Configure your Airtable credential by following the n8n documentation.
-
Add your company search selection criteria to the “Set Variables” node.
Tools
(You can use the API and CRM of your choice; this is only a suggestion)
-
API Linkedin : Ghost Genius API
-
API Documentation : Documentation
-
CRM : Airtable
-
LinkedIn Location ID Finder : Ghost Genius Locations ID Finder
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