User phone number / email Quick Reply

(Lucianogenova) #1

Hi, as shown here
https://developers.facebook.com/docs/messenger-platform/send-messages/quick-replies#phone
we can use this code
{
“content_type”:“user_phone_number”
“content_type”:“user_email”
}

When the email/phone number quick reply is sent, the Messenger Platform will automatically pre-fill the displayed quick reply with the email from the user’s profile information.

I’d like to use these feature inside my Bot: I’m making a Custom Request with this code:
{
“text”:“Press on the phone number below:”,
“quick_replies”:[
{
“content_type”:“user_phone_number”
}
]
}
So the number appears, then the flow goes on without stopping and waiting for the user’s click/tap on it.

What I’d like to do, is:

  1. Send the Custom Request
  2. Wait for the click/tap on the phone number retrieved
  3. Store the value inside my Attibute “phone-number”.

Any suggestion?
Thanks a lot!

(Karen Barker) #2

Hi @lucianogenova,

Unfortunately the only way to pause a flow to wait for a user answer is to use the Ask a Question action.

If you do want to use this quick replies then unfotunately the only way I can think for you to manage this would be to set the custom request up as the last action in the flow. Once the flow ends this will therefore be left as a button on the screen for the user to click. When they click it it works as a keyword trigger for a flow - you might need to set a catch all flow up to handle receiving this value. In the 2nd flow you can then continue the rest of the logic.

Thanks
Karen