Reply to Instagram ad comments with GPT-4o, Google Docs, and Slack
Ready for 3.0What this workflow does
This AI workflow has 14 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects OpenRouter Chat Model, Google Docs and Slack.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Filter: keeps only the items that match a condition
- Get Commnet Details (HTTP Request): calls an HTTP API
- If: checks a condition and branches into true / false
- Get Ad Data (HTTP Request): calls an HTTP API
- Clean Data (Edit Fields (Set)): sets 5 fields: post_text, post_permalink, comment_text…
- Comment Classifier (AI Agent): runs an AI agent, with model: OpenRouter Chat Model; output parser: Structured Output Parser
- Switch: routes items into 4 branches
- Comment Generator (AI Agent): runs an AI agent, with model: OpenRouter Chat Model; 1 tool (Knowledge Base)
- Inform User (Slack): uses Slack
- Reply to Comment (HTTP Request): calls an HTTP API (POST)
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 (11)
- Filter
n8n-nodes-base.filter - Webhook
n8n-nodes-base.webhook - If
n8n-nodes-base.if - Edit Fields (Set)
n8n-nodes-base.set - AI Agent
@n8n/n8n-nodes-langchain.agent - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - OpenRouter Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenRouter - HTTP Request
n8n-nodes-base.httpRequest - Switch
n8n-nodes-base.switch - Google Docs Tool
n8n-nodes-base.googleDocsTool - Slack
n8n-nodes-base.slack
From the author
Never miss a lead from your Instagram ads again. This workflow automatically monitors every comment on your Instagram ad posts in real time, classifies the comment using AI, and takes the right action instantly — whether that is replying with accurate…