简体   繁体   English

Google Actions(Google Assistant)响应中的电话号码

[英]Phone Number in Google Actions (Google Assistant) Response

I'm building a conversation on Google Assistant for smart phones. 我正在使用智能手机的Google助手进行对话。 In one of the dialogs, I'm providing a phone number as a response but this phone number is rendered as text. 在其中一个对话框中,我提供一个电话号码作为响应,但是此电话号码显示为文本。

Is there a way to provide a "click to call" phone number in Google Assistant response? 有没有办法在Google Assistant响应中提供“点击通话”电话号码?

Probably not, but you may have some workarounds. 可能不是,但是您可能有一些解决方法。

First, keep in mind that the Assistant is meant to be multi-platform with a voice focus. 首先,请记住,Assistant应该是具有语音焦点的多平台。 Although it has a screen and touch controls, it is meant to be used by voice. 尽管它具有屏幕和触摸控件,但它是供语音使用的。 Even with touch controls, these aren't guaranteed to be on a phone - Smart Displays will likely have these controls, yet not be able to make phone calls. 即使使用触摸控件,也无法保证这些控件可以在手机上使用-Smart Display可能会具有这些控件,但无法拨打电话。

That said, you may be able to display a Basic Card that includes a link. 也就是说,您可能可以显示包含链接的基本卡 This link could be to a tel: URL which contains the telephone number and, on appropriate devices, would make the call. 该链接可能指向tel: URL,其中包含电话号码,并且在适当的设备上可以拨打电话。

I would have also suggested a Link-Out Suggestion, but the documentation for that seems to suggest that the Android Intent you trigger needs to be one that you have control over. 我也会建议一个“链接建议”,但是有关该文档的建议似乎表明,您触发的Android Intent必须是您可以控制的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM