gupshup

Create a template with quick reply in gupshup


I'm using the gupshup API for create templates and templates simples and with call to action works, the problem come when a try to create with quick replies. I send the data of this way:

"buttons": [ { "type": "text", "text": "Call" } ],

data: The response of gupShup should of are this: Hello this a test. | [Call]

but is only:

data: The response of gupShup should of are this: Hello this a test.

My question is how is object for create a template whith quick replais in the gupShup API


Solution

  • you need to change the type inside the buttons object.

    "buttons": [{"type":"QUICK_REPLY","text":"connect here"}],

    There 3 are the different types of buttons: PHONE_NUMBER, URL and QUICK_REPLY

    You can find the facebook documentation in here: https://developers.facebook.com/docs/whatsapp/business-management-api/message-templates#creating-message-templates

    Good luck!