0

I want to integrate Google Voice Action to support user queries from Google Assistant like Find xyz on app_name or Find xyz using app_name.

I have successfully integrated SEARCH_ACTION which supports user query from Google Assistant like Search xyz on app_name or Search xyz using app_name. I have done this using Search using a specific app.

How can I enable search with Find keyword? Twitter is supporting both options to Search using Find or Search keyword. But I am not able to find any documentation for this and it is not working with SEARCH_ACTION intent Filter.

Edit:

As per above documentation link, I have an Activity like,

<activity android:name=".SearchActivity">
    <intent-filter>
        <action android:name="com.google.android.gms.actions.SEARCH_ACTION"/>
        <category android:name="android.intent.category.DEFAULT"/>
    </intent-filter>
</activity>

But this is only handling query like Search xyz on app_name.

Randheer
  • 984
  • 6
  • 24
  • 1
    Post what you've tried. As is, this question sounds like "do my work for me". – Robert Apr 30 '19 at 16:23
  • No, As I have mentioned in question. I have implemented "Search xyz on app_name" an It is working. I am not able to find any documentation for do the same using "Find" keyword. I am not asking Please do it for me. It's Just If you have any Idea about "Find" keyword in Google Assistant. If you have came across some documentation related to it Please share. – Randheer Apr 30 '19 at 16:50
  • I have added the link to how I have done "Search xyz on app_name". – Randheer Apr 30 '19 at 16:57
  • Your example code should be here, not in links to 3rd party sites. – James Z Apr 30 '19 at 18:02

1 Answers1

1

Implementing the Search intent (the docs you linked to) simply offers another app on the Android system the ability to call into your app by providing a generic search term. Exactly how other apps use this is up to them. One app may show an icon that links through, another may use a voice query like "search for X using app name".

Google Assistant in particular may or may not support those particular queries, but even if it does (or does not) today, that may change in the future depending on whatever the Google Assistant "app" does.

In other words, it's not really possible for you to choose exactly how this Search intent is called, only that when it is, your app responds to it appropriately.

AdamK
  • 21,199
  • 5
  • 42
  • 58
  • I understand it works as per query supported by Google Assistant app. Twitter is working with query like "Find X on Twitter" so I was wondering if I am missing something / some documentation part which enables this. Even though Twitter is using "DialogFlow / Actions SDK" still I didn't find a way to directly launch my application from Fulfillment Response without any physical interaction of user. – Randheer May 13 '19 at 05:25
  • If Twitter is working with this query then your app should as well I believe. If the query in Google Assistant is triggering their Android application then this isn't using DialogFlow or the Actions SDK. If it's not working, you could also try supporting Intent.ACTION_SEARCH (https://developer.android.com/reference/android/content/Intent.html#ACTION_SEARCH) to see if that helps. – AdamK May 13 '19 at 06:53