Automate LinkedIn engagement with GPT-4o sentiment analysis & smart comments
Ready for 3.0What this workflow does
This AI workflow has 23 nodes and runs manually, when you click “Execute workflow”. Along the way it connects OpenRouter Chat Model, Google Sheets and Telegram.
How it runs
Trigger: Manually, when you click “Execute workflow”.
- Search LinkedIn Posts (HTTP Request): calls an HTTP API
- Extract Posts from Results (Code): runs custom JavaScript code
- Filter Recent Posts (Code): runs custom JavaScript code
- Count Post Characters (Basic LLM Chain): sends a prompt to an LLM, with model: Character Count LLM Model; output parser: Parse Character Count
- Filter Long Non-Reposts (If): checks a condition and branches into true / false
- Log Post to Sheet (Google Sheets): uses Google Sheets
- Process Posts in Batches (Loop Over Items (Split in Batches)): loops over the items in batches
- Send Completion Notification (Telegram): uses Telegram
- Analyze Post Sentiment (Sentiment Analysis): scores sentiment with AI, with model: Sentiment Analysis LLM Model
- Generate AI Comment (AI Agent): runs an AI agent, with model: Comment Generation LLM Model
…plus 8 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (13)
- HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - If
n8n-nodes-base.if - OpenRouter Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenRouter - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - AI Agent
@n8n/n8n-nodes-langchain.agent - Sentiment Analysis
@n8n/n8n-nodes-langchain.sentimentAnalysis - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Google Sheets
n8n-nodes-base.googleSheets - Wait
n8n-nodes-base.wait - Telegram
n8n-nodes-base.telegram - Manual Trigger
n8n-nodes-base.manualTrigger
From the author
LinkedIn Auto-Engagement AI Agent Automatically find, analyze, and engage with relevant LinkedIn posts using AI-powered sentiment analysis and comment generation 📋 Template Overview This workflow automates LinkedIn engagement by searching for relevant posts,…