在欢迎意图之后调用意图时,“ dateValue”不出现

时间:2019-10-10 14:40:51

标签: actions-on-google

我正在使用dialogflow进行Google行动。以下是两个条件

  1. 我从Google Mini直接调用意图“ sampleIntent”,而没有欢迎意图。即,动作是使用调用短语通过名称显式调用的

“打开sampleAction,并询问明天会有多少人来。”

在这种情况下,我将从以下参数中获取dateValue

"arguments": [
           {
             "name": "trigger_query",
             "rawText": "expected parcels for tomorrow",
             "textValue": "expected parcels for tomorrow"
           },
           {
             "name": "date",
             "rawText": "tomorrow",
             "textValue": "tomorrow",
             "dateValue": {
               "year": 2019,
               "month": 10,
               "day": 11
             }
           }
         ]
  1. 在这种情况下,Action是通过名称显式调用的,而没有任何调用短语(例如“ Ok Google,与sampleAction对话”),将触发action.intent.MAIN intent。现在我问助手 “明天会有多少人来”。 queryResult参数为情况1提供了以下结果。

“ queryResult”:{    “ queryText”:“明天的预期包裹”,    “参数”:{      “ date”:“明天”,      “ date-period”:“”,      “给定的名称”: ””   }

但是在这种情况下dateValue不存在。请帮助我。

0 个答案:

没有答案