@Fanfantulipan
Hello! I'm here to help you with your integration issues between VAPI and Google Calendar.
For Problem 1: Incorrect booking time, it seems like there might be an issue with time zone conversions. Here are a few steps you can take to troubleshoot this:
1. Double-check the time zone settings in both VAPI and Google Calendar to ensure they match.
2. Verify that the time sent in the payload from VAPI is in the correct time zone format.
3. Check if there's any time zone conversion happening in Make.com that might be altering the time.
For Problem 2: Random dates in the calendar, this could be due to a misconfiguration in the way the AI assistant is setting up the appointments. Here's what you can do:
1. Review the logic that the AI assistant uses to determine the dates for booking. Ensure it's using the correct parameters and not generating random dates.
2. Inspect the integration flow in Make.com to see if there's a step that's incorrectly processing the dates.
3. Check for any errors in the logs that might indicate why the random dates are being added.
Regarding the error message you've received ("Failed to map 'timeMax': Function 'addMinutes' finished with error! Invalid date."), it suggests there might be an issue with the date format being passed to the 'addMinutes' function. Ensure that the date format is valid and recognized by the function.
If you've checked all these and the problem persists, it might be helpful to look at the actual API requests being made and the responses received. If you're not sure how to do this or if you need further assistance, please ask support for more info on this.
Remember to keep sensitive information such as API keys and personal data secure when sharing details for troubleshooting.