Library / AI Agents & Assistants
AI Agents & Assistants
Book home care assessments by phone with Vapi, Google Gemini and Google Calendar
When an API call/webhook arrives, it runs an AI agent with Google Gemini using SMTP Email, Google Calendar, Google Sheets.
What it does
## Book home care assessments by phone with Vapi, Google Gemini and Google Calendar ### How it works This workflow is the backend for a Vapi voice assistant that answers a home care agency's phone and books care assessments. It exposes two Vapi server tools as webhooks. The availability tool receives the caller's requested date, fetches that day's busy slots from Google Calendar, and has Google Gemini turn them into plain-language available times (Mon–Sat, 9am–5pm, 1-hour slots) that the voice agent reads back to the caller. The booking tool receives the confirmed details — client, contact, relationship, phone, email, postcode, care type, date and time — parses every Vapi payload format defensively, creates the calendar event, logs the enquiry to Google Sheets, emails a professional confirmation to the family, and returns a success message for the voice agent to speak. ### Setup steps - In your Vapi assistant, add two server tools pointing at this workflow's production webhook URLs: check_assessment_availability (argument: date) → the availability webhook, and book_care_assessment (arguments: client_name, contact_name, relationship, phone, email, postcode, care_type, date_and_time, notes) → the booking webhook. - Connect a Google Calendar credential and select your booking calendar in both calendar nodes; adjust the timezone if you are not in Europe/London. - Connect your Google Gemini credential on the chat model node. - Connect an SMTP credential (e.g. your workspace mailbox) on the email node, set the From address, and replace the agency name and footer in the email HTML. - Create a Google Sheet with headers: Timestamp, Client Name, Contact Name, Relationship, Phone, Email, Postcode, Care Type, Assessment Date, Notes, Status, and select it in the Sheets node. - Adjust working days, hours and slot length in the AI agent's system message if your assessment hours differ. ### Customization Adapt the assessment hours, booking fields, email branding and sheet columns to any appointment-based business — the same two-tool pattern works for clinics, salons, surveyors or trades call-outs.
The steps
- Receive Availability Request from Vapi
- Fetch Busy Slots from Google Calendar
- Format Busy Slots for AI
- Analyze Available Slots with AI
- Google Gemini Chat Model
- Return Availability to Vapi
- Receive Booking Request from Vapi
- Parse Vapi Booking Arguments
- Create Event in Google Calendar
- Send Confirmation Email
- Log Booking to Google Sheets
- Return Confirmation to Vapi
Similar automations
Calendar & SchedulingCheck availability and book Google Calendar appointments from Vapi voice calls15 stepsImage, Video & AudioShow NASA APOD and nearest asteroid data in Home Assistant dashboards9 stepsLead Generation & EnrichmentMarket and Book Restaurant Orders by VAPI Voice9 stepsLead Generation & EnrichmentResearch Leads and Place AI Phone Calls with Vapi10 steps