I have a scenario set up where:
A caller requests an appointment time.
If the requested time is available, the AI agent (via VAPI) books the appointment.
If the time is unavailable, it suggests similar available times.
However, I’m running into two main issues:
The scenario isn’t progressing past the filter applied after the “Make a Basic Auth Request” step.
When I check the error, it returns:
json
Copy code
{“statusCode”:401,“message”:“Invalid JWT”}
Despite this, I’m using my GoHighLevel (GHL) API key, which I have verified is correct.
Additionally, when the scenario attempts to find similar times, it sometimes suggests random times that aren’t actually available.
Could you help me understand:
Why the error mentions “Invalid JWT” when I’m using my API key?
What might cause the scenario to get stuck at this stage?
Why it’s returning unavailable times when suggesting similar options?