Pa.M
Pa.M

Reputation: 1402

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? Disabled Submit button

Not recognising the actions uploaded via action package

Upvotes: 0

Views: 197

Answers (1)

Ian Gilham
Ian Gilham

Reputation: 1954

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

Upvotes: 1

Related Questions