Automate LinkedIn Company Search & AI Scoring with n8n and Google Sheets

This automated n8n workflow searches LinkedIn companies via Ghost Genius API, filters and scores them using AI, then stores qualified leads in Google Sheets CRM to save hours of manual prospecting and improve lead quality.
httpRequest
googleSheets
openAi
+7
Workflow Identifier: 1266
NODES in Use: Manual Trigger, Set, HTTP Request, Split Out, Split In Batches, If, Google Sheets, OpenAI, Wait, Sticky Note
Automate LinkedIn search with n8n and Google Sheets

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

What This Automation Does

This workflow searches LinkedIn companies using set filters, gets company details, scores companies with AI, and adds good companies to a Google Sheets CRM.

It solves the pain of spending too much time manually finding good leads on LinkedIn.

The result is a cleaner, scored list of companies, ready for sales follow-up.


How the Workflow Works: Inputs, Processing, and Output

Inputs

  • Company search criteria like industry, location, and company size.
  • Positive and negative indicators for AI scoring.
  • API keys for Ghost Genius, Google Sheets, and OpenAI.

Processing Steps

  1. The Set Variables node collects target criteria and scoring indicators.
  2. The Search Companies node calls the Ghost Genius API to find LinkedIn companies matching criteria.
  3. The Extract Company Data node splits the response into individual companies.
  4. The Process Each Company node works through each company one by one with a short wait to avoid API limits.
  5. The Get Company Info node retrieves detailed info like website and followers.
  6. The Filter Valid Companies node removes companies without websites or under 200 followers.
  7. The Check If Company Exists node looks in Google Sheets to avoid duplicates.
  8. If new, the AI Company Scoring node uses OpenAI to give each company a score from 0 to 10, based on fit.
  9. A wait node pauses to respect Google Sheets limits.
  10. The Add Company to CRM node appends the qualified company info and score to Google Sheets.
  11. The workflow loops back to process the next company until done.

Outputs

  • Updated Google Sheets CRM with new, scored companies.
  • A better, easier-to-use list of leads.

Tools and Services Used

  • Ghost Genius API: Searches LinkedIn companies and gets company data.
  • OpenAI API: Scores companies for relevance using GPT-4.1.
  • Google Sheets: Stores and manages the CRM data.
  • n8n: Orchestrates the entire workflow.

Beginner Step-by-Step: How to Use this Workflow in n8n

Import the Workflow

  1. Download the workflow file using the Download button on this page.
  2. Inside the n8n editor, click your profile icon, then select “Import from File.”
  3. Choose the downloaded file to add the workflow.

Configure Credentials and Variables

  1. Open the imported workflow and locate the Set Variables node.
  2. Enter your target industry keywords, location IDs (from Ghost Genius location finder), company size, and product/service descriptions.
  3. Add your Ghost Genius API key in the dedicated HTTP Request node headers.
  4. Set up OpenAI API credentials in the AI Company Scoring node.
  5. Authorize Google Sheets in the corresponding nodes by connecting your Google account.
  6. If needed, update Google Sheets document IDs or sheet names in the Google Sheets nodes.

Test and Activate the Workflow

  1. Run the workflow manually once using the Start manual trigger node to test everything.
  2. Check the Google Sheets CRM to see new companies added.
  3. When satisfied, activate the workflow toggle to run it regularly or on-demand.

Consider using self-host n8n for more control if running this workflow often.


Customization Ideas

  • Change company size filters in the Set Variables node to target specific business sizes.
  • Adjust follower count thresholds in the Filter Valid Companies node to make lead quality stricter or looser.
  • Edit positive and negative indicators in the variables to refine how AI scoring judges company fit.
  • Switch Google Sheets to Airtable or another CRM by replacing Google Sheets nodes with API calls.
  • Increase pages fetched in the Search Companies node to pull more results, respecting API limits.

Potential Errors and How to Fix Them

  • Error: “HTTP Request failed with status 401 Unauthorized”.
    Cause: Ghost Genius API key is wrong or expired.
    Fix: Update the API key in HTTP headers and confirm it’s active.
  • Error: “Google Sheets append operation failed due to quota limits”.
    Cause: Too many requests hitting Google Sheets API limit.
    Fix: Increase delay in wait nodes, reduce batch size.
  • Error: AI scores look wrong or unrelated.
    Cause: AI prompt indicators missing or not clear.
    Fix: Improve positive and negative indicators in Set Variables node.

Pre-Production Checklist

  • Confirm Ghost Genius API key is active and correctly set.
  • Make sure Google Sheets CRM is copied and OAuth2 is connected.
  • Check OpenAI API key validity in n8n.
  • Run test with a small data page to verify company retrieval.
  • Check CRM manually for duplicates before fully running.
  • Review AI scoring for logical and expected results.

Summary

✓ Saves hours weekly by automating LinkedIn lead finding.

✓ Delivers cleaned, scored company data directly into a Google Sheets CRM.

✓ Avoids duplicates and improves lead quality consistently.

→ Enables faster, smarter sales prospecting using AI and automation.


Automate LinkedIn search with n8n and Google Sheets

Visit through Desktop to Interact with the Workflow.

Frequently Asked Questions

The workflow requires API keys for Ghost Genius for LinkedIn data, OpenAI for AI scoring, and Google Sheets for CRM access.
It checks the Google Sheets CRM for existing LinkedIn company IDs before adding new records.
Yes, adjust positive and negative indicators in the ‘Set Variables’ node to influence AI scoring.
Yes, Google Sheets nodes can be replaced with API calls to other CRMs like Airtable.

Promoted by BULDRR AI

Related Workflows

Automate Twist Channel Creation and Messaging with n8n

This workflow automates creating and updating a channel in Twist and sending a personalized message to specific users. It eliminates manual setup errors and saves time managing Twist communications.

Automate Ideogram Image Generation with Google Sheets & Gmail

This workflow automates graphic design image generation via Ideogram AI, storing image data in Google Sheets and Google Drive, with email alerts via Gmail. It saves designers hours by automating image creation, remixing, review, and record-keeping.

Automate IT Support with Slack and OpenAI in n8n

Streamline IT support by automating Slack message handling using n8n and OpenAI. This workflow handles Slack DMs, filters bots, queries a Confluence knowledge base, and delivers AI-generated responses, improving support efficiency and response time.

Automate Crypto Analysis with CoinMarketCap & n8n AI Agent

Discover how this unique n8n workflow leverages CoinMarketCap’s multi-agent AI to deliver precise, real-time cryptocurrency insights directly via Telegram. Manage crypto data analysis efficiently with automated multi-source API integration.

Automate Gumroad to Beehiiv Subscriber Sync with n8n

Learn how to automatically add new Gumroad sales customers as Beehiiv newsletter subscribers using n8n automation. This workflow saves time by syncing sales data to Google Sheets CRM and notifying your Telegram channel instantly.

Generate On-Brand Blog Articles Using n8n and OpenAI

This workflow automates the creation of on-brand blog articles by analyzing existing company content using n8n and OpenAI. It extracts article structures and brand voice to produce consistent draft articles, saving significant content creation time.
1:1 Free Strategy Session
Your competitors are already automating. Are you still paying for it manually?

Do you want to adopt AI Automation?

Every hour your team does repetitive work, you're burning real money.
While you wait, faster businesses are cutting costs and moving quicker.
AI and automations aren't the future anymore — they're the present.

Book a live 1-on-1 session where we show you exactly which of your daily tasks can be automated — and what it’s costing you not to.