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.
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
When a client submits your booking form, ClickRuntime receives the details straight away.
It sends the client a confirmation email from your Gmail address.
It posts the client's name and booked time to your Teams channel.
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
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
- 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
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?
What does the form need to send?
Does it create a calendar event?
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
Announce new feed items in Teams and by email
When a new article or product appears in your RSS feed, it is posted to your Teams channel and emailed to your subscriber list.
See how it worksPost new orders and sign-ups to Slack
When something happens in your shop, app or form, the details land in the right channel straight away.
See how it worksBook appointments only when you're free
Booking requests are accepted only for free slots within your hours, and land on your calendar with the attendee.
See how it worksKeep exploring
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.