In this example, we have a WhatsApp template with:

  • A header section with 1 variable
  • A body section with 2 variables
  • 2 Quick Reply Buttons with payloads that point to specific use-cases within your chatbot flows
[
    {
        "template": {
            "components": [
                {
                    "type": "header",
                    "parameters": [
                        {
                            "type": "text",
                            "text": "Some variable"
                        }
                    ]
                },
                {
                    "type": "body",
                    "parameters": [
                        {
                            "type": "text",
                            "text": "Your variable 1"
                        },
                        {
                            "type": "text",
                            "text": "Your variable 2"
                        },

                    ]
                },
                {
                    "type": "button",
                    "sub_type": "quick_reply",
                    "index": "0",
                    "parameters": [
                        {
                            "type": "payload",
                            "payload": {
                                "target_use_case_uuid": "69ca76ae-2abd-4758-83cf-b74e33f34ff6",
                                "target_node_uuid": "0cbe8b64-1332-4562-8305-94a5b59c3e18"
                            }
                        }
                    ]
                },
                {
                    "type": "button",
                    "sub_type": "quick_reply",
                    "index": "1",
                    "parameters": [
                        {
                            "type": "payload",
                            "payload": {
                                "target_use_case_uuid": "6109b551-0921-4afd-b779-a8567d2108a0",
                                "user_id": "3185970", "booking_ref": "NEFCXG"
                              }
                        }
                    ]
                }
            ],
            "language": {
                "code": "fr-FR"
            },
            "name": "whatsapp_push_template-name"
        },
        "to": "USER_PHONE_NUMBER"
    }
]

In this example, the 1st payload links to a specific Node in a Use-Case that was built using FBv2 (FlowBuilder v2). The 2nd payload links to a specific FBv2 use case along with 2 contextual variables. Attention: only User channel variables are eligible here.

As there is only one JSON object in the array - only one WhatsApp push message will be sent out to USER_PHONE_NUMBER.