Bot Framework openUrl does not work on proposed messenger actions

I am creating a facebook botton using Bot Builder Node.js sdk and I am trying to create a suggested action that will navigate users to a web page. I know that facebook has a limitation that it only redirects to https endpoints, but since the page being redirected is https, this is clearly not a problem. Here is my code:

var msg = new builder.Message(session) .text("User message here") .suggestedActions( builder.SuggestedActions.create( session, [ builder.CardAction.imBack(session, "command1", "Command1"), builder.CardAction.imBack(session, "command2", "Command2"), builder.CardAction.openUrl(session, "https url", "Go to web") ] )); session.send(msg); 

The problem is that when I click the openUrl action on the messenger, nothing happens. It works correctly on the emulator. Please help me how to solve this problem? Thanks.

+5
source share
1 answer

The actions suggested by the Facebook messenger (quick response) do not support "openURL". Quick answers only support the following :

  • Text Quick response: text will be shown to the user, useful data will be sent back to the bot
  • Quick answer by phone number:

allows you to request a phone number from the user. When sending a quick response by phone number, the Messenger platform will automatically pre-populate the displayed quick response with the phone number from the user profile information.

  • Quick Email Response:

lets ask user for email. When sending a quick response by e-mail, the Messenger Platform will automatically pre-populate the displayed quick response with a letter from the user profile information.

  • Location Quick Response (Deprecated)
0
source

Source: https://habr.com/ru/post/1269791/


All Articles