Videos » Vapi Voice Assistant Guide: Book Appointments with Cal.com and Make.com - [Part 2]

Vapi Voice Assistant Guide: Book Appointments with Cal.com and Make.com - [Part 2]

Posted by admin
We are using this in our HTTP request in the second version of the Make.com set up (instead of the one in the first video): https://cal.com/docs/enterprise-features/api/api-reference/slots#get-user-or-team-event-type-slots ⭐ChatGPT Completion System Prompt 👈 # Context: We have just asked the user when they would like to book a meeting. You will be provided with the current date and their response. # Instructions: You must output the start and end time in JSON format. # Output example: {"startTime": "2024-04-19T05:00:00.000", "endTime": "2024-04-19T23:00:00.000"} Rules: - The start time must be always 5am - The end time must be always 11pm - Always choose a date that is a head of the current time. Usually the closest day. The user prompt: This is the current date/time: {{now}} This is when the user would like to book: {{1.message.functionCall.parameters.times}} ⭐For the API slots 👈 GET request: https://api.cal.com/v1/slots Headers: Content-Type: application/json Parameters: apiKey: aoiwdjoawijdwaoji userId: your number from the first video startTime: endTime: eventTypeId: Not needed, but you could use it timeZone: Europe/Warsaw (or whatever it is for you) ⭐The set multiple variables tool👈 {{formatDate(31.startTime; "YYYY-MM-DD")}} ⭐The last ChatGPT set up and prompt👈 # DATA: {{84.json}} # CONTEXT: Each line with "time" is an available time slot, with hourly intervals between 7am and 11pm. # INSTRUCTIONS: You are an expert at extracting the busy slots from Henryk's calendar. Step 1: Take a note of the slots that are missing in the DATA. Step 2: If there are any missing, it mean that there is a busy slot. Step 3: Output ANY busy slots and three available slots. # OUTPUT EXAMPLE: Available: 7am, 11am and 5pm Busy: 8am and 6pm. # NOTE: Ignore the +02:00 completely. --------------------------------------------------------------------------------------- Hey everyone! In this video, I dive into a demo showing off what my AI assistant can do, followed by a detailed walkthrough of my Make.com setup. I cover different versions, how to handle booking slots, and the API documentation intricacies. Whether you're new to AI automation or looking to refine your setup, this video has got you covered. ----------------------------------------------------- 🤘Calendly: https://calendly.com/lunarisagency/discovery-call ------------------------------------------------------ 😁LinkedIn: https://www.linkedin.com/in/henryk-lunaris/ ------------------------------------------------------ 😊https://calendly.com/lunarisagency/lessons #AI #automation #airevolution #aiassistant #aijourney
Posted Jun 24
click to rate

Embed  |  126 views