conscious-sapphire•4mo ago
? GHL External Tools Authorization:
Does anyone know, when connecting to GHL to use external tools, do we connect at the Agency Account Level or the Sub Account Level, as the documentation is not clear? https://docs.vapi.ai/tools/go-high-level
GoHighLevel Integration | Vapi
Connect your assistant to GoHighLevel for seamless appointment scheduling, contact creation, and availability checking.
20 Replies
Let me check with the team and get back to you.
conscious-sapphireOP•4mo ago
Did the team get back?
The ability to book appointments depends on the team sub-account that has access to the calendar.
conscious-sapphireOP•4mo ago
Let me re-phrase the question: When connecting to GHL which option do I choose here...

Based on the documentation and team feedback, you should select the sub-account that manages the calendar you want to use when connecting GHL external tools in Vapi. This is because appointment booking and contact management are tied to sub-account resources, not the agency level.
To confirm: Is the calendar you want to use for appointments managed under one of the listed sub-accounts? If so, please select that specific sub-account during the authorization step.
See GoHighLevel integration guide for more details.
Source:
- GoHighLevel Integration Guide
⤵️ Mention @Vapi Support Bot for follow-ups 🐥
Hi Ade, if the agency has access and authorization to the calendar for all of your sub-accounts, then choose agency and define different tools for your different agencies. If not, and/or you want to work specifically for an agency only, then choose sub-agency in the desired agency account. Let me know how it goes for you, or if you need further clarification.
conscious-sapphireOP•3mo ago
Which of these API plans does this require to work ok?

conscious-sapphireOP•3mo ago
We purchased the Advanced API - but on test it seems that we have to create seperate Vapi organizations and connect them with the GHL integration individually to the GHL sub account that has access to the particular calendar the assistant is booking for in order for the GHL tools to be authorized to create events in each GHL sub account. I hope that makes sense.
Your documentation does not point this out.
Hey @Ade thanks for bringing this up I am noting this down and will update our docs.
conscious-sapphireOP•3mo ago
@Shubham Bajaj Hi. I'm now having another problem, with get available times tool. Please check through the following and tell me what is wrong...
conscious-sapphireOP•3mo ago
It looks like a problem with the code side of things - I've tried everything possible via the prompt. I hope you can advise ASAP
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!
This would really help us figure out what went wrong!
conscious-sapphireOP•3mo ago
I created a new chat to show you as I didnt record the details you requested in the example abaove...
The call ID : a3f7fbb4-8fa8-43be-948e-7915bd911abc
When exactly this happened (the timestamp) : approx 17th June 20:14 BST
What response you expected to get: 4pm tomorrow is available (as the calendar is open)
What response you actually got instead (not available but gave alternative times, however the get free slots tools response was dated today 17th...
[
{
"type": "text",
"text": "{"2025-06-17":{"slots":["2025-06-17T16:30:00-04:00","2025-06-17T17:00:00-04:00","2025-06-17T17:30:00-04:00","2025-06-17T18:00:00-04:00","2025-06-17T18:30:00-04:00","2025-06-17T19:00:00-04:00","2025-06-17T19:30:00-04:00"]},"traceId":"40cc41f5-aa4f-4973-b625-1fe0387298cb"}"
}
]
This get free slots is super flakey.
Assistant ID - ff8c43a5-1b4d-487b-af65-9ba29efa1abc
Sometimes it works and others it doesn't for some reason.
I just made another test - call ID 3e816358-ed13-4b59-a599-5fc586920691
I asked it for 4pm tomorrow and it used today 17th in the get free slots tool call.
I asked why did you use the wrong timeframe
The response:
Thanks for pointing that out, Adrian. Let me clarify what happened:
When you requested “tomorrow at 4PM,” I should have checked for available slots specifically on June 18, 2025, between 8AM and 8PM Eastern. However, the availability I checked was for the correct date, but the results I received started at 5PM and later—meaning 4PM wasn’t actually available.
The epochs it searched were:
{
"calendarId": "qZZx8ZivAAa9nKYIQomY",
"timeZone": "America/New_York",
"startDate": 1750142400000,
"endDate": 1750228799000
}
ChatGPT says these are:
Time Range
Start Date (1750142400000) →
🕛 Tuesday, June 17, 2025 at 12:00 PM (EDT)
End Date (1750228799000) →
🕛 Wednesday, June 18, 2025 at 11:59:59 AM (EDT)
So it's completely wrong
This is sending me crazy, please it's urgent
@Shubham Bajaj Can you get back to me, please?
Hey @Ade,
I just wanted to let you know that I wasn’t able to get to your ticket today. I’ve been tied up with some investigations and other work, and couldn’t give it the attention it deserves. I’m really sorry for the delay, but I’ll make sure to look into it first thing tomorrow. Thanks for your patience and understanding!
I just wanted to let you know that I wasn’t able to get to your ticket today. I’ve been tied up with some investigations and other work, and couldn’t give it the attention it deserves. I’m really sorry for the delay, but I’ll make sure to look into it first thing tomorrow. Thanks for your patience and understanding!
conscious-sapphireOP•3mo ago
@Shubham Bajaj Is it first thing in the morning where you are yet?
fascinating-indigo•3mo ago
Looking into it.
fascinating-indigo•3mo ago
a3f7fbb4-8fa8-43be-948e-7915bd911abc
Could you please verify the call_id is correct? It appears to be incorrect.
fascinating-indigo•3mo ago
@Ade can you check again both of the shared call_ids please.
conscious-sapphireOP•3mo ago
It was Chat Shubham
Hey @Ade, Based on my analysis, here's what happened with your chat IDs:
## First Chat ID (`a3f7fbb4-8fa8-43be-948e-7915bd911abc`) - Timeline:
- June 17th, 2025 at 19:13 UTC
- Initial contact session for FaithWorks debt counseling
- User (Adrian) provided contact details and confirmed Eastern timezone
- No calendar availability tool calls were made in this session
- Result: This was just the introductory conversation, not where the calendar issue occurred
## Second Chat ID (`3e816358-ed13-4b59-a599-5fc586920691`) - Timeline:
- June 17th, 2025 at 19:38 UTC (25 minutes after first chat)
- Follow-up session where the actual calendar booking happened
- User requested "tomorrow at 4pm" (meaning June 18th at 4PM)
- Tool call made with INCORRECT timestamps:
-
endDate
: 1750228799000 = June 18th at 11:59 AM (cuts off before 4PM!)
- Should have been June 23rd end-of-day (6 days after current date per prompt)
- Result: Tool couldn't find 4PM slot because it wasn't even searching the right time range
could you try a few more chat IDs for me to confirm what is the issue? If you ask me now, the issue looks like it's a prompting issue, but I want to be double sure before I even suggest you some changes.
The assistant prompt may have a fundamental date calculation flaw. It instructs the AI to search a 7-day range but provides no guidance on epoch timestamp conversion. The AI is miscalculating "6 days after current date" and ending the search window too early.