【发布时间】:2018-01-18 20:54:46
【问题描述】:
我在actions.json 中有这样定义的操作:
{
"description": "foo description",
"name": "FooAction",
"fulfillment": {
"conversationName": "my-app"
},
"intent": {
"name": "FooIntent",
"trigger": {
"queryPatterns": [
"foo",
]
}
}
}
当触发adding actions.intent.MAIN 时,我的服务器响应如下所示:
{
"expectUserResponse": true,
"expectedInputs": [
{
"inputPrompt": {
"richInitialPrompt": {
"items": [
{
"simpleResponse": {
"textToSpeech": "Welcome to My App! What would you like to do?",
"displayText": "Welcome to My App! What would you like to do?"
}
}
],
"suggestions": []
}
},
"possibleIntents": [
{
"intent": "FooIntent"
}
]
}
],
"conversationToken": "123"
}
问题:
当用户说“与我的应用对话”然后响应“foo”时,为什么我只返回 actions.intent.TEXT 意图?
但是,当用户说“向 foo 询问我的应用程序”(没有触发 actions.intent.MAIN)时,我会收到 FooIntent。
我做错了什么?谢谢!
【问题讨论】:
标签: actions-on-google google-home