messagesMessage Templates - How to Use Buttons with Dynamic URL

At SprintHub, you can use WhatsApp API templates to send automatic and personalized messages — including dynamic URLs, which are useful for directing the Lead to specific pages such as scheduling, payments, forms and more.

In this article, we will show step by step how to create a template with a dynamic URL in a practical way.


✅ Prerequisites

  • Have the integration of the WhatsApp API active on your SprintHub account.

  • Have an approved number in Meta Business (Facebook Business).

  • Have access permission to the WhatsApp API Templates area in the system.


Step by Step to Create a Template with a Dynamic URL

1. Access the Templates Area

  1. Go to the SprintHub side menu.

  2. Click System Settings ⚙️.

  3. Next, select WhatsApp API > Message Templates.


2. Create a New Template

  1. Click the “Create Template”.

  2. Fill in the following fields:

  • Internal name: a name to identify internally (e.g.: booking_calendar).

  • Template name (Meta): name that will be used on the Meta platform (no spaces).

  • Category: select according to the message objective (e.g.: “Marketing”).

  • Language: select "Portuguese (BR)".

  • Channel: select the integrated WhatsApp API number.


3. Structure the Message Content

  • Header (optional): may contain a title or even a variable.

  • Message body: write the main message. Use numbered variables if necessary, such as:

Hello {{1}}, your appointment is available at the link below:


4. Add the Button with the Dynamic URL

  1. Go to the Buttons

  2. section. Select the button type:

  3. Call to Action. Choose the option:

  4. Visit website.

  • Fill in the fields: Button text:

  • example: “Access Link” Base URL:

enter the default URL, e.g.: https://mycompany.com.br/scheduling?id={{1}}

Or:

📝 https://mysite.com.br/payment/{{1}}/{{2}}{{1}}, {{2}}The variables (


) will be dynamically replaced according to the content sent in the automation or queue.

  1. 5. Submit for Approval

  2. Click Review the content.

  3. “Save and Submit for Approval”.


The template will be sent to Meta (Facebook/WhatsApp) and normally the response occurs within up to 24 business hours.

🚀 Using the Template with Dynamic URL

  • After the template is approved, it will be available for use in the following places:

  • Message Queue

  • Automation Flows

CRM Automation or 360º Customer Service (SAC)

💡 When using it, insert the data that will compose the dynamic URL into the variables. Example:

Hello {{1}}, access your exclusive link: {{2}}

  • In the automation:

  • {{1}} → Lead's Name


{{2}} → Personalized URL (based on a custom field, for example)

  • ✅ Important Tips The dynamic URL needs to be well formatted

  • and preferably secure (https).

  • Test before putting into production. URLs with many parameters should be shortened

  • or carefully validated. If using variables, keep the


CONCLUSION

correct order between the message content and what will be replaced. Using the Dynamic URL

in the WhatsApp API button is a strategic practice that increases personalization and efficiency of service. By generating personalized links with dynamic variables, such as the lead's name, service ID or specific campaign data, it is possible to offer more contextualized and automated communication, making the team's job easier and improving the customer experience. Additionally, this approach allows tracking the source of clicks, evaluating the performance of marketing actions and ensuring that the lead reaches service with pre-filled information, saving time and reducing errors. In short, it is an intelligent solution to integrate channels, optimize processes and scale results with more precision and agility.

Last updated

Was this helpful?