Automation library · Alerts and monitoring

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

32 stepsLarge: read it before trusting it with anything live
3Branches: places the flow splits
2Loops or waits
2Services it connects to

The flow

Starts it 2Logic 19Service 11

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

  1. 1When Every 10 MinSchedule triggerStarts it
  2. 2When Every 3 MinSchedule triggerStarts it
  3. 3Read All Comment IDsGoogle SheetsService
  4. 4Wait 3 SecondsWaitLogic
  5. 5Read Pending RowsGoogle SheetsService
  6. 6Wait 4 SecondsWaitLogic
  7. 7Compile Logged IDsCodeLogic
  8. 8Fetch Instagram MediaHttp RequestService
  9. 9Retrieve Stored OffsetCodeLogic
  10. 10Split Media DataSplit OutLogic
  11. 11Fetch Telegram UpdatesHttp RequestService
  12. 12Fetch Media CommentsHttp RequestService
  13. 13Store New OffsetCodeLogic
  14. 14Set Media ContextSetLogic
  15. 15Split Telegram UpdatesSplit OutLogic
  16. 16Split Comment ItemsSplit OutLogic
  17. 17Check Reply In MessageIfLogic
  18. 18Exclude Self CommentsFilterLogic
  19. 19Set Reply InformationSetLogic
  20. 20Skip Non-reply MessageNo OpLogic
  21. 21If Comment Is NewIfLogic
  22. 22Find Matching ApprovalCodeLogic
  23. 23Post AI ReplyHttp RequestService
  24. 24Skip Duplicate CommentNo OpLogic
  25. 25Route by ApprovalSwitchLogic
  26. 26Set Telegram & Sheets DataSetLogic
  27. 27Publish Reply on InstagramHttp RequestService
  28. 28Mark Rejected in SheetsGoogle SheetsService
  29. 29Skip Non-matchNo OpLogic
  30. 30Send Telegram Approval RequestTelegramService
  31. 31Mark Approved in SheetsGoogle SheetsService
  32. 32Append Pending CommentGoogle SheetsService

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.