Skip to content
FlowHubFluxonLab
C
Google Sheetsfree

Reply to Instagram comments with Groq, Telegram approval, and Google Sheets logging

by Emeladapted from n8n official workflow galleryUpdated Aug 2026
RequiresCCodeGoogle SheetsGoogle SheetsHTTP RequestHTTP RequestTelegramTelegram
Share Post Share
ScWhen Every 10 MinWhen Every 10 M…HRFetch Instagram MediaFetch Instagram…SOSplit Media DataHRFetch Media CommentsFetch Media Com…SeSet Media ContextSet Media Conte…SOSplit Comment ItemsSplit Comment I…FiExclude Self CommentsExclude Self Co…IfIf Comment Is NewIf Comment Is N…NOSkip Duplicate CommentSkip Duplicate …HRPost AI ReplySeSet Telegram & Sheets DataSet Telegram & …Send Telegram Approval RequestSend Telegram A…Append Pending CommentAppend Pending …IfCheck Reply In MessageCheck Reply In …NOSkip Non-reply MessageSkip Non-reply …SeSet Reply InformationSet Reply Infor…NOSkip Non-matchSwRoute by ApprovalRoute by Approv…HRPublish Reply on InstagramPublish Reply o…Mark Approved in SheetsMark Approved i…Mark Rejected in SheetsMark Rejected i…Read All Comment IDsRead All Commen…CoCompile Logged IDsCompile Logged …WaWait 3 SecondsScWhen Every 3 MinHRFetch Telegram UpdatesFetch Telegram …SOSplit Telegram UpdatesSplit Telegram …CoRetrieve Stored OffsetRetrieve Stored…CoStore New OffsetRead Pending RowsRead Pending Ro…CoFind Matching ApprovalFind Matching A…WaWait 4 Seconds123456789101112131415
1/5
FLOWS
STEPS · 15
Runs on a schedule

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 back to Instagram. How it works Runs every 10 minutes, reads existing comment IDs from Google Sheets, then fetches your 10 most recent Instagram media items and their comments via the Instagram Graph API. Filters out comments made by your own Instagram account and limits processing to recent comments. Skips any comment already logged in Google Sheets, and sends new comments (with the post caption as context) to Groq to generate a short draft reply. Sends the draft reply to a Telegram chat for approval and appends a “pending_review” row to Google Sheets with the Telegram message ID for tracking. Runs every 3 minutes, polls the Telegram Bot API for new updates, and keeps an offset so only new messages are processed. For Telegram messages that are replies to an approval request, matches the replied-to message ID to the pending row in Google Sheets and routes the decision.

Tags

n8nreference-onlygoogle-sheetstelegram
Connects
CCodesheetsGoogle SheetsWHTTP RequesttelegramTelegram
CategoryGoogle Sheets
Triggermanual
Complexityadvanced
Nodes32
AddedJun 27, 2026

Related workflows

See all Google Sheets
sheetsWtelegramtwilio
free

Add data from a photo to Google Sheets

Automatically adding expense receipts to Google Sheets with Telegram, Mindee API, Twilio, and n8n.

by isa024787bel
CsheetsW
free

Calculate Shopify variant prices from Google Sheets with Slack approvals

Quick overview Video Explanation: https://youtu.be/_geRatkc1kU?si=qALW_nrPrNB4THuO This workflow runs daily to calculate Shopify variant prices from Google Sheets COGS inputs, automatically updates qualifying prices in Shopify, and posts Slack alerts for changes that need manual approval; it also supports Slack-based approvals to apply a proposed price from a Slack thread. How it works Runs every day on a scheduled trigger. Reads product dependency/recipe data from Google Sheets and looks up the latest supplier prices in a second Google Sheets sheet. Calculates raw COGS, landed COGS (with hidden cost percentage), and a target-margin retail price for each Shopify variant. Checks the calculated price against thresholds and either updates the Shopify variant price via the Shopify Admin API or posts an approval-required alert to Slack. Posts a Slack confirmation message when a scheduled Shopify price update succeeds. Triggers on Slack reaction events, verifies an authorized Slack user approved the change, then fetches the Slack thread replies and extracts the variant ID and approved price. Updates the Shopify variant price with the extracted value and posts a final status message to Sl

by iamvaar
CsheetsW
free

Generate and score Google Maps leads with Gemini, Apify, and Google Sheets

Quick overview Youtube Video:https://youtu.be/NGruDecKxAg?si=ot9pj6IN4IoLstow This workflow takes a chat-based search request, scrapes matching businesses from Google Maps using Apify, scores and ranks them with Google Gemini, deduplicates against an existing Google Sheet by placeId, saves new leads to the sheet, and returns a formatted results message to the chat. How it works Receives a message from an n8n chat trigger containing the user’s Google Maps lead search request. Sends the request to Google Gemini to extract structured search parameters (business type, location, max results, and output mode). Calls an Apify Google Maps scraping actor with the extracted parameters and selects a clean set of lead fields from the results. Removes duplicate businesses based on Google Maps placeId and batches the remaining leads into a single list. Sends the lead list to Google Gemini to add a 0–100 score and short reason to each lead and returns them sorted by score. Checks the scored leads against existing rows in Google Sheets and filters out any placeId values that are already saved. Appends or updates the new leads in Google Sheets and returns a formatted ranked lead list back to the ch

by iamvaar