optimistic-gold•5mo ago
GHL Calendar booking problem
Dear Team! GHL Calendar Booking not working, wrong date request from VAP side. I'm connected to my GHL account through the native connection within VAPI. contact creation is working but calendar booking just failed. All crosshecked multiple times. What we found in the call log that VAPI something is wrong at converting the UNIX time request. Assistant know the current ime correctly but the UNIX request points back last year to 2024. I need your kind support to check where is the problem coming from and fix that. It seems this is something we can not influence. see photos enclosed. Thank you in advance.
CALL ID: ef7b35b4-d94a-41ec-859b-71220b7cbd1d


13 Replies
Suggestion:
Check your GoHighLevel tool configuration in Vapi and ensure the
Reference: GoHighLevel Tool Configuration Guide Source: - GoHighLevel Tool Configuration Guide
Check your GoHighLevel tool configuration in Vapi and ensure the
timeZone
field is set correctly (e.g., "America/New_York"
) and that all date/time values are generated using the current year. In your assistant's system prompt and tool metadata, explicitly format the date using the correct timezone. For example:
This helps ensure that UNIX timestamps correspond to the correct year and date. If the issue persists after confirming these settings, please contact Vapi support with your configuration details for further assistance.Reference: GoHighLevel Tool Configuration Guide Source: - GoHighLevel Tool Configuration Guide
⤵️ Mention @Vapi Support Bot for follow-ups 🐥
optimistic-goldOP•5mo ago
all crosschecked.. That's why i contact support here.
xenial-black•5mo ago
@Norbi AIBusiness you've got to give the agent the current date and time. add this to your system prompt:
The current date and time is: {{"now" | date: "%b %d, %Y, %I:%M %p", "America/Los_Angeles"}}
Change the timezone to your preferred location. That way, the agent has context on the current time and generate the correct request time for booking in the appointment
optimistic-goldOP•5mo ago
it is in the prompt. Defined as well in the tool section correctly...And in the call log on the photo i enclosed you can see as well Agent knows correctly the current date and time.
The LLM is generating wrong Timestamps i can not influence this in the prompt.. Any Developer from VAPI here to solve the issue?
Looking into it.
equal-aqua•4mo ago
@Norbi AIBusiness @hj.ong9
this is a classic prompting architecture failure. The user has provided date context but failed to bridge that context to function parameter requirements.
You need to explicitly mention how to convert the current date and time to the epoch timestamp and then how to pass it correctly to the tool. Also, you need to refer to where to look for the current date and time. That's why it's a classic prompting problem. Rework on your prompt to make it more explicit and deterministic in nature so that ALM can be instructed on how the insertion should work according to your requirements.
Below I am writing an example which is not perfect but you can take as a reference
example_for_refference
correct-apricot•4mo ago
@Norbi AIBusiness did this fix the problem, I am having a related issue I think
Hey @Ade, This ticket has been marked as solved, and as a result, you will no longer receive any further responses. Kindly create a new support ticket to escalate your inquiry.
correct-apricot•4mo ago
I see this ticket as unsolved
rare-sapphire•4mo ago
Try once more @Ade , we pushed couple of changes related to it.
and it should fix it.
conventional-tan•3mo ago
@Wes This helped me, and also, check if the time zones in the prompt, tools and calendar are the same, and ifnot, check if thats the problem. I just updated my prompt using the example that Shubham sent and it worked! Looks that we really need triple the careful and instructions for the AI be able to do it correctly
genetic-orange•3mo ago
I will be testing this week, thank you for the update
If you require additional support, please feel free to reach out.