AI Agent for Website v1.8.0
What's Changed
Added
- Google Calendar Integration: Allow users to book meetings after chat conversations
- OAuth 2.0 authentication with Google Calendar API
- Automatic availability detection using Google Calendar free/busy API
- Configurable business hours and working days
- Buffer time between appointments
- Days ahead booking limit
- Google Meet link generation for scheduled meetings
- Calendar invites sent to user's email
- New admin settings section "Scheduling" for calendar configuration
- Calendar booking modal in chat widget with step-by-step flow:
- Prompt to schedule after conversation ends
- Date/time slot selection with navigation
- Meeting details form (title, description)
- Booking confirmation
- REST API endpoints for calendar integration:
GET /gcalendar/auth-url- OAuth authorization URLPOST /gcalendar/disconnect- Disconnect accountGET /gcalendar/calendars- List available calendarsGET /gcalendar/slots- Get available time slotsPOST /gcalendar/create-event- Create calendar eventGET /gcalendar/status- Check integration statusPOST /settings/gcalendar- Save calendar settings
- Customizable prompt message for calendar booking suggestion
- Event title and description templates with placeholder support
- Calendly Integration: Easy scheduling via Calendly
- Support for popup widget, inline embed, and external link modes
- Customizable scheduling URL (user profile or specific event type)
- Pre-fill user info from chat session (name, email)
- Configurable prompt message and button text
- Widget appearance options (height, colors, hide event details/GDPR banner)
- Optional OAuth 2.0 connection for advanced features (event types)
- New Calendly admin settings in "Scheduling" section
- REST API endpoints for Calendly integration:
GET /calendly/auth-url- OAuth authorization URLPOST /calendly/disconnect- Disconnect accountGET /calendly/event-types- List event typesGET /calendly/status- Check integration statusPOST /settings/calendly- Save Calendly settings
Changed
- Enhanced chat widget flow to include calendar booking after rating
- Updated admin JavaScript with Google Calendar connection handlers
Full Changelog: ...v1.8.0