Calendar intergration not working on workflow
# support
w
I'm having errores while testing the workflow feature to automatically generate meetings with potential customers. Call id: 70f73e72-e7a3-4ac2-a3c9-b1b92f3164e1 Time: 1749634638795 Response expected: Scheduled meeting The response I received: Error from API "message\": \"input.attendees.map is not a function\" "function": { "name": "google_calendar_joaquin_create", "arguments": "{\n \"summary\": \"Consultation on AI solutions for real estate lead management\",\n \"timeZone\": \"EST\",\n \"endDateTime\": \"2023-10-04T11:15:00\",\n \"startDateTime\": \"2023-10-04T11:00:00\",\n \"attendees\": \"Guido@gmail.com\",\n \"calendarId\": \"primary\"\n}" } In this flow, probably I'll received only one email and not a list of persons.
Also, to consider, the availability tool is returning availabilituy in the past: { "id": "fad2ef7a", "type": "function", "function": { "name": "google_calendar_check_availability_joaquin", "arguments": "{\n \"startDateTime\": \"2023-10-03T16:00:00\",\n \"endDateTime\": \"2023-10-03T16:15:00\",\n \"timeZone\": \"EST\",\n \"calendarId\": null\n}" } }
c
For the availability tool to pull the correct date, make sure in the global prompt to insert the current time and date with variables:
Copy code
The current date and time is {{"now" | date: "%A, %B %d, %Y, %I:%M %p", "America/Los_Angeles"}}
For attendees, try to make it an array instead of a string value
w
Thanks! I'll try this :). Is there any reference in the documentation about this funtcion "now"? First time I see it
Any reference on where to find this things on the documentation will help me a lot
c
https://docs.vapi.ai/assistants/dynamic-variables#advanced-date-and-time-usage --> Date/Time variables The google calendar suggestion was from searching our codebase
Copy code
// From GoogleCalendarEventInput interface
attendees?: string[];
w
Thanks !!
c
No problem! Do you require any additional assistance?
w
No! This solve the issue I was having, thanks 🙂
c
Great! Feel free to reach out anytime for additional assistance :)
3 Views