Automation library · Research and reporting

Send GPT-4 Telegram polls to multiple groups

Started by a clock, and works across Email, Google Sheets and Telegram. It hands the judgement calls to OpenAI. 18 steps, 1 loop or waits: a working afternoon to understand properly.

MediumCalls a model: OpenAI

18 stepsMedium: a working afternoon
0Branches: places the flow splits
1Loop or waits
3Services it connects to

The flow

Starts it 1Model 2Logic 7Service 8

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

  1. 1Poll Schedule TriggerSchedule triggerStarts it
  2. 2GPT-4o ModelLm Chat Open AiModel
  3. 3Load Topic Queue from SheetsGoogle SheetsService
  4. 4GPT-4 Poll Question GenerationAgentModel
  5. 5Select Highest Priority TopicCodeLogic
  6. 6Validate Poll Quality and SafetyCodeLogic
  7. 7Load Telegram Group RegistryGoogle SheetsService
  8. 8Split Groups for Parallel DeploySplit In BatchesLogic
  9. 9Send Poll to Telegram GroupTelegramService
  10. 10Send Context Message with HashtagsTelegramService
  11. 11Collect Deploy Result Per GroupCodeLogic
  12. 12Merge All Group ResultsMergeLogic
  13. 13Build Analytics SummaryCodeLogic
  14. 14Log Analytics to Google SheetsGoogle SheetsService
  15. 15Send Admin Telegram NotificationTelegramService
  16. 16Send Error Alert Email on FailuresEmail SendService
  17. 17Update Topic Queue, Mark UsedGoogle SheetsService
  18. 18Build Final Deployment ReportCodeLogic

How it's built

Starts on
A clock
Steps
18, 1 loop or waits
Size
Medium: a working afternoon
Connects to
Email, Google Sheets, Telegram
Model
OpenAI

Questions

What does it need to run?

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

What starts it?

It starts on a clock.

Does it use AI?

Yes. It calls OpenAI. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Plan an afternoon. 18 steps is enough that you should read each one before running it.

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 18 steps before you point it at anything that matters.