Daily
Text clients to confirm tomorrow's appointments
Clients with an appointment tomorrow get a text, and their YES or NO reply updates the event in your Google Calendar.
- Runs
- Daily
- Apps
- Google Calendar, Twilio
- AI
- Optional
- Access
- calendar.events; Twilio send + number config
Send this to your assistant
Create a ClickRuntime automation: every day at 5pm, text everyone with an appointment in my Google Calendar tomorrow, using the phone number in the event description; when they reply YES or NO, mark the event confirmed or cancelled.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
Therapists, tutors and trainers who book clients straight into Google Calendar have no reminder system. No-shows cost them an hour each time, and a day-before call to everyone is a chore.
Texting each client from the calendar and updating the event when they reply shows at a glance who's confirmed and frees cancelled slots in time to offer them to someone else.
What you get out of it
Fewer no-shows
A text the day before reminds clients and gives them an easy way to cancel.
Your calendar shows who's coming
Event titles are updated with Confirmed or Cancelled.
Freed slots spotted early
Cancellations show up the evening before.
No booking system needed
It works from the calendar you already use.
How it works
What happens, step by step
Every afternoon it lists tomorrow's events in your Google Calendar.
It finds the client's phone number in each event's description.
Each client gets a text asking them to reply YES or NO.
When they reply, the event is marked Confirmed or Cancelled in your calendar.
Before it runs live
- Connect Google Calendar
- Connect Twilio
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
- Run it at a different time, more or less often, or only on weekdays
- 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 Twilio steps into one automation
Under the hood
The code that runs this automation
from google.oauth2.credentials import Credentials
from googleapiclient.discovery import build
from twilio.rest import Client
import re
from datetime import datetime, timedelta, timezone
from clickruntime import on_trigger, on_event, credentials, http, state
FROM = "+15005550006"
def sms(to, body):
return Client(credentials.secret("TWILIO_ACCOUNT_SID"), credentials.secret("TWILIO_AUTH_TOKEN")).messages.create(to=to, from_=FROM, body=body)
cal = lambda: build("calendar", "v3", credentials=Credentials(credentials.connection("google", "work")), cache_discovery=False).events()
@on_trigger
def run(event):
start = (datetime.now(timezone.utc) + timedelta(days=1)).replace(hour=0, minute=0)
items = cal().list(calendarId="primary", timeMin=start.isoformat(), timeMax=(start + timedelta(days=1)).isoformat(), singleEvents=True).execute()["items"]
for e in items:
for phone in re.findall(r"\+\d{8,15}", e.get("description", ""))[:1]:
sms(phone, f"Reminder: {e['summary']} tomorrow at {e['start']['dateTime'][11:16]}. Reply YES to confirm or NO to cancel.")
state.set(f"evt:{phone}", e["id"])
return {"events": len(items)}
@on_event
def handle(event):
f = event.json or {}
eid, answer = state.get(f"evt:{f.get('From')}"), (f.get("Body") or "").strip().upper()
if not eid or answer not in ("YES", "NO"):
return {"skipped": True}
label, colour = ("Confirmed", "10") if answer == "YES" else ("Cancelled", "11")
summary = cal().get(calendarId="primary", eventId=eid).execute()["summary"]
cal().patch(calendarId="primary", eventId=eid, body={"summary": f"[{label}] {summary}", "colorId": colour}).execute()
return {"event": eid, "status": label}FAQ
Common questions
Where should the phone number go?
What if they reply something else?
Does it change the event time?
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
Get today's schedule by text each morning
Every weekday morning you get a text listing today's events from your Google Calendar.
See how it worksText missed callers open times and book them by reply
Missed callers get a text with your next free times, and replying with a number books that slot in your Google Calendar.
See how it worksOffer cancelled appointments to your waitlist by text
When an appointment is cancelled, everyone on your waitlist is texted the open slot, and the first to reply YES gets booked.
See how it worksKeep exploring
Set up “Text clients to confirm tomorrow's appointments” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.