Skip to main content

Block daily salah windows in Google Calendar with Telegram and IslamicAPI

Workflow preview

Workflow preview
100%
Block daily salah windows in Google Calendar with Telegram and IslamicAPI preview
Open on n8n.io

1. Workflow Overview

clients kept booking meetings during my prayer times. i'd either miss a prayer or scramble to reschedule. the problem wasn't the clients — it was that my calendar had no blocked windows for salah. ...

Best for

  • Personal Productivity automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.telegramtrigger, n8n-nodes-base.if, n8n-nodes-base.httprequest, n8n-nodes-base.set, n8n-nodes-base.code, n8n-nodes-base.googlecalendar, n8n-nodes-base.googlesheets, n8n-nodes-base.telegram

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Abdullahi Osman.

Original n8n.io source

1.1 Workflow description

Title
Block daily salah windows in Google Calendar with Telegram and IslamicAPI
Workflow name
Block daily salah windows in Google Calendar with Telegram and IslamicAPI

clients kept booking meetings during my prayer times. i'd either miss a prayer or scramble to reschedule. the problem wasn't the clients — it was that my calendar had no blocked windows for salah. i needed a way to block those times every day, automatically, without thinking about it.


what this does

i built this so i can send /salah to my Telegram bot and it instantly fetches today's prayer times from IslamicAPI (using the Egyptian General Authority of Survey method for Cairo), calculates a realistic time window for each prayer, blocks all five prayers directly in Google Calendar, logs everything to a Google Sheet, then sends me a confirmation message on Telegram with the exact time windows. prayer times shift daily — this accounts for that automatically.


what's inside

  • Telegram Trigger — listens for incoming messages from the bot
  • Validate the Sender — blocks anyone who isn't me from running this
  • Check if it's Text — filters out non-text messages like stickers or photos
  • Check for Triggers — only proceeds if the message is /salah
  • Send an Action — sends a typing indicator while the workflow runs
  • Get Prayer Times — fetches today's prayer times via IslamicAPI
  • Map Prayer Data — extracts and formats the raw API response
  • Code in JavaScript — calculates start and end windows per prayer
  • Book for Fajr / Dhuhr / Asr / Maghrib / Isha — creates five Google Calendar events
  • Map Outputs — bundles all calendar IDs and times into one object
  • Store Prayer Bookings — appends a row to Google Sheets for tracking
  • Send the Message — sends a formatted confirmation back to me on Telegram
  • Error Trigger — catches failures and logs them to a separate sheet

APIs used

  • IslamicAPI — fetches today's accurate prayer times by coordinates
  • Google Calendar — creates and holds the five prayer block events
  • Google Sheets — logs each booking run with full timestamps and event IDs
  • Telegram Bot API — receives the /salah command and sends the confirmation

estimated cost per run

free — IslamicAPI is free forever, Google and Telegram APIs have no per-call cost at this usage level.


Created by Gurey AI

other workflows i've built

more workflows coming soon — follow along


Need Help?

Email me with your questions my email or ask in the Forum! Happy Hacking!


1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Telegram Trigger

Type / Role
n8n-nodes-base.telegramTrigger - telegramTrigger
Config choices
Version 1.2

Block 2 - Validate the sender

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.3

Block 3 - Check if it's Text

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.3

Block 4 - Get prayer times

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.4

Block 5 - Map Prayer data

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 6 - Check for triggers

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.3

Block 7 - Code in JavaScript

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 8 - Book for Fajr

Type / Role
n8n-nodes-base.googleCalendar - googleCalendar
Config choices
Version 1.3

Block 9 - Book for Duhr

Type / Role
n8n-nodes-base.googleCalendar - googleCalendar
Config choices
Version 1.3

Block 10 - Book for Asr

Type / Role
n8n-nodes-base.googleCalendar - googleCalendar
Config choices
Version 1.3

Block 11 - Book for Maghrib

Type / Role
n8n-nodes-base.googleCalendar - googleCalendar
Config choices
Version 1.3

Block 12 - Book for Isha

Type / Role
n8n-nodes-base.googleCalendar - googleCalendar
Config choices
Version 1.3

Block 13 - Map outputs

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 14 - Store Prayer Bookings

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.7

Block 15 - Send the message

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 16 - Send an action

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 17 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 18 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 19 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 20 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 21 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 22 - Sticky Note5

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 23 - Sticky Note6

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 24 - Sticky Note7

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Showing the first 24 of 34 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Block daily salah windows in Google Calendar with Telegram and IslamicAPI
Complexity advanced
Nodes 34
Categories Personal Productivity
Author Abdullahi Osman
Published 18 Apr 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/15124/15124.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Block daily salah windows in Google Calendar with Telegram and IslamicAPI do?

clients kept booking meetings during my prayer times. i'd either miss a prayer or scramble to reschedule. the problem wasn't the clients — it was that my calendar had no blocked windows for salah. ...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Personal Productivity use case.