Google action - deep linking [closed]

2019-05-26 11:42发布

问题:

I am implementing app for google assistant . I build simple conversation app with the help of Api.ai tool and it works fine .

Now i want to communicate to my application(Which is installed in android devices) when user trigger particular intent(Created in Api.ai) by saying some text. Guide me to right place to achieve this.

回答1:

For that, you need to use the fulfillment option of Api.ai. You will need to have a webserver for that, not just an Android app.

You first will need to enable the webhook in the Fulfillment tab:

There, you will put an url to your server that performs the action you want. Check the Actions on Google documentation to see how to respond with the correct format to give an answer to your user in the Google Assistant.

Then, you need to go to the particular intent that should trigger your server and enable the Webhook there too: