have been trying to set up checkavailability and bookappointment for some time now. keep getting this error in pipedream. ai assistant is also giving error. dont know what it is.
Vapi helps developers build, test, and deploy voice agents at scale. We enable everything in between the raw models and production, including telephony, test suites, and real-time analytics.
I see, I had the same problem that I'm working on today. It seems like the LLM doesn't understand todays date. You can add it to the prompt. But then it sometimes hallucinates if the user asks for a date "next wednesday".
Seems like the LLM isn't too smart when calculating dates.
I found a work around by including this in the prompt: Date guide: Today: 2024-03-25 Monday: 2024-03-25 Tuesday: 2024-03-26 Wednesday: 2024-03-27 Thursday: 2024-03-28 Friday: 2024-03-29 Saturday: 2024-03-30 Sunday: 2024-03-31 Next Monday: 2024-04-01 Next Tuesday: 2024-04-02 Next Wednesday: 2024-04-03 Next Thursday: 2024-04-04 Next Friday: 2024-04-05 Next Saturday: 2024-04-06 Next Sunday: 2024-04-07
Yea should work. I am building something today so this hopefully gets automated before the call starts. @nikhil said its possible for inbound calls using this https://docs.vapi.ai/server_url#retrieving-assistants
I don't know what that means. it looks like it isn't using the correct format still. There was a 'Z' at the end of your setup params but not when the LLM inputs the dates. is that last 'Z' needed for a correct request?