I am trying to integrate CREATE_CALL BII I can trigger my app using the voice command “Call <CONTACT_NAME> on <APP_NAME>” but I am facing a problem that the BII is only sending me the CONTACT_NAME but not the PHONE_NUMBER even though that contact is in android native Addressbook.
Following is my action:
<action intentName="actions.intent.CREATE_CALL">
<fulfillment urlTemplate="https://fit-actions.firebaseapp.com/call{?callFormat,name,telephone}">
<parameter-mapping urlParameter="callFormat" intentParameter="call.callFormat"/>
<parameter-mapping urlParameter="name" intentParameter="call.participant.name" />
<parameter-mapping urlParameter="telephone" intentParameter="call.participant.telephone" />
</fulfillment>
</action>
Action is working perfectly with
App Actions Test Tool
I am following https://developers.google.com/assistant/app/reference/built-in-intents/communications/create-call, even though I copied the same code from that link to my sample to make it work but I am getting the same result, the only name is there in my deep link but no phone number is there.
What I want to achieve the way Google Duo is doing shown in the following gif