This workflow is built from 64 nodes. Here's what each one does:
| # | Node | Type | What it does |
|---|---|---|---|
| 1 | Telegram Trigger | Telegram Trigger | Starts the workflow when a Telegram message arrives. |
| 2 | CONFIG — Studio | Set | Holds editable configuration values — fill in your own settings here before activating. |
| 3 | Log Message — RECEIVED | Google Sheets | Reads from or writes to a Google Sheet — this workflow's log and state store. |
| 4 | Read Staff | Google Sheets | Reads from or writes to a Google Sheet — this workflow's log and state store. |
| 5 | Code — Check Staff Role | Code | Runs custom JavaScript to transform, filter, or compute data between steps. |
| 6 | IF — Is Staff? | IF | Splits the flow into branches based on a condition. |
| 7 | Switch — Admin Command | Switch | Routes items to one of several outputs based on rules. |
| 8 | Code — Parse Add Class | Code | Runs custom JavaScript to transform, filter, or compute data between steps. |
| 9 | Append Class — Classes Sheet | Google Sheets | Reads from or writes to a Google Sheet — this workflow's log and state store. |
| 10 | Telegram — Admin Class Added | Telegram | Sends you a Telegram message or alert. |
| 11 | Code — Parse Cancel Class | Code | Runs custom JavaScript to transform, filter, or compute data between steps. |
| 12 | Update Class — CANCELLED | Google Sheets | Reads from or writes to a Google Sheet — this workflow's log and state store. |
| 13 | Telegram — Admin Class Cancelled | Telegram | Sends you a Telegram message or alert. |
| 14 | Telegram — Admin Help | Telegram | Sends you a Telegram message or alert. |
| 15 | AI Agent — Understand Booking Intent | AI Agent | The AI brain — reasons over the task and calls tools to get it done. |
| 16 | OpenAI Chat Model — Intent | OpenAI Chat Model | The language model powering the AI agent. |
| 17 | Structured Output Parser — Intent | Structured Output Parser | Forces the AI to return clean, structured JSON instead of free text. |
| 18 | Switch — Route by Intent | Switch | Routes items to one of several outputs based on rules. |
| 19 | Read Classes — Schedule | Google Sheets | Reads from or writes to a Google Sheet — this workflow's log and state store. |
| 20 | Code — Build Schedule Reply | Code | Runs custom JavaScript to transform, filter, or compute data between steps. |
| 21 | Telegram — Send Schedule | Telegram | Sends you a Telegram message or alert. |
| 22 | Read Classes — Book | Google Sheets | Reads from or writes to a Google Sheet — this workflow's log and state store. |
| 23 | Read Bookings — Book | Google Sheets | Reads from or writes to a Google Sheet — this workflow's log and state store. |
| 24 | Code — Check Slot & Find Alternatives | Code | Runs custom JavaScript to transform, filter, or compute data between steps. |
| 25 | IF — Slot Free? | IF | Splits the flow into branches based on a condition. |
| 26 | Append Booking — CONFIRMED | Google Sheets | Reads from or writes to a Google Sheet — this workflow's log and state store. |
| 27 | Telegram — Confirm Booking | Telegram | Sends you a Telegram message or alert. |
| 28 | Telegram — Suggest Alternatives | Telegram | Sends you a Telegram message or alert. |
| 29 | Update Sheet — PENDING_SLOT | Google Sheets | Reads from or writes to a Google Sheet — this workflow's log and state store. |
| 30 | Read Bookings — Reschedule | Google Sheets | Reads from or writes to a Google Sheet — this workflow's log and state store. |
| 31 | Code — Find Customer Booking | Code | Runs custom JavaScript to transform, filter, or compute data between steps. |
| 32 | IF — Booking Found? | IF | Splits the flow into branches based on a condition. |
| 33 | Update Sheet — Cancel Old Booking | Google Sheets | Reads from or writes to a Google Sheet — this workflow's log and state store. |
| 34 | Read Classes — Reschedule | Google Sheets | Reads from or writes to a Google Sheet — this workflow's log and state store. |
| 35 | Read Bookings — Reschedule Check | Google Sheets | Reads from or writes to a Google Sheet — this workflow's log and state store. |
| 36 | Code — Check New Slot & Alternatives | Code | Runs custom JavaScript to transform, filter, or compute data between steps. |
| 37 | IF — New Slot Free? | IF | Splits the flow into branches based on a condition. |
| 38 | Append Booking — RESCHEDULED | Google Sheets | Reads from or writes to a Google Sheet — this workflow's log and state store. |
| 39 | Telegram — Confirm Reschedule | Telegram | Sends you a Telegram message or alert. |
| 40 | Telegram — Suggest Alternatives (Reschedule) | Telegram | Sends you a Telegram message or alert. |
| 41 | Update Sheet — PENDING_SLOT (Reschedule) | Google Sheets | Reads from or writes to a Google Sheet — this workflow's log and state store. |
| 42 | Telegram — No Booking Found | Telegram | Sends you a Telegram message or alert. |
| 43 | Update Sheet — HANDLED (Reschedule) | Google Sheets | Reads from or writes to a Google Sheet — this workflow's log and state store. |
| 44 | Read Bookings — Cancel | Google Sheets | Reads from or writes to a Google Sheet — this workflow's log and state store. |
| 45 | Code — Find Booking to Cancel | Code | Runs custom JavaScript to transform, filter, or compute data between steps. |
| 46 | IF — Booking Found? (Cancel) | IF | Splits the flow into branches based on a condition. |
| 47 | Update Sheet — CANCELLED | Google Sheets | Reads from or writes to a Google Sheet — this workflow's log and state store. |
| 48 | Telegram — Confirm Cancellation | Telegram | Sends you a Telegram message or alert. |
| 49 | Telegram — No Booking Found (Cancel) | Telegram | Sends you a Telegram message or alert. |
| 50 | Update Sheet — HANDLED (Cancel) | Google Sheets | Reads from or writes to a Google Sheet — this workflow's log and state store. |
| 51 | Telegram — Fallback Reply | Telegram | Sends you a Telegram message or alert. |
| 52 | Update Sheet — HANDLED | Google Sheets | Reads from or writes to a Google Sheet — this workflow's log and state store. |
| 53 | Merge — Booking Branches | Merge | Combines the outputs of two or more branches back into one flow. |
| 54 | Code — Build Booking Summary | Code | Runs custom JavaScript to transform, filter, or compute data between steps. |
| 55 | CONFIG — Notifications | Set | Holds editable configuration values — fill in your own settings here before activating. |
| 56 | Telegram — Booking Activity Digest | Telegram | Sends you a Telegram message or alert. |
| 57 | Daily 8AM Trigger | Schedule Trigger | Starts the workflow automatically on a schedule. |
| 58 | CONFIG — Reminders | Set | Holds editable configuration values — fill in your own settings here before activating. |
| 59 | Read Bookings — Reminders | Google Sheets | Reads from or writes to a Google Sheet — this workflow's log and state store. |
| 60 | Code — Filter Due Reminders | Code | Runs custom JavaScript to transform, filter, or compute data between steps. |
| 61 | Telegram — Send Reminder | Telegram | Sends you a Telegram message or alert. |
| 62 | Update Sheet — REMINDER_SENT | Google Sheets | Reads from or writes to a Google Sheet — this workflow's log and state store. |
| 63 | Code — Build Reminder Digest | Code | Runs custom JavaScript to transform, filter, or compute data between steps. |
| 64 | Telegram — Send Reminder Digest | Telegram | Sends you a Telegram message or alert. |