What This Workflow Does
This workflow finds and scores LinkedIn leads automatically. It changes a customer profile description into LinkedIn search filters. Then it searches LinkedIn for matching companies and people. The results go into Google Sheets. It reads company websites and LinkedIn posts to learn more. It scores leads by how well they fit. Finally, it sends connection requests and messages on LinkedIn to top leads.
This process lets sales workers save many hours of manual work. It helps them focus on the best leads and talk to them more often.
Who Should Use This Workflow
This workflow fits sales managers or marketers using LinkedIn to find new clients. It works best when searching for specific types of companies and job titles. It helps anyone tired of doing slow manual lead research. It works well for those using Google Sheets to manage leads and using OpenAI for text summaries.
Tools and Services Used
- n8n: Automates the whole process and runs the workflow.
- HDW LinkedIn API: Searches LinkedIn and manages connections.
- OpenAI API: Summarizes text and scores leads using AI models.
- Google Sheets: Saves and updates lead data in spreadsheets.
- HDW Web Parsing Tools: Scrapes company website content and sitemaps.
Optional: Use self-host n8n for full control on your own server.
How the Workflow Works: Inputs, Steps, and Outputs
Inputs
- Ideal Customer Profile (ICP) text description provided by the user.
- HDW LinkedIn API credentials for searching leads.
- Google Sheets spreadsheet to store leads.
- OpenAI API key for text processing and scoring.
Processing Steps
- Convert ICP to Search Filters: An AI agent transforms the ICP description into structured LinkedIn Sales Navigator filters as JSON.
- Search LinkedIn: The HDW LinkedIn API node runs searches with filters to find matching leads and companies.
- Save Leads: Linked lead details like names, titles, companies, and locations save in Google Sheets for tracking.
- Find Company Websites: For leads missing websites, the workflow uses a Google search via HDW API to add company URLs.
- Scrape Website Content: It downloads sitemap pages and extracts site text, then uses OpenAI to summarize company info and key products.
- Analyze LinkedIn Posts: Retrieves and summarizes posts from leads and their companies to read intent signals.
- Fetch Company News: Uses Google search to find news articles about the company and summarizes them.
- Score Leads: An AI model rates each lead from 1 to 10 based on collected text summaries and details.
- Manage Connections: Retrieves current connections to avoid duplicate requests and updates their status.
- Send LinkedIn Requests and Messages: Sends connection invites and follow-up messages to leads with high scores, pacing actions to avoid limits.
Outputs
- Google Sheet filled with enriched and scored lead data.
- Connection requests and messages sent to top leads on LinkedIn.
- Summary info for each lead and company aiding sales outreach decisions.
Beginner Step-by-Step: How to Use This Workflow in n8n
Step 1: Import the Workflow
- Download the workflow file using the Download button on this page.
- Go inside the n8n editor where you want to use the workflow.
- Click on “Import from File” and select the downloaded workflow.
Step 2: Configure API Credentials and Settings
- Add your HDW LinkedIn API credentials in the n8n credentials manager.
- Add your OpenAI API key for text summarization and scoring.
- Set up Google Sheets OAuth2 credentials to allow writing lead data.
- Check sheet names and columns in Google Sheets nodes to match your spreadsheet.
- Update any specific IDs, emails, or table names inside nodes if needed.
Step 3: Test the Workflow
- Run the workflow manually using a small ICP text to test lead retrieval and saving.
- Look for errors in the execution logs and fix any issues with credentials or sheet access.
Step 4: Activate for Production
- Enable the workflow trigger to run automatically on schedule or use a manual start.
- Adjust batch sizes and wait times if you need slower or faster pacing for LinkedIn API.
- Monitor the workflow’s runs regularly to check for API limits or failures.
Customization Ideas
- Edit the ICP to LinkedIn filters converter node’s prompt to focus on different industries or roles.
- Change the AI lead scoring prompt to include special keywords or pain points relevant to your sales.
- Personalize LinkedIn outreach messages by editing the text in the send message node.
- Adjust limit nodes to control how many connection requests go out per day or week.
- Add more columns in Google Sheets to store extra fields from the HDW API responses.
- Use self-host n8n if needing more privacy or control over workflow execution.
Common Problems and Fixes
Problem: Too Many API Errors or Timeouts
Cause: Making too many calls at once or network issues.
Fix: Use retry options on API nodes, reduce batch sizes, and add wait steps between requests.
Problem: Google Sheets Not Updating or Overwriting Incorrectly
Cause: Wrong column mapping or missing unique IDs like URN.
Fix: Check Google Sheets column names and ensure URN is unique and matched in node settings.
Problem: AI Text Summaries Are Wrong or Cut Off
Cause: Text input too large or badly formatted JSON.
Fix: Split long texts before summarizing and verify JSON input structure for AI nodes.
Summary of Results
✓ Automatically turns customer profiles into LinkedIn searches.
✓ Saves leads with deep info in Google Sheets.
✓ Uses AI to summarize company sites and posts.
✓ Scores leads so users can focus on best contacts.
✓ Sends controlled LinkedIn connection requests and messages.
→ Saves hundreds of work hours.
→ Improves sales chances with better lead research and follow-up.
