Return Google Calendar (GC) events for a single day or date range based on the user’s request in Voiceflow.
What is the problem & what have you tried?
When I test in Voiceflow for a single date it outputs events from the first date on the calendar (when the calendar was first created). I have a filter for single date and one for date range. The GC module output shows all events ever created. In addition, the wrong date is being outputted in the Make webhook. I set up a text aggregator to see what date is being returned and it’s incorrect i.e. the request in Voiceflow is for today and what is outputted is a random day in the past. I am not a developer so I have been relying on Voiceflow’s chatbot support and Make.
Here’s an example of how you can use this function:
{{ parseDate(1.userStartDate; "YYYY-MM-DD") }} (Special Make Markup: Copy-paste the above into the field, including start/end curly brackets for it to import as intended)
Hi @samliew
Thanks for replying. I tried that function and still got back an erroneous date. I then tried the function shown in the screenshot for single date and date range. I’m still getting the wrong date(s). It keeps returning the a date in 2024. I have a filter set up for each path but I don’t think that is impacting the date returned. The LLM instructions in Voiceflow specifically state to only return the exact date(s) requested. Voiceflow references today in the output but is using the date provided in Make/Google to base it’s answer off of i.e. I have a meeting on my calendar for today, Voiceflow outputs that I don’t have any calendar events for today because Make/Google is returning the incorrect date. What do you suggest?
You do not need formatDate. Your parseDate format must match the format I shown you above.
For more information, see Date Format links below.
Here are some useful links and guides you can use to learn more on how to use the Make platform, apps, and app modules. I found these useful when I was learning Make, and hope they might benefit you too —