Auto-reply to Instagram comments with Gemini and Google Sheets tracking
Ready for 3.0What this workflow does
This AI workflow has 18 nodes and runs manually, when you click “Execute workflow” (plus 1 other trigger). Along the way it connects Facebook Graph API, Google Sheets and Google Gemini.
How it runs
Trigger: Manually, when you click “Execute workflow” (plus 1 other trigger).
- Configure Post & Message (Edit Fields (Set)): sets 5 fields: postUrl, instaId, brandName…
- Get Instagram Posts (Facebook Graph API): uses Facebook Graph API
- Filter and Get Post ID (Code): runs custom JavaScript code
- Get All Comments (Facebook Graph API): uses Facebook Graph API
- Read Contacted Users (Google Sheets): uses Google Sheets
- Filter New Comments (Code): runs custom JavaScript code
- Check If Has New Comments (If): checks a condition and branches into true / false
- Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
- Generate Summary (Code): runs custom JavaScript code
- Generate Reply with AI (Google Gemini): uses Google Gemini
…plus 4 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 (11)
- Manual Trigger
n8n-nodes-base.manualTrigger - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - Facebook Graph API
n8n-nodes-base.facebookGraphApi - Code
n8n-nodes-base.code - Google Sheets
n8n-nodes-base.googleSheets - If
n8n-nodes-base.if - No Operation, do nothing
n8n-nodes-base.noOp - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Google Gemini
@n8n/n8n-nodes-langchain.googleGemini - Wait
n8n-nodes-base.wait
From the author
AI Auto-Reply to Instagram Comments with Gemini & Google Sheet Tracker Summary Automate your Instagram community management without sounding like a bot. This workflow monitors a specific Instagram post, uses Gemini 2.5 Flash to generate context-aware, highly…