Google 用于将其集成到应用程序中的助手 SDK
Google Assistant SDK to integrate it in an app
是否可以将 google 助手集成到 android 应用程序中?
我在网上找不到任何相关信息。
我知道今天 Google 发布了 Assistant SDK,但他们甚至在 Android Developers Blog post
中也没有提及任何 android 支持
询问您的应用在安装后可以提供的功能会很有用。
例如:
"ok google, find a Star Wars blu ray on amazon"
它会启动亚马逊购物应用程序并寻找它。
是否可以使用此已发布的 SDK 在应用中实现类似的功能?
您的示例并未说明如何将 Google 助理嵌入您自己的应用程序 - 听起来像是说明如何使用 Google 助理启动您的应用程序。
前者将受此 SDK 支持,后者...不是真的。
您可以通过为 Android 构建 gRPC 库,将新发布的 SDK 嵌入到您的应用程序中。有关 Android 的 gRPC 入门,请参阅 https://developers.google.com/assistant/sdk/prototype/getting-started-other-platforms/integrate for the overview information for the Assistant SDK and http://www.grpc.io/docs/quickstart/android.html。
Google 助手是为动作而构建的,所以如果你想建立对话,你需要使用另一个 api,比如 api.ai. Also you can look here.
Google 发布了 App Actions,目前处于开发者预览阶段。借助 App Actions,您可以让 Assistant Action 深入 link 您的应用程序。完整的细节在 https://developers.google.com/assistant/app/get-started.
简短版本是:
- 选择 supported BIIs(内置意图)之一,例如
actions.intent.OPEN_APP_FEATURE
。
- 根据 the schema 和 link 从
AndroidManifest.xml
创建一个 actions.xml
文件。
- 将内置意图映射到您创建的
actions.xml
文件中的 activity:
<actions>
<action intentName="actions.intent.OPEN_APP_FEATURE">
<fulfillment urlTemplate="exampleapp://open{?appfeature}">
<parameter-mapping intentParameter="feature" urlParameter="appfeature" />
</fulfillment>
</action>
</actions>
您的 activity 在向智能助理询问内置意图页面示例中指定的查询时应该可用。
是否可以将 google 助手集成到 android 应用程序中?
我在网上找不到任何相关信息。
我知道今天 Google 发布了 Assistant SDK,但他们甚至在 Android Developers Blog post
中也没有提及任何 android 支持询问您的应用在安装后可以提供的功能会很有用。
例如:
"ok google, find a Star Wars blu ray on amazon"
它会启动亚马逊购物应用程序并寻找它。
是否可以使用此已发布的 SDK 在应用中实现类似的功能?
您的示例并未说明如何将 Google 助理嵌入您自己的应用程序 - 听起来像是说明如何使用 Google 助理启动您的应用程序。
前者将受此 SDK 支持,后者...不是真的。
您可以通过为 Android 构建 gRPC 库,将新发布的 SDK 嵌入到您的应用程序中。有关 Android 的 gRPC 入门,请参阅 https://developers.google.com/assistant/sdk/prototype/getting-started-other-platforms/integrate for the overview information for the Assistant SDK and http://www.grpc.io/docs/quickstart/android.html。
Google 助手是为动作而构建的,所以如果你想建立对话,你需要使用另一个 api,比如 api.ai. Also you can look here.
Google 发布了 App Actions,目前处于开发者预览阶段。借助 App Actions,您可以让 Assistant Action 深入 link 您的应用程序。完整的细节在 https://developers.google.com/assistant/app/get-started.
简短版本是:
- 选择 supported BIIs(内置意图)之一,例如
actions.intent.OPEN_APP_FEATURE
。 - 根据 the schema 和 link 从
AndroidManifest.xml
创建一个actions.xml
文件。 - 将内置意图映射到您创建的
actions.xml
文件中的 activity:
<actions>
<action intentName="actions.intent.OPEN_APP_FEATURE">
<fulfillment urlTemplate="exampleapp://open{?appfeature}">
<parameter-mapping intentParameter="feature" urlParameter="appfeature" />
</fulfillment>
</action>
</actions>
您的 activity 在向智能助理询问内置意图页面示例中指定的查询时应该可用。