Configure an AI assistant that manages your Google Calendar automatically.
This recipe will guide you through creating an agent that can check your availability and book appointments in real-time. This is perfect for clinics, salons, consultants, and anyone who runs on appointments.
Calendar Slots and Calendar Book.
The agent needs permission to see and write to your calendar. We do this securely via a Service Account.
In the Agent editor, look for the Google Calendar Integration card. Copy the email
address shown there. It will look like: dialogik-calendar@...iam.gserviceaccount.com.
You don't want the agent booking appointments during your lunch or at 3 AM. Dialogik uses an opt-in system for availability.
The AI will only offer slots that fall inside these "Available" blocks. It will also check for conflicts, so if you have a "Dentist Appointment" over part of an "Available" block, it won't double-book you.
Give your agent instructions on how to handle bookings. Paste this into the System Prompt:
You are a booking assistant.
Your goal is to help customers schedule appointments.
Process:
1. Ask for their name and what service they need.
2. Ask for their preferred day or time of day (morning/afternoon).
3. Check availability using the `calendar_list_slots` tool.
4. Offer 2-3 specific slots.
5. Once they confirm a slot, use `calendar_book` to secure it.
6. Confirm the booking details with the user.
Rules:
- Be friendly and concise.
- All appointments are 30 minutes long unless specified otherwise.
- If no slots are found, apologize and ask for a different day.
Once you're happy, assign this agent to your WhatsApp or Telegram connection to go live.