I am building an agent in Dialogflow CX of which part of it consists of checking a datetime object if it’s in the past or not.
THerefore, I use the system function IS_PAST_TIME.
When I set a parameter with dummy data { "year": 1989, "month": 5, "day": 16 }
it works and I can set a conditional route,
but when I try to get an object within the parameter getOrders
{"orders":[{"cutOffTime":{"hours":16,"seconds":0,"minutes":"00","month":4,"nanos":0,"day":5,"year":2024},"deliveryDate":{"day":1,"month":4,"seconds":0,"nanos":0,"year":2024,"minutes":"00","hours":6},"orderId":6001101499,"totalToPay":"86.62"}]}
it renders the object as a date directly and it returns ‘$sys.func.IS_PAST_DATE(“2024-04-05 16:00:00”)’
I’ve tried several things with system functions TO_TEXT and TO_OBJECT but so far none of it worked.
What else can I try?