Automate LinkedIn comment replies with GPT-3.5 & track in Google Sheets
Ready for 3.0What this workflow does
This AI workflow has 8 nodes and runs on a schedule (every 10 minutes). Along the way it connects OpenAI and Google Sheets. It also calls api.linkedin.com over HTTP.
How it runs
Trigger: On a schedule (every 10 minutes).
- 📥 Fetch LinkedIn Comments (HTTP Request): calls api.linkedin.com
- 📊 Get Last Comment Timestamp (Google Sheets): uses Google Sheets
- 📊 Set Last Timestamp (Edit Fields (Set)): sets or maps fields
- 🔍 Filter New Comments (If): checks a condition and branches into true / false
- 🤖 Generate AI Reply (OpenAI): uses OpenAI
- 💬 Post LinkedIn Reply (HTTP Request): calls an HTTP API
- 💾 Store Comment Data (Google Sheets): append
Services it uses
Other OpenAI + Google Sheets templates (2,011) · Other LinkedIn + OpenAI templates (92) · Other LinkedIn + Google Sheets templates (71)
HTTP calls to: api.linkedin.com
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 (6)
- HTTP Request
n8n-nodes-base.httpRequest - Edit Fields (Set)
n8n-nodes-base.set - If
n8n-nodes-base.if - OpenAI
@n8n/n8n-nodes-langchain.openAi - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Google Sheets
n8n-nodes-base.googleSheets
From the author
How it works This workflow automates LinkedIn community engagement by monitoring post comments, filtering new ones, generating AI-powered replies, and posting responses directly on LinkedIn. It also logs all interactions into Google Sheets for tracking and…