Google 操作/Dialogflow - 打开已安装的应用程序

Google Actions / Dialogflow - open installed application

我有一个 Google Actions 应用程序连接到 Dialogflow 和 Firebase。有什么方法可以从 Dialogflow 打开另一个 Java 应用程序(安装在设备上 - 例如 Android)?我希望 deep-link 'native-android-application' 可以,但我找不到任何东西。

总而言之,我正在考虑以下流程:

  1. 与 'app ABC' 交谈(Google 助手将初始化 google 操作应用程序)
  2. 发送1(将调用'app ABC'中的发送函数)
  3. 'app ABC' 将 return 一个 deep-link 到本机 android 应用程序 'native-android-application' (本机-android-application://info?id=')
  4. 当用户点击 returned 响应时,本机-android-应用程序将被打开

它仍处于开发者预览阶段(因此您可以对其进行测试,但还不能公开发布),但您可以使用 Android Link helper Google 上的操作的一部分API。您需要在 Actions 开发者控制台中 link 应用,然后您就可以执行以下操作:

function androidLink (app) {
  app.askToDeepLink('Great! Looks like we can do that in the Android app.', 'Gizmos for Android',
    'example://gizmos', 'com.example.gizmos', 'handle this for you');

  // Results in prompt:
  // "Great! Looks like we can do that in the Android app."
  // "Can I send you to Gizmos for Android mobile app to handle this for you?"
}