How can I make a call from my action on google?

2019-08-04 08:24发布

问题:

I'm building an action for Google Assistant using DialogFlow.

And for this action, I want an intent say "Call X" with which the user can call "X".

Here "X" is not a contact in the user's device but a contact defined within my intent's response.

Is there any option with which I can achieve any of the following for my action?

  • Make a Call to X, or atleast
  • Open up the dialer with the defined number from my action

Please guide me on this.

回答1:

What you can do is Use a Helper Intent Through which you will get the permission from the Phone to make calls and then perform the Action using fullfillment logic.