Skip to content

The moment it happens

Confirm bookings by Gmail and tell your team in Teams

When a client books through your web form, they get a confirmation email from your Gmail and your team gets a message in Teams.

Runs
The moment it happens
Apps
Gmail, Microsoft Teams
AI
Not needed
Access
gmail.send; ChannelMessage.Send

Send this to your assistant

Create a ClickRuntime automation: when my booking form is submitted, email the client a confirmation from my Gmail and post the booking to our Teams channel.

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 small accountancy practice takes consultation bookings through a form on its website. Clients wonder whether the booking went through until someone replies by hand, and colleagues in the office do not know who is coming in until they check a shared inbox.

This automation sends the client a confirmation from your own Gmail address the moment they book, and posts the booking to your Teams channel. The client is reassured and the team knows what is coming.

What you get out of it

  • Clients know their booking worked

    An immediate confirmation from a real address removes doubt and repeat bookings. It also gives the client an email to reply to with questions.

  • Sent from your own address

    The email comes from your Gmail, not a generic sender, so it reaches the inbox and looks like it came from you. Replies land in your mail as usual.

  • The office is kept in the loop

    Each booking is posted to Teams with the name and time. Whoever prepares the room or the file knows in advance.

  • No manual replies

    Nobody has to watch the form and type the same confirmation each time. Evening and weekend bookings are confirmed just as quickly.

How it works

What happens, step by step

  1. When a client submits your booking form, ClickRuntime receives the details straight away.

  2. It sends the client a confirmation email from your Gmail address.

  3. It posts the client's name and booked time to your Teams channel.

  4. Each booking is handled once, even if the form sends it twice.

Before it runs live

  • Connect Google through your own Google app (a one-time, 10-minute setup), so it works with your own Gmail
  • Connect Microsoft Teams
  • Paste your automation's link into the other app's webhook settings

What you get

RunsThe moment it happens
Confirm bookings by Gmail and tell your team in Teamsjust nowSucceeded
Teams · Front desk📅 Northwind Bakery booked for Tue 21 Oct, 10:30

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
  • Add an AI step, for example to summarize, sort or draft a reply
  • Add another app, for example also send it to Slack
  • Combine it with other Gmail and Microsoft Teams 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.
meeting_requests_email_confirmation_plus_teams_notice.pyexample
import base64
from email.message import EmailMessage
from google.oauth2.credentials import Credentials
from googleapiclient.discovery import build
from clickruntime import on_event, credentials, http, state

TEAM_ID, CHANNEL_ID = "your-team-id", "your-channel-id"

@on_event
def handle(event):
    if state.get(f"done:{event.event_id}"):
        return {"skipped": "duplicate"}
    b = event.json or {}
    msg = EmailMessage()
    msg["To"], msg["Subject"] = b["email"], f"Your booking on {b.get('time', '')} is confirmed"
    msg.set_content(f"Hi {b.get('name', '')},\n\nThanks for booking. We look forward to seeing you on {b.get('time', '')}.\n\nReply to this email if anything changes.")
    gmail = build("gmail", "v1", credentials=Credentials(credentials.connection("google", "work")), cache_discovery=False)
    gmail.users().messages().send(userId="me", body={"raw": base64.urlsafe_b64encode(msg.as_bytes()).decode()}).execute()
    http.post(f"https://graph.microsoft.com/v1.0/teams/{TEAM_ID}/channels/{CHANNEL_ID}/messages",
              headers={"Authorization": f"Bearer {credentials.connection('microsoft', 'work')}"},
              json={"body": {"content": f"📅 {b.get('name', 'New client')} booked for {b.get('time', '?')}"}}).raise_for_status()
    state.set(f"done:{event.event_id}", True)
    return {"confirmed": True}

FAQ

Common questions

Can I change the confirmation wording?
Yes. The subject and text of the email can say whatever you like, including directions, what to bring, or a link to reschedule.
What does the form need to send?
At least the client's name, email address and the booked time. Other fields can be included in the Teams message.
Does it create a calendar event?
No, it confirms by email and notifies the team. Calendar entries can be added as a separate step if you need them.
What permissions does it need?
gmail.send; ChannelMessage.Send. Nothing else in your accounts is used.
Does it need AI?
No. It runs without AI, so it doesn't use your plan's 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 “Confirm bookings by Gmail and tell your team in Teams” from your assistant

Copy the prompt above, or connect your assistant first. Free plan, no credit card.