I'm having an issue where when Dialogflow resolves @sys.date-time parameters for my intent with text something like '5am', they come back as tomorrow when they should be today.
(Today as of now is 2019-04-08, not 2019-04-09 as resolved)
{
"responseId":"48bcf62d-dc2d-4f3c-befb-af8565fe01cb",
"queryResult":
{
"queryText":"today at 5a.m.",
"speechRecognitionConfidence":0.97964007,
"parameters": {
"duration":"",
"date":"2019-04-09T05:00:00+02:00"
},
...
"outputContexts":[
{
...
"name":"projects/xxxxx/agent/sessions/xxxxxx/contexts/xxxx",
"parameters":{
"duration":"",
"date":"2019-04-09T05:00:00+02:00",
"date.original":"5 a.m.",
"duration.original":""
...
}},
I do also have a @sys.any
in this request my suspicion is that may cause an issue. (I would rather it be a user defined entity but matching isn't reliable enough in ambiguous contexts so I have to do it myself).
Does anyone have experience with this and know any gotcha's here that I might be falling into? I would have thought that '5am' without any other modifiers should resolve to 5am today.