简体   繁体   中英

Phone Number in Google Actions (Google Assistant) Response

I'm building a conversation on Google Assistant for smart phones. 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?

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. 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.

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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