Calendars and Appointment Booking
Manage schedules, availability, and AI-powered appointment booking.
Calendars and Appointment Booking
Gravity Rail's calendar system helps you manage appointments, schedule meetings, and automate booking through AI workflows.
What are Calendars?
Calendars in Gravity Rail are scheduling tools where appointments can be booked. Each calendar has:
- Availability schedules - When the calendar is open for bookings
- Event types - Types of appointments that can be booked (e.g., "Hair Cut", "Doctor Visit")
- Permissions - Control who can view and book appointments
- AI integration - Let AI agents book appointments automatically
Creating a Calendar
- Go to Calendars
- Click Create Calendar
- Fill in the details:
- Name: What you'll call this calendar (e.g., "Dr. Smith's Office Hours")
- Description: Optional details about the calendar
- Timezone: The timezone for all appointments
- Color: A color to distinguish this calendar in views
- Default Availability: Choose when the calendar is initially available:
- Always Available - 24/7 bookings allowed
- Weekday Business Hours - Monday-Friday, 9am-5pm
- Always Unavailable - No bookings allowed (manual override only)
- Click Create Calendar
Setting Up Availability
After creating a calendar, configure when appointments can be booked:
Viewing Availability
- Open your calendar
- The calendar view shows:
- ๐ข Green blocks - Available time slots
- ๐ด Red blocks - Unavailable/blocked time
- Click any availability block to edit it
Creating Availability Schedules
- From your calendar, go to the Availability tab
- Click Add Schedule
- Configure the schedule:
- Name: "Office Hours", "Lunch Break", etc.
- Type: Available or Unavailable
- Recurrence:
- Once - Single date/time block
- Daily - Repeats every day
- Weekly - Repeats on specific days of the week
- Time: Start and end times
- Event Types (optional): Restrict which appointment types can be booked
- Click Save
Example Availability Setup:
Schedule: "Office Hours"
Type: Available
Recurrence: Weekly (Monday-Friday)
Time: 9:00 AM - 5:00 PM
Event Types: All
Schedule: "Lunch Break"
Type: Unavailable
Recurrence: Weekly (Monday-Friday)
Time: 12:00 PM - 1:00 PM
Creating Event Types
Event Types define the kinds of appointments that can be booked on your calendar:
- Go to Calendar Event Types
- Click Create Event Type
- Configure:
- Name: "30-Min Consultation", "Hair Cut", etc.
- Description: What this appointment includes
- Duration: How long the appointment takes (in minutes)
- Buffer Time: Time before/after for prep or cleanup
- Min/Max Attendees: How many people can attend
- Color: Visual identifier
- Click Create
Booking Appointments
Manual Booking
- Open the calendar
- Click on an available time slot
- Fill in the appointment details:
- Event Type: Choose from configured types
- Title: Brief description
- Attendees: Who will attend
- Description (optional): Additional details
- Location (optional): Where it will take place
- Click Create Event
AI-Powered Booking
Let AI agents book appointments automatically by connecting calendars to workflows:
1. Configure Task Calendar Access
- Go to your Workflows
- Open a workflow and edit a task
- Click the Calendars tab
- Click Choose... and select a calendar
- Set permissions using the toggle buttons:
- ๐๏ธโ๐จ๏ธ Free/Busy - AI can see if times are available
- ๐๏ธ Read - AI can view appointment details
- โ๏ธ Write - AI can book appointments
- ๐ Admin - AI has full calendar control
- Optionally select a specific Event Type (or leave as "All event types")
- Click Save
2. Grant Appropriate Permissions
Choose permissions based on what you want the AI to do:
For appointment scheduling:
- Select Write permission
- This allows the AI to:
- Check availability
- Find open time slots
- Book appointments
- Cancel appointments
For availability checking only:
- Select Free/Busy permission
- The AI can:
- See if times are available
- Suggest open slots
- But cannot book or modify
For viewing schedules:
- Select Read permission
- The AI can:
- Check availability
- List upcoming appointments
- View appointment details
- But cannot book or modify
3. Example: Appointment Booking Workflow
Scenario: Customer wants to book a doctor's appointment
Setup:
- Create a workflow called "Appointment Scheduler"
- Create a task with the system prompt:
You are a helpful appointment scheduling agent. Help patients book appointments with our doctors. Always check availability before suggesting times. Confirm all bookings with the patient. - In the Calendars tab:
- Select "Dr. Smith's Schedule"
- Set permission to Write
- Set event type to "Patient Consultation" (or "All event types")
- Save the task
Customer Conversation:
Customer: "I need to schedule an appointment"
AI: "I'd be happy to help you schedule an appointment!
Dr. Smith has availability next week.
Would Tuesday at 2pm or Thursday at 10am work better for you?"
Customer: "Tuesday at 2pm please"
AI: "Perfect! I've booked your appointment with Dr. Smith
for Tuesday, March 15th at 2:00 PM. You'll receive
a confirmation via SMS."
Calendar Permissions
Control who can access and modify your calendars:
Permission Levels
- None - Cannot see or access the calendar
- Free/Busy - Can only see if time slots are available (not event details)
- Read - Can view all event details
- Write - Can create and edit events
- Admin - Full control including calendar settings
Setting Permissions (TODO)
- Open your calendar
- Click Settings โ Permissions
- Add member roles and assign permission levels
- Click Save
Viewing Calendars
Calendar Views
Switch between different views using the view buttons:
- Day - Hourly breakdown of a single day
- Week - 7-day view with time slots
- Month - Traditional monthly calendar
- List - Chronological list of upcoming events
Filtering Events
- Click on an event to see full details
- Click availability blocks (green/red) to edit schedules
- Use the date navigation buttons to move forward/backward
Managing Appointments
Editing an Event
- Click on the event in the calendar
- Update the details
- Click Update Event
Canceling an Event
- Click on the event
- Click Cancel Event
- Optionally provide a cancellation reason
- Click Confirm Cancellation
Canceled events remain in the calendar with a "Cancelled" status for record-keeping.
Calendar Feeds (iCal Subscriptions)
Subscribe to your Gravity Rail calendars in external calendar apps like Google Calendar, Apple Calendar, or Outlook:
Generating a Feed URL
- Open your calendar
- Click Settings (gear icon)
- Scroll to iCal Feed Subscription
- Click Generate Feed Token
- Copy the feed URL
Subscribing in Google Calendar
- Copy your feed URL from Gravity Rail
- Open Google Calendar
- Click + next to "Other calendars"
- Select From URL
- Paste the feed URL
- Click Add calendar
Your Gravity Rail appointments will now appear in Google Calendar and update automatically.
Subscribing in Apple Calendar
- Copy your feed URL from Gravity Rail
- Open the Calendar app
- Go to File โ New Calendar Subscription
- Paste the feed URL
- Click Subscribe
- Choose update frequency and location
- Click OK
Subscribing in Microsoft Outlook
- Copy your feed URL from Gravity Rail
- Open Outlook Calendar
- Click Add Calendar โ From Internet
- Paste the feed URL
- Click OK
Security Note
โ ๏ธ Protect your feed URL - Anyone with the URL can view your calendar. If the URL is compromised:
- Open calendar settings
- Click Regenerate Token
- Update the subscription in your calendar app with the new URL
To completely disable feed access, click Revoke Token.
Common Use Cases
Healthcare Practice
Setup:
- Calendar: "Dr. Smith's Schedule"
- Availability: Mon-Fri, 9am-5pm (except 12pm-1pm lunch)
- Event Types:
- Initial Consultation (60 min)
- Follow-up Visit (30 min)
- Lab Results Review (15 min)
- Workflow: "Appointment Scheduler" with Write permission
Result: Patients can schedule appointments through SMS/chat, AI finds available slots, books appointments, and sends reminders.
Hair Salon
Setup:
- Calendars: One per stylist
- Availability: Tue-Sat, 10am-7pm
- Event Types:
- Haircut (45 min)
- Color (90 min, 30 min buffer)
- Styling (30 min)
- Public booking page (TODO)
Result: Customers can book online, choose their stylist, and receive confirmation texts.
Office Hours
Setup:
- Calendar: "Manager Office Hours"
- Availability: Thursday, 2pm-5pm (weekly)
- Event Type: One-on-One (30 min slots)
- Permissions: Employees can book
Result: Team members can book time with their manager, no double-booking, automatic Zoom links.
Tips
Availability Schedules
- Create recurring schedules for regular hours
- Use unavailable blocks for holidays, vacations, or breaks
- Set priority levels when schedules overlap (higher number = higher priority)
Event Types
- Add buffer time to prevent back-to-back appointments
- Set realistic durations based on actual appointment length
- Use clear, descriptive names
AI Integration
- Start with Free/Busy permission to test
- Use specific event types to prevent wrong bookings
- Include clear booking instructions in your task prompt
- Always verify bookings with the customer before confirming
Calendar Organization
- Use colors to differentiate calendars
- Descriptive names help users choose the right calendar
- Keep event type names simple and clear
Troubleshooting
"No available slots found"
- Check that availability schedules are configured
- Verify schedules aren't marked as "Unavailable"
- Ensure the date range includes future dates
- Check that event type is allowed on the calendar
"AI cannot book appointments"
- Verify task has Write permission (not just Read or Free/Busy)
- Check that calendar is selected in task's Calendars tab
- Ensure event type exists and is not restricted
"Calendar feed not updating"
- External calendar apps typically update every 15-60 minutes
- Try manually refreshing the subscription
- Verify feed token hasn't been revoked
"Booking conflicts"
- Check for overlapping events
- Verify availability schedules aren't conflicting
- Ensure buffer times aren't causing issues
Related
- Workflows โ Connect calendars to AI-powered booking workflows
- Abilities โ Configure calendar booking as an AI ability
- Phone & Voice โ Let callers book appointments by phone
- Actions โ Automate notifications when appointments are booked
Related Resources
Forms
Create structured data types to collect, store, and manage information through AI-powered conversations or manual entry.
Files
Upload, organize, and share documents, images, and files with folder hierarchies and access controls.
Labels
Organize members, chats, and files with color-coded tags for filtering, automations, and access control.
All Guides
Browse all available guides