Reply to Instagram comments with Groq, Telegram approval, and Google Sheets logging
Ready for 3.0What this workflow does
This workflow has 32 nodes and runs on a schedule (every 10 minutes) (plus 1 other trigger). Along the way it connects Telegram and Google Sheets. It also calls graph.facebook.com, api.telegram.org and api.groq.com over HTTP.
How it runs
Trigger: On a schedule (every 10 minutes) (plus 1 other trigger).
- Read All Comment IDs (Google Sheets): uses Google Sheets
- Wait: waits 3 seconds
- Read Pending Rows (Google Sheets): uses Google Sheets
- Wait: waits 4 seconds
- Compile Logged IDs (Code): runs custom JavaScript code
- Fetch Instagram Media (HTTP Request): calls graph.facebook.com
- Retrieve Stored Offset (Code): runs custom JavaScript code
- Split Media Data (Split Out): splits a list into separate items
- Fetch Telegram Updates (HTTP Request): calls api.telegram.org
- Fetch Media Comments (HTTP Request): calls an HTTP API
…plus 17 more steps. See the full node list below.
Services it uses
HTTP calls to: graph.facebook.com, api.telegram.org, api.groq.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 (12)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - HTTP Request
n8n-nodes-base.httpRequest - Split Out
n8n-nodes-base.splitOut - Edit Fields (Set)
n8n-nodes-base.set - Filter
n8n-nodes-base.filter - If
n8n-nodes-base.if - No Operation, do nothing
n8n-nodes-base.noOp - Telegram
n8n-nodes-base.telegram - Google Sheets
n8n-nodes-base.googleSheets - Switch
n8n-nodes-base.switch - Code
n8n-nodes-base.code - Wait
n8n-nodes-base.wait
From the author
Quick Overview This workflow monitors new Instagram comments, generates a draft reply with Groq (OpenAI-compatible chat completions), sends it to Telegram for YES/NO approval, and logs the decision in Google Sheets before optionally posting the approved reply…