For the complete documentation index, see llms.txt. This page is also available as Markdown.

Message Templates - How to Use Buttons with Dynamic URLs

At SprintHub, it is possible to use WhatsApp API templates for sending automated 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'll show you step by step how to create a template with a dynamic URL in a practical way.


✅ Prerequisites

  • Have the WhatsApp API integration active in your SprintHub account.

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

  • Have access permission to the area of WhatsApp API Templates 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 on System Settings ⚙️.

  3. Then, select WhatsApp API > Message Templates.


2. Create a New Template

  1. Click the button “Create Template”.

  2. Fill in the following fields:

  • Internal name: a name to identify internally (ex: scheduling_calendar).

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

  • Category: select according to the objective of the message (ex: “Marketing”).

  • Language: select "Portuguese (BR)".

  • Channel: select the integrated WhatsApp API number.


3. Structure the Message Content

  • Header (optional): can 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 section.

  2. Select the button type: Call to Action.

  3. Choose the option: Go to the website.

  4. Fill in the fields:

  • Button text: example: “Access Link”

  • Base URL: type the default URL, e.g.:

https://minhaempresa.com.br/agendamento?id={{1}} Or:

https://meusite.com.br/pagamento/{{1}}/{{2}}

📝 The variables ({{1}}, {{2}}) will be replaced dynamically according to the content sent in the automation or queue.


5. Submit for Approval

  1. Review the content.

  2. Click on “Save and Submit for Approval”.

  3. The template will be sent to Meta (Facebook/WhatsApp) and usually 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:

  • CRM Automation or 360° SAC

  • Message Queue

  • Automation Flows

💡 When using it, enter the data that will make up the dynamic URL in the variables. Example:

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

In the automation:

  • {{1}} → Lead 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 it into production.

  • URLs with many parameters should be shortened or carefully validated.

  • If using variables, keep the order correct between the message content and what will be replaced.


CONCLUSION

Using the Dynamic URL in the WhatsApp API button is a strategic practice that enhances personalization and service efficiency. 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 work easier and improving the customer experience.

In addition, this approach makes it possible to track the origin of clicks, evaluate the performance of marketing actions, and ensure that the lead arrives at service with pre-filled information, saving time and reducing errors. In short, it is an intelligent solution for integrating channels, streamlining processes, and scaling results with greater precision and agility.

Last updated