Library / Calendar & Scheduling
Calendar & Scheduling
Find free calendar slots from Telegram using Google Calendar, OpenAI and Sheets
When something happens in a connected app, it manages calendar events with OpenAI / ChatGPT using Google Calendar, Google Sheets, Telegram.
What it does
## Free calendar slots, asked in plain language Send a Telegram message or a voice note like "when am I free next week?" and get back the actual gaps in your calendar, grouped by day. The design decision worth copying: the model parses, the code calculates. OpenAI is used for exactly one job, turning "next week for a lunch" into a date range and a set of time windows. Everything after that is plain JavaScript: - merge overlapping busy blocks - subtract them from each window - drop any remainder shorter than your minimum - drop time that has already passed today An LLM asked to do that arithmetic will produce slots that look plausible and are wrong, and a wrong free slot means a double booking. Date maths is mechanical, so it does not belong in a prompt. Read-only. It calls the Google Calendar freeBusy endpoint, which returns busy intervals and nothing else, so the workflow can never create, move or delete an event. Note that freeBusy needs resource: calendar, not the default event resource. Windows, not whole days. Nobody wants a list of every free minute. It answers within the windows you care about, set in Config and overridable per request, so "when am I free for dinner" only searches the evening.
The steps
- Ack Finding Slots
- Parse Request
- Normalize Range
- FreeBusy Check
- Compute Free Slots
- Build Availability Message
- Send Availability
- Log to Sheet
- Restore Ctx (Finding Slots)
- ⚙️ Config
- Telegram Trigger
- Voice note?
- Get Voice File
- Transcribe Voice
15 steps in total.
Similar automations
Calendar & SchedulingSuggest Meeting Slots by Email with OpenAI and Google Calendar8 stepsCalendar & SchedulingOffer and Book Google Calendar Appointment Slots126 stepsCalendar & SchedulingCheck availability and book Google Calendar appointments from Vapi voice calls15 stepsCalendar & SchedulingSchedule Meetings from Emails with OpenAI and Google Calendar17 steps