Scrape LinkedIn comments and score lead intent using ConnectSafely, Azure OpenAI, and Google Sheets
UnknownWhat this workflow does
This AI workflow has 9 nodes and runs manually, when you click “Execute workflow”. Along the way it connects Azure OpenAI Chat Model, Google Sheets, Serpapi (community) and Connectsafely Ai (community).
How it runs
Trigger: Manually, when you click “Execute workflow”.
- Search LinkedIn Posts via SerpAPI (Serp Api): uses Serp Api
- Parse & Filter Search Results (Code): runs custom JavaScript code
- Fetch Post Comments via ConnectSafely (Connect Safely Linked In): get all post comments
- Flatten Comments into Rows (Code): runs custom JavaScript code
- AI Intent Detection Agent (AI Agent): runs an AI agent, with model: Azure OpenAI GPT-4o-mini
- Parse AI Intent Output (Code): runs custom JavaScript code
- Save Leads to Google Sheet (Google Sheets): append
Services it uses
Before you upgrade to n8n 3.0
We can't fully verify this one: it relies on 2 community packages, and n8n 3.0 turns unverified community packages off by default (N8N_UNVERIFIED_PACKAGES_ENABLED=false).
- Check that n8n-nodes-serpapi is verified or supports 3.0 (used in Search LinkedIn Posts via SerpAPI).
- Check that n8n-nodes-connectsafely-ai is verified or supports 3.0 (used in Fetch Post Comments via ConnectSafely).
Nodes used (7)
- Manual Trigger
n8n-nodes-base.manualTrigger - Serp Api
n8n-nodes-serpapi.serpApi - Connect Safely Linked In
n8n-nodes-connectsafely-ai.connectSafelyLinkedIn - Code
n8n-nodes-base.code - AI Agent
@n8n/n8n-nodes-langchain.agent - Azure OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatAzureOpenAi - Google Sheets
n8n-nodes-base.googleSheets
From the author
📊 Description Automate LinkedIn lead discovery by identifying high-intent prospects directly from post comments using ConnectSafely and AI 🤖. This workflow searches LinkedIn posts related to common sales pain points, extracts all comments safely, and…