简体   繁体   中英

Publishing Actions on google without Dialogflow

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,

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).

How can i submit action for Alpha/Beta testing? 禁用提交按钮

无法识别通过操作包上传的操作

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"
                ]
                }
            }
        }
    ]
}

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,
    }
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM