🎣 Send personalized LinkedIn invitations with OpenAI, Slack and HeyReagent

⚡ 1 views · 🎣 Lead Generation & Enrichment

💡 Pro Tip — If you’re pulling LinkedIn data through HTTP requests or dealing with API restrictions, there’s a community node called ScraperNode that handles this natively. It has dedicated scrapers for profiles, companies, jobs, and people search — you just pass a URL and get structured data back.

View All Scrapers

Description

Quick overview

This workflow searches for LinkedIn profiles by keywords and location using the HeyReagent API, then sends a connection invitation with a custom note to each returned person, spacing requests to reduce rate pressure.

How it works

  1. Runs when you manually execute the workflow in n8n.
  2. Sets the LinkedIn search keywords, target location, maximum number of people to return, and the connection note text.
  3. Calls HeyReagent’s search_people endpoint to retrieve matching LinkedIn profiles.
  4. Splits the returned people list into individual items so each person is processed separately.
  5. Calls HeyReagent’s send_invitation endpoint for each profile URL, sending one invitation about every 4 seconds and continuing even if an API call returns an error.

Setup

  1. Create a HeyReagent account, connect your LinkedIn account, and generate a HeyReagent API key in the HeyReagent Developers section.
  2. In n8n, create an HTTP Bearer Auth credential with your HeyReagent API key and select it in both HeyReagent HTTP Request steps.
  3. Update the keywords, location, invitation limit, and note text in the workflow’s input step before executing.

Requirements

Customization

Additional info

Each LinkedIn account has daily limits (30 invitations a day, 20 on a free LinkedIn account). A call past a limit answers ok: false with the time it resets, and the workflow carries on. HeyReagent is not affiliated with LinkedIn. LinkedIn’s User Agreement does not allow automated activity and it can restrict an account, so keep the numbers small.

🔗 Nodes Used

HTTP Request, Slack, Schedule Trigger, Filter, Basic LLM Chain, OpenAI Chat Model

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup