Skip to content

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.

Paste it into your assistant. It tells you what it will send or change before it runs live.

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

  1. When a client books on your website, the booking is sent to your ClickRuntime trigger link.

  2. ClickRuntime checks your Google Calendar to see whether you are free at that time.

  3. If you are, it creates the event in your calendar with the client's details.

  4. 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

RunsThe moment it happens
Add website bookings to Google Calendar with a Telegram alertjust nowSucceeded
Telegram · BookingsNew booking: Family portrait for Morgan (Acme) at 2026-06-14 10:00

Build your own

Need it to work differently?

This template is a starting point. Copy the prompt and change it, or describe a different automation from scratch, with your own conditions, more apps or an AI step. Your assistant writes it, tests it and runs it on ClickRuntime.
  • 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

This is the Python script that runs each time the automation starts. Your AI assistant writes it for you when you send the prompt, and you allow each step in your assistant. To change how the automation works, describe the change to your assistant and it updates the script for you. For every function it can use, see the script reference.
website_bookings_into_calendar_with_telegram_alert.pyexample
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?
Your website receives a reply saying the time is not available, and it can show that to the client. You also get a Telegram message about the clash.
Can I add travel time between bookings?
Yes. A buffer before and after each booking can be checked, so back-to-back sessions in different places are not accepted.
Which details are in the Telegram alert?
The client's name, the date and time, and any notes from the booking form, such as the type of session.
What permissions does it need?
calendar read+write; bot token. Nothing else in your accounts is used.
Does it need AI?
No, but you can ask for an AI step (for example a summary). It then uses ClickRuntime's built-in AI allowance.
How many runs does it use?
One run for each event the app sends.
Can I change how it works?
Yes. Describe the change to your AI assistant, for example a different schedule, channel or filter. It updates the automation, tests it and tells you what changed.

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.