Custom Button Template With Phone Number

(Robert Cavalcante) #1

Hello guys !

I have a doubt: I have a custom button template with an action to open the phone dialog when the user clicks on it.
This button has the type “phone_number”, look at example bellow :

{
“attachment”:{
“type”:“template”,
“payload”:{
“template_type”:“button”,
“text”:“Click here to call”,
“buttons”:[
{
“type”:“phone_number”,
“payload”:"+5511111111",
“title”:“Ligar agora”
}
]
}
}
}

But i would like to know if its possible to catch the action of clicking on the button. For example: if user click on this button, I would like to fire another flow.

I know that if I use the type “postback” on button template, it is possible to fire another flow, but if I use the “phone_number” type, I can’t.

Thanks!

Best regards,
Bob

(Karen Barker) #2

Hi Bob,

Unfortunately this is a facebook limitation. The phone number button type is designed to activate making a phone call directly and as such doesn’t pass anything back to the bot I’m afraid. If you do need to trigger another flow you would need to use the postback button. :thumbsup:

(Robert Cavalcante) #3

Hi Karen,

Oh, i see :frowning:
It’s ok! Thank you for the quick reply!

Best regards,
Bob