Google cloud platform 如何从Google Assistant深度链接应用程序?
我正在创建一个与Google Assistant集成的dialogflow代理。 我想做的是在合适的意图匹配时打开一个应用程序(我的应用程序)。我已经看到像Youtube、Spotify等这样的操作可以做到这一点,例如,我可以告诉Youtube操作“搜索猫视频”,Youtube应用程序将打开猫视频列表。 我试图使用DeepLink类,但后来发现它已被弃用。 你有什么办法可以建议我这样做吗?Google cloud platform 如何从Google Assistant深度链接应用程序?,google-cloud-platform,dialogflow-es,actions-on-google,deep-linking,google-assistant-sdk,Google Cloud Platform,Dialogflow Es,Actions On Google,Deep Linking,Google Assistant Sdk,我正在创建一个与Google Assistant集成的dialogflow代理。 我想做的是在合适的意图匹配时打开一个应用程序(我的应用程序)。我已经看到像Youtube、Spotify等这样的操作可以做到这一点,例如,我可以告诉Youtube操作“搜索猫视频”,Youtube应用程序将打开猫视频列表。 我试图使用DeepLink类,但后来发现它已被弃用。 你有什么办法可以建议我这样做吗? 提前谢谢我想你在找。以下是您需要遵循的步骤: 找到正确的答案动作.意图.打开应用程序功能应该是适合您的
提前谢谢我想你在找。以下是您需要遵循的步骤:
<?xml version="1.0" encoding="UTF-8"?>
<!-- This is a sample actions.xml -->
<actions>
<action intentName="actions.intent.OPEN_APP_FEATURE">
<!-- Use url from inventory match for deep link fulfillment -->
<fulfillment urlTemplate="{@url}" />
<!-- Define parameters with inventories here -->
<parameter name="feature">
<entity-set-reference entitySetId="featureParamEntitySet" />
</parameter>
</action>
<entity-set entitySetId="featureParamEntitySet">
<!-- Provide a URL per entity -->
<entity url="myapp://deeplink/one" name="featureParam_one" alternateName="@array/featureParam_one_synonyms" />
<entity url="myapp://deeplink/two" name="featureParam_two" alternateName="@array/featureParam_two_synonyms" />
</entity-set>
</actions>
嗨,Vijay,是的,我知道应用程序动作的存在,但我不确定它是否是我所需要的解决方案。基本上我正在为谷歌助手开发一个会话动作,在会话的中间,如果用户要求,我想在我的应用程序中显示一些数据,而不是直接显示在辅助屏幕上。所以我的问题是:如何将对话动作与应用程序连接起来?你确定你为帖子设置了正确的url吗?我看不到它我的道歉,错误的链接,这里的评论是正确的链接:“你能看看这个吗,他们提到了一个解决方法,这是谷歌API上的一部分操作——”