Reply to Instagram comments and send DMs with Facebook Graph API and Gemini
Ready for 3.0What this workflow does
This AI workflow has 23 nodes and runs when an HTTP GET request hits its webhook URL. Along the way it connects Google Gemini Chat Model, Facebook Graph API, Slack and Google Sheets.
How it runs
Trigger: When an HTTP GET request hits its webhook URL.
- Code: runs custom JavaScript code
- Respond to Webhook: sends the response back to the webhook caller
- Respond to Webhook: sends the response back to the webhook caller
- If: checks a condition and branches into true / false
- If: checks a condition and branches into true / false
- Facebook Graph API: uses Facebook Graph API
- If: checks a condition and branches into true / false
- AI Agent: runs an AI agent, with model: Google Gemini Chat Model; memory: Simple Memory
- Story Mention (Slack): uses Slack
- If: checks a condition and branches into true / false
…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 (11)
- Webhook
n8n-nodes-base.webhook - AI Agent
@n8n/n8n-nodes-langchain.agent - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow - Facebook Graph API
n8n-nodes-base.facebookGraphApi - If
n8n-nodes-base.if - Slack
n8n-nodes-base.slack - Wait
n8n-nodes-base.wait - Google Sheets
n8n-nodes-base.googleSheets - Code
n8n-nodes-base.code - Respond to Webhook
n8n-nodes-base.respondToWebhook
From the author
Quick overview This workflow receives Instagram webhook events, generates public comment replies and optional follow-up DMs using Google Gemini, posts replies via the Facebook Graph API, and logs activity to Slack and Google Sheets. How it works 1. Receives a…