7

I am trying to develop a Google Assistant App, primarily for Google Home and Google Assistant on the phone.

Is there a way to integrate Google's hands-free calling capability to the Assistant App, so that a user can directly initiate a phone call within my app?

For example. my app is providing a few suggestions for some stores, and will prompt the user to ask if they would like to make a call to a store.

Does anyone know if this is possible?

Many Thanks!

Iris Wei
  • 71
  • 2
  • As far as I know this is not supported right now. But I also wish this (and the ability to call other apps like navigation or text messaging and so forth) were available for us to use. – Wolfram Rittmeyer Oct 11 '17 at 17:58
  • if we can make call by google assistant why not i can initiate call by an app made for google assistant using dialogflow – Inzamam Malik Apr 23 '18 at 10:03
  • Possible duplicate of [Initiating a phone call](https://stackoverflow.com/questions/45133896/initiating-a-phone-call) – lisa p. Aug 20 '18 at 13:19
  • I want to do the same but i got errors, please help me show some code or any documentation. Open this link issues i am facing https://stackoverflow.com/q/60596851/10744950 – sai ramam chavatapalli Mar 09 '20 at 09:06

1 Answers1

3

You can show a call button which will redirect to the specified number on the dialer app.

Here's a way to do that from fulfillment response:

"buttons": [
   {
    "title": "Call",
    "openUrlAction": {
        "url": "tel:+91123456789",
        "androidApp": {
            "packageName": "com.android.phone"
        },
        "versions": []
    }
  }
]

Add this JSON to your response and it will show a button which will redirect to default call app and shows +91123456789 number filled.

EXTRA

Similarly, if you want to send mail then you can add:

{
    "title": "Send Mail to Jay",
    "openUrlAction": {
        "url": "mailto:Jp9573@gmail.com",
        "androidApp": {
            "packageName": "android.intent.extra.EMAIL"
        },
        "versions": []
    }
}
Jay Patel
  • 2,341
  • 2
  • 22
  • 43