The moment it happens
Add website bookings to Google Calendar with a Telegram alert
Bookings from your website go straight into your calendar when you are free, and you get a Telegram message for each one.
- Runs
- The moment it happens
- Apps
- Google Calendar, Telegram
- AI
- Optional
- Access
- calendar read+write; bot token
Send this to your assistant
Create a ClickRuntime automation: when my website posts a booking to my trigger link, check my Google Calendar is free, create the event and alert me on Telegram.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
A photographer takes session bookings through her website. She is often on a shoot with her phone in her bag, and bookings sit in her email until the evening, when she finds two clients have asked for the same Saturday morning.
Booking each request into the calendar as it arrives, only when the time is free, and pinging her on Telegram keeps her diary accurate and tells her about new work at a glance.
What you get out of it
Your calendar is always current
Bookings appear in your calendar within seconds, so the next client sees accurate availability and you never promise the same slot twice.
A quick ping, not another inbox
A short Telegram message is easy to read between jobs, where an email might wait until the evening.
Clashes caught straight away
If a request overlaps something already booked, you are told at once and can offer the client another time the same day.
Works with your existing site
Any booking form that can send its details to a link works, so there is no need to change your website builder.
How it works
What happens, step by step
When a client books on your website, the booking is sent to your ClickRuntime trigger link.
ClickRuntime checks your Google Calendar to see whether you are free at that time.
If you are, it creates the event in your calendar with the client's details.
You get a Telegram message about the new booking, or about the clash if the time was taken.
Before it runs live
- Connect Google Calendar
- Connect Telegram
- Paste your automation's link into the other app's webhook settings
What you get
Build your own
Need it to work differently?
Your own rules
Conditions, thresholds, filters and exceptions, written the way you'd explain them to a colleague.
Any number of apps
One automation can read from one app and update several others. Over 248 apps are ready, and anything with an API works too.
AI where it helps
Summaries, classification, extraction and drafts use ClickRuntime's built-in AI, with no extra key.
On a schedule or on each event
Runs as often as every 5 minutes, or the moment an app sends an event, and keeps track of what it already handled.
Changes you can ask for
- Act only on the items that match your own rules, and skip the rest
- Change what the AI looks for, or how it writes the result
- Add another app, for example also send it to Slack
- Combine it with other Google Calendar and Telegram steps into one automation
Under the hood
The code that runs this automation
from googleapiclient.discovery import build
from google.oauth2.credentials import Credentials
from clickruntime import on_event, credentials, http
CHAT_ID = "your-telegram-chat-id"
@on_event
def handle(event):
b = event.json
cal = build("calendar", "v3", credentials=Credentials(credentials.connection("google", "work")), cache_discovery=False)
busy = cal.freebusy().query(body={"timeMin": b["start"], "timeMax": b["end"], "items": [{"id": "primary"}]}).execute()
free = not busy["calendars"]["primary"]["busy"]
if free:
cal.events().insert(calendarId="primary", body={"summary": f"{b.get('service', 'Booking')}: {b['name']}",
"description": b.get("notes", ""), "start": {"dateTime": b["start"]}, "end": {"dateTime": b["end"]}}).execute()
text = f"{'New booking' if free else 'Clash, not booked'}: {b['name']} at {b['start'][:16].replace('T', ' ')}"
http.post(f"https://api.telegram.org/bot{credentials.secret('TELEGRAM_BOT_TOKEN')}/sendMessage",
json={"chat_id": CHAT_ID, "text": text})
return {"booked": free}FAQ
Common questions
What does the client see if the slot is taken?
Can I add travel time between bookings?
Which details are in the Telegram alert?
What permissions does it need?
Does it need AI?
How many runs does it use?
Can I change how it works?
Related
You might also like
Let customers book appointments through your Telegram bot
Customers message your Telegram bot, pick a free slot from buttons, and the booking appears in your Google Calendar.
See how it worksManage your Google Calendar by messaging a Telegram bot
Text your Telegram bot to add an event or ask what is on a given day, and it updates or reads your Google Calendar for you.
See how it worksGet a Telegram reminder before each meeting
A few minutes before each meeting you get a Telegram message with the time, the join link and a short prep note.
See how it worksKeep exploring
Set up “Add website bookings to Google Calendar with a Telegram alert” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.