This message was deleted.
# ask-ai
s
This message was deleted.
t
Thanks for reaching out, Munim. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Could you please share a bit more about what you're hoping to achieve by integrating Calendly with LiveKit? For instance, are you looking to schedule LiveKit sessions directly through Calendly, or is there another specific way you'd like to use them together? I'm here to help you figure this out!
l
i want anyone to be able to book meeting search for available slots via talking with livekit agent
t
To help you enable booking meetings and searching for available slots via LiveKit, a great place to start is with the FrontDeskAgent example from the LiveKit Agents repository. This setup is designed to let users interact with an agent who can assist with booking meetings and checking availability in real-time. Here’s a friendly guide on how you can get this up and running: 1. Use the FrontDeskAgent Example: - This agent is capable of searching for available slots and scheduling appointments by integrating with calendars. 2. Calendar Integration Options: - FakeCalendar: A simple mock calendar you can use for testing. - CalComCalendar: Connects with [cal.com](https://cal.com) using its API for real, live calendar bookings. 3. Enable cal.com Integration: - You’ll want to set the
CAL_API_KEY
environment variable with your cal.com API key. - Once set, the agent will automatically sync available slots and create the event types you need. 4. Deployment: - Run the agent using the LiveKit Agent CLI. - It will connect to a LiveKit room and interact with participants, responding to voice or text to help search and book slots seamlessly. If you’d like, I’m here to walk you through the detailed steps for setting up the FrontDeskAgent or how to integrate with cal.com. Just let me know! Sources: examples/src/frontdesk/calendar_api.test.ts | examples/frontdesk/calendar_api.py
l
how it works, explain that, do we use tool call to hit the api endpoints of these third party calendly?
t
LiveKit's FrontDeskAgent works closely with third-party calendar APIs, especially cal.com, to help you manage booking meetings and checking availability smoothly. Let me walk you through how it all comes together: 1. Integration with cal.com: - The agent taps into cal.com’s REST API to show you available slots and help schedule appointments. - To get started, you’ll just need to set the
CAL_API_KEY
environment variable with your cal.com API key. 2. API Endpoints Used: -
/slots/
: This fetches available booking times for a specific event type. -
/bookings/
: Here, the agent schedules a new appointment by sending a POST request with the slot details you choose. 3. Initialization: - The agent authenticates with cal.com and makes sure there’s a predefined event type (
livekit-front-desk
) set up for 30-minute meetings. 4. Error Handling: - If the slot you picked isn’t available anymore, the agent kindly lets you know and suggests other times that might work. Right now, there isn’t direct support for Calendly integration, but the great news is the system is designed to be flexible. That means you can add other calendar systems by implementing the same interface used for cal.com. If you’d like, I’d be happy to guide you through setting up the cal.com integration or help you explore how to extend the system for other calendar APIs. Just let me know! Sources: examples/frontdesk/frontdesk_agent.py | LiveKit
l
listen, when customer says i want to book at 9:00 am tomorrow, you hit the bookings endpoint, but who does it? llm via tool calll right?
t
Yes, I’m happy to walk you through how it works when a customer says something like "I want to book at 9:00 AM tomorrow." Here’s the process step-by-step: 1. The LiveKit agent, which is powered by a Large Language Model (LLM), listens carefully and understands the user’s request. 2. The LLM then uses a special tool to connect with the calendar API (like cal.com) to make things happen. 3. More specifically, it sends a POST request to the
/bookings
endpoint of the calendar API, sharing all the important details like the chosen time slot and attendee info. 4. The API then takes over, either confirming the booking or letting us know if that time isn’t available. If there’s an issue, the agent kindly informs the user right away. This way, the LLM smoothly manages the conversation and handles the behind-the-scenes calls to the calendar, making the booking experience simple and seamless for everyone.