Scheduling Appointments Based on Incoming Emails
Turn appointment-request emails into concrete bookable time slots with AI.
Polls Gmail for new emails. For each email, OpenAI extracts the patient name, doctor type, and requested date-time period. Free time slots are fetched from Google Calendar for that period, the workflow loops over them keeping only slots at least 45 minutes long, and OpenAI proposes a list of concrete 45-minute appointment options. The workflow replies to the original email with the suggestions.
- Email polling trigger
- AI extraction of appointment details into structured JSON
- Google Calendar free-slot lookup for the requested period
- Slot filtering by minimum duration
- AI appointment suggestion in a fixed text format
- Automatic reply to the original email
- Google Mail connection
- OpenAI API key
- Google Calendar connection with the target calendar
Clinics or service businesses that want to turn appointment-request emails into concrete bookable time slots automatically.
- Trigger: poll Gmail for new emails.
- Fetch the email from the trigger.
- Extract the patient name, doctor type, and requested date-time period with OpenAI.
- Get free time slots from Google Calendar for that period.
- Loop over the slots, keeping only those at least 45 minutes long.
- Read back the list of valid slots.
- Propose a list of 45-minute appointment options with OpenAI.
- Reply to the original email with the suggested appointments.
MoreSupportTemplates
When a new HubSpot ticket is created, fetches the ticket and uses OpenAI to rewrite its content into a clear, structured format. OpenAI then categorizes the ticket as tech or customer support, and a condition routes a Slack notification with the rewritten ticket to either the tech-team or sales-team channel.
On every new Gmail message, checks whether it arrived within business hours (Mon-Fri, 09:00-17:00 UTC). For emails received outside working hours, OpenAI classifies the urgency, the email is logged to a Google Sheet, and a condition branches: urgent emails get an AI-summarized internal Slack alert plus an urgent auto-reply, while non-urgent emails get an AI-generated helpful auto-reply.