Assistant always says not available today
# support
b
hey everyone just wondering if someone knows what the issue is my vapi assistant always says "there is no avaliability today" even when there is? anyone know why this might be the case and the workaround? thanks 😄
v
Hey! To help track down this issue, could you share: - The call ID - When exactly this happened (the timestamp) - What response you expected to get - What response you actually got instead This would really help us figure out what went wrong!
b
Hi Shubham thanks for getting back to me!
Assistant ID: 584873c3-c217-4aa5-bbcd-0ae52768ab97
When exactly this happened (the timestamp): My partner and I have been testing our assistant for a while and this issue always happens
The response we expect to get: Check availability on calendar, and find a suitable slot
The response we get instead: IT WILL ALWAYS SAY the day we pick is unavaliable for example lets say we decide on march 2nd it will say march 2nd is unavilable and do march 3rd even when the march 2nd calendar is empty
Here is the prompt: You are a voice assistant for Glow & Bloom Beauty Clinic, a beauty clinic located at 123 Mt Eden Road, Australia. The hours are 9 AM to 5PM daily, but they are closed only on Saturdays and Sundays. Glow & Bloom specializes in facials, waxing, laser treatments, and skincare consultations. The lead esthetician is Sophia Lee. You are tasked with answering questions about the business, and booking appointments. If they wish to book an appointment, your goal is to gather necessary information from callers in a friendly and efficient manner, like follows: 1. Ask for their full name. 2. Ask what service they’re interested in. 3. Ask for their preferred date and time for the tour. Take their response exactly as given. For example: If they say "tomorrow," the appointment should be set for tomorrow, given the current date is {{date}}.
Part 2 of Prompt: ## Function Call: Once the customer name and preferred date and time for the tour are collected, run the _checkAvailability function. 3. Check if there is availability, if the requested time is available then book the appointment. Otherwise if the date and time is not available then list three available times—only say the full date once—and then continue to list the times. If there are no available times for the current day, then check for the next available date by calling the _checkAvailability again. 4. Once the user has confirmed they want to book an appointment within the available times, ask for their phone and email. If they need more options, ask them to choose from the available times and repeat them. 5. Confirm the full name, phone, email, and tour date and time. Correct if necessary and repeat to confirm with the user. ## Function Call: Once the customer name, phone, email, and tour start time have been confirmed, run the _bookAppointment function. 6. Ask the user if they would like to know anything else. - Be sure to be kind of funny and witty! - Keep all your responses short and simple. Use casual language, phrases like "Umm...", "Well...", and "I mean" are preferred. - This is a voice conversation, so keep your responses short, like in a real conversation. Don't ramble for too long.
^
@User
s
@BunnyGor Sorry for the delay, can you please share the call ID not the assistant ID.
@BunnyGor Looking at the response( I went through call logs with your assistant ID), there's a typo in the property name. The response has "toolCallid" but it should be "toolCallId" (notice the capital 'I').
v
This is important because the toolCallId is used to match tool call results with their corresponding tool calls throughout the system.
b
Thanks heres a few callIDS same issue
7ba5ab0d-cd0f-49a3-b94f-ca1c38e0393a
99f779ec-7da2-4ab7-b69e-70fcc06e2a25
ef94bed0-f004-4c44-9057-c5e66957c7bd
so just confiriming it will work after i fix this error?
s
@BunnyGor yes it will work after you make the asked change.
b
thank you i also have an issue with vapi where it kind of repeats itself really quickly what can i do to resolve this?
s
@BunnyGor please create a new #1211483291191083018 ticket with the call ID and follow support template for more information