Vapi is telling my customers there are no times av...
# support
c
Please insert this code snippet anywhere into your assistant prompt to provide correct date and times. Modify the timezone as needed:
Copy code
The current date and time is {{"now" | date: "%A, %B %d, %Y, %I:%M %p", "America/Los_Angeles"}}
More information on this can be found on the documentation: Looking at the logs, the date and time it checked for was : Wednesday, November 29, 2023 12:00:00 AM
a
Thank you
Would it be better to communicate here or via email? I just tried again on call 76a62d61-f18f-49dc-9451-f7b1fa11d928 and it had the same issue
c
We can continue communication here. Thanks for the call id. We will review it and get back to you shortly
a
Thanks!
c
Hello, We are sorry for the delay and we really appreciate your patience and kind understanding. We are still looking into it and will get back with you.
a
Thank you, can yo please just implement the solution and do your own test call to see if its working please?
c
Try using this in your prompt: When calling `get_free_slots`: Step 1 – Parse target date from user request Example: “Tuesday at 3 PM” → May 27, 2025 Step 2 – Convert to epoch ms for full day - `startDate`: May 27, 2025 at 00:00 (epoch ms) - `endDate`: May 27, 2025 at 23:59:59 (epoch ms) Step 3 – Call tool with calculated values
Copy code
{
  "calendarId": "w02SZbEtgyKbXHfr9l2O",
  "timeZone": "Pacific/Auckland",
  "startDate": 1748284200000,
  "endDate": 1748370599999
}
Critical – Always recalculate fresh timestamps for each request. Never reuse old values like
1717036800000
.
a
Still not working
c
Please provide the latest call id so we can check the logs. Also please use GPT 4o latest cluster as the LLM as it improves the date calculation. In the meantime, we will create a GHL account and test this for ourselves
a
3b90a84e-8a98-4b62-92ee-c29904be4bf8 Now it has the time wrong, still can't book an appointment. Schedule is active 8am to 4pm CST every day (iul.org/schedule) if you want to check
This one didn't say any slot wsa available at all: 551bcfd0-507e-449c-8b18-784046ce4521
c
Thank you for providing that information. We will review the details and get back to you shortly with an update
h
I’m having same issues
c
It appears that the appointment was attempted to be booked at the time specified, but encountered a 400 error:
Copy code
{
  "id": "call_5fFbdzOpYxcI772GkxM4DKYp",
  "type": "function",
  "function": {
    "name": "create_appointment",
    "arguments": "{\n  \"calendarId\": \"w02SZbEtgyKbXHfr9l2O\",\n  \"title\": \"Appointment with Alex Jones\",\n  \"startTime\": \"2025-09-08T17:00:00-05:00\",\n  \"endTime\": \"2025-09-08T17:30:00-05:00\",\n  \"contactId\": \"alexjones@gmail.com\"\n}"
  }
}
Please try to reduce the amount of fields you are providing the tool to the absolute necessary datapoints in order to verify that the tool can function.
a
I dont understand what that means
c
Please only pass the minimum required fields to the tool. Start with just the essential data points needed to confirm the tool works as expected. Once it’s verified, you can gradually add more fields if necessary.
a
Just fix it, PLEASE. It's been so so long
c
We kindly ask that you refine the input and limit the fields you are providing to only the essential datapoints. This will help ensure the tool functions properly and can be verified more effectively.
3 Views