79401748

Date: 2025-01-31 04:14:10
Score: 2.5
Natty:
Report link

Unfortunately, adding WhatsApp's built-in reaction buttons directly through the API isn’t possible. The thumbs-up and thumbs-down reactions are a feature controlled by WhatsApp itself, and they can’t be included in message templates.

The best approach is to use quick reply buttons. Instead of actual reactions, you can add a message that asks users if the information was helpful and provide two button options:

This allows users to give feedback with a simple tap, and you can track their responses.

For example, here’s how you would send a WhatsApp message template with quick reply buttons using the API:

bash
CopyEdit
curl -X POST "<https://graph.facebook.com/v17.0/YOUR_PHONE_NUMBER_ID/messages>" \\
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \\
-H "Content-Type: application/json" \\
-d '{
  "messaging_product": "whatsapp",
  "recipient_type": "individual",
  "to": "USER_PHONE_NUMBER",
  "type": "interactive",
  "interactive": {
    "type": "button",
    "body": {
      "text": "Did you find this message helpful?"
    },
    "action": {
      "buttons": [
        {
          "type": "reply",
          "reply": {
            "id": "thumbs_up",
            "title": "Yes"
          }
        },
        {
          "type": "reply",
          "reply": {
            "id": "thumbs_down",
            "title": "No"
          }
        }
      ]
    }
  }
}'

Maybe this can help!

Reasons:
  • RegEx Blacklisted phrase (3): Did you find this
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Favo Perdana