在没有 Dialogflow 的情况下在 google 上发布操作 [英] Publishing Actions on google without Dialogflow
问题描述
我在不使用 Dialogflow 而是使用我们自己的 NLG/NLU 的情况下构建 Google 助理操作,我正在使用 gactions cli 上传我的操作文件,一切正常,同时我可以进行测试我的手机上也有模拟器,
I am building a Google Assistant action without using Dialogflow instead using our own NLG / NLU , i am using gactions cli to upload my action file, all works fine , while i am able to test in simulator as well on my phone,
我无法提交进行 Alpha/Beta 测试,我只看到那些按钮被禁用,并且它说我没有任何操作(因为我没有使用对话框流).
I am unable to submit for Alpha / Beta testing, all i see is those buttons disabled and its saying i do not have any action (as i am not using dialogflow).
我如何提交 Alpha/Beta 测试的操作?
How can i submit action for Alpha/Beta testing?
推荐答案
您似乎尚未在操作包(您使用 gactions
工具上传的文件)中定义任何操作.不幸的是,行动"在这里有多种含义.一个是应用本身,另一个是它可以通过意图"做的事情.
It looks like you haven't defined any actions in the action package (the file you upload using the gactions
tool). Unfortunately "action" has several meanings here. One is the app itself, another is the things it can do via 'intents'.
尝试将主要意图添加到您的操作包中:
Try adding the main intent to your action package:
{
"actions": [
{
"description": "Default Welcome Intent",
"name": "MAIN",
"fulfillment": {
"conversationName": "HelloWorld"
},
"intent": {
"name": "actions.intent.MAIN",
"trigger": {
"queryPatterns": [
"Open hello world"
]
}
}
}
]
}
conversationName
字段必须与您在同一文件中的 conversations
下定义的字段相同.
The conversationName
field must be the same as the one you define under conversations
in the same file.
"conversations": {
"HelloWorld": {
"name": "HelloWorld",
"url": "https://myapp.example.com",
"fulfillmentApiVersion": 2,
}
}
这篇关于在没有 Dialogflow 的情况下在 google 上发布操作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!