# Reply to Instagram comments with Groq and Telegram: n8n workflow

> Started by a clock, and works across Google Sheets and Telegram. 32 steps, 3 branches, 2 loops or waits: large, and worth reading before you trust it with...

Source: https://millionrounds.com/workflow/reply-to-instagram-comments-with-groq-and-telegram (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Alerts and monitoring](https://millionrounds.com/workflows?category=Alerts+and+monitoring#library)

# Reply to Instagram comments with Groq and Telegram

Started by a clock, and works across Google Sheets and Telegram. 32 steps, 3 branches, 2 loops or waits: large, and worth reading before you trust it with anything live.

Large

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Freply-to-instagram-comments-with-groq-and-telegram)

**32 steps** Large: read it before trusting it with anything live

**3** Branches: places the flow splits

**2** Loops or waits

**2** Services it connects to

## The flow

Starts it 2 Logic 19 Service 11

The steps in the order they run, from what starts it.

- 1 **When Every 10 Min** Schedule trigger *Starts it*
- 2 **When Every 3 Min** Schedule trigger *Starts it*
- 3 **Read All Comment IDs** Google Sheets *Service*
- 4 **Wait 3 Seconds** Wait *Logic*
- 5 **Read Pending Rows** Google Sheets *Service*
- 6 **Wait 4 Seconds** Wait *Logic*
- 7 **Compile Logged IDs** Code *Logic*
- 8 **Fetch Instagram Media** Http Request *Service*
- 9 **Retrieve Stored Offset** Code *Logic*
- 10 **Split Media Data** Split Out *Logic*
- 11 **Fetch Telegram Updates** Http Request *Service*
- 12 **Fetch Media Comments** Http Request *Service*
- 13 **Store New Offset** Code *Logic*
- 14 **Set Media Context** Set *Logic*
- 15 **Split Telegram Updates** Split Out *Logic*
- 16 **Split Comment Items** Split Out *Logic*
- 17 **Check Reply In Message** If *Logic*
- 18 **Exclude Self Comments** Filter *Logic*
- 19 **Set Reply Information** Set *Logic*
- 20 **Skip Non-reply Message** No Op *Logic*
- 21 **If Comment Is New** If *Logic*
- 22 **Find Matching Approval** Code *Logic*
- 23 **Post AI Reply** Http Request *Service*
- 24 **Skip Duplicate Comment** No Op *Logic*
- 25 **Route by Approval** Switch *Logic*
- 26 **Set Telegram & Sheets Data** Set *Logic*
- 27 **Publish Reply on Instagram** Http Request *Service*
- 28 **Mark Rejected in Sheets** Google Sheets *Service*
- 29 **Skip Non-match** No Op *Logic*
- 30 **Send Telegram Approval Request** Telegram *Service*
- 31 **Mark Approved in Sheets** Google Sheets *Service*
- 32 **Append Pending Comment** Google Sheets *Service*

## How it's built

- **Starts on:** A clock
- **Steps:** 32, with 3 branches, 2 loops or waits
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Google Sheets, Telegram
- **Model:** None. This is plumbing, not judgement

## Questions

What does it need to run?

An n8n account, plus your own Google Sheets and Telegram accounts. You connect your own accounts after importing it; none are included.

What starts it?

It starts on a clock.

Does it use AI?

No. Every step is fixed logic or a call to a service, so it does the same thing every time.

How long does it take to set up?

Take your time. At 32 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 32 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Freply-to-instagram-comments-with-groq-and-telegram)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Google Sheets](https://millionrounds.com/workflows?service=Google+Sheets#library)[Telegram](https://millionrounds.com/workflows?service=Telegram#library)

## Workflows like it

Also alerts and monitoring, with the same services where possible, closest in size first.

- [**Automate delivery confirmation with Telegram Bot** 32 steps · Gmail, Google Drive](https://millionrounds.com/workflow/automate-delivery-confirmation-with-telegram-bot)
- [**Receive Meta Ads ad account webhooks, log** 32 steps · Google Sheets, Slack](https://millionrounds.com/workflow/receive-meta-ads-ad-account-webhooks-log)
- [**Automate ESG carbon monitoring and strategy execution** 32 steps · calls a model · Email, Google Sheets](https://millionrounds.com/workflow/automate-esg-carbon-monitoring-and-strategy-execution)
- [**Monitor and optimize carbon emissions for ESG with OpenAI** 32 steps · calls a model · Email, Google Sheets](https://millionrounds.com/workflow/monitor-and-optimize-carbon-emissions-for-esg-with-openai)
- [**YouTube channel monitor with Video Stats** 32 steps · calls a model · Google Sheets](https://millionrounds.com/workflow/youtube-channel-monitor-with-video-stats)
- [**Automate PPOB business operations with Telegram Bot** 33 steps · Telegram](https://millionrounds.com/workflow/automate-ppob-business-operations-with-telegram-bot)
