How to send buttons with variable URLs in WhatsApp templates from wolkvox Agent
Table of Contents
Introduction
A new feature has been enabled in WhatsApp templates that allows including buttons with dynamic URLs, meaning links that incorporate variables within their structure (for example: https://www.example.com/product?id={{1}}).
With this enhancement, agents can customize the URL before sending the message, replacing the variable's value directly from the sending form in wolkvox Agent. The end user will receive a button that takes them to a unique and contextual page, without the need to create multiple templates for each case.
This feature leverages Meta's automatic validation and works for both Marketing and Utility templates.
Note: This template only applies to Cloud API connectors.
Template Usage
When an agent selects this template, they will see:
- The predefined message body
- The configured buttons
- A field to enter the actual value of the variable, for example:
- "products"
- "4k-tv"
- This value replaces {{1}} in the URL before sending the message.
- Example:
- Template configured with: https://www.example.com/{{1}}
- Agent enters in the "Button 1" field: products
- The URL sent to the customer will be: https://www.example.com/products
