Automation library · Scheduling

Block daily salah windows in Google Calendar with Telegram

Started by an incoming Telegram message, and works across Google Calendar, Google Sheets and Telegram. 19 steps, 3 branches: a working afternoon to understand properly.

Medium

19 stepsMedium: a working afternoon
3Branches: places the flow splits
0Loops or waits
3Services it connects to

The flow

Starts it 2Logic 6Service 11

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

  1. 1Telegram TriggerTelegram triggerStarts it
  2. 2Error TriggerError triggerStarts it
  3. 3Validate the senderIfLogic
  4. 4Append row in sheetGoogle SheetsService
  5. 5Check if it's TextIfLogic
  6. 6Send The errorTelegramService
  7. 7Check for triggersIfLogic
  8. 8Send an actionTelegramService
  9. 9Get prayer timesHttp RequestService
  10. 10Map Prayer dataSetLogic
  11. 11Code in JavaScriptCodeLogic
  12. 12Book for FajrGoogle CalendarService
  13. 13Book for DuhrGoogle CalendarService
  14. 14Book for AsrGoogle CalendarService
  15. 15Book for MaghribGoogle CalendarService
  16. 16Book for IshaGoogle CalendarService
  17. 17Map outputsSetLogic
  18. 18Store Prayer BookingsGoogle SheetsService
  19. 19Send the messageTelegramService

How it's built

Starts on
An incoming Telegram message
Steps
19, with 3 branches
Size
Medium: a working afternoon
Connects to
Google Calendar, Google Sheets, Telegram
Model
None. This is plumbing, not judgement

Questions

What does it need to run?

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

What starts it?

It starts on an incoming Telegram message.

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?

Plan an afternoon. 19 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 19 steps before you point it at anything that matters.