I have implemented the App Actions in a demo app. It's working fine and I'm able to launch a specific screen using Google Assistant with queries like
Order pizza from Avocado
So I started to integrate Slice. When testing the Slice using SliceViewer, it works fine.
But when I try to invoke Slice from Google Assistant, it doesn't work.
Here is the snippet in the actions.xml
<action intentName="actions.intent.GET_ORDER">
<fulfillment
fulfillmentMode="actions.fulfillment.SLICE"
urlTemplate="content://my.food.service/status" />
<fulfillment
fulfillmentMode="actions.fulfillment.DEEPLINK"
urlTemplate="my://food/orders" />
</action>
The queries I used in Google Assistant are from the documentation
- Ask Avocado to check my order
- Check my order on Avocado
But neither works.
Also, after I added the above snippet to the actions.xml, I am not able to use the "App Actions Test Tool" plugin anymore. It says
Preview Creation Error Status Code: 400 Message: Precondition check failed. - Multiple URL templates for action 'actions.intent.GET_ORDER' have zero required parameters.
I'm using plugin version v1.1.0
So my question is: Is testing Slice through Google Assistant available? If not, when will it be available to develop and test?