githubEdit

messagesMessage Templates - How to Use Buttons with Dynamic URL

In SprintHub, it is possible to use WhatsApp API templates for sending 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 the step-by-step process to create a template with a dynamic URL in a practical way.


βœ… Prerequisites

  • Have the integration of WhatsApp API active in 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 on System Settings βš™οΈ.

  3. Then 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.: scheduling_calendar).

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

  • Category: select according to the purpose of the message (e.g.: "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

  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 on Review the content.

  3. "Save and Submit for Approval."


The template will be sent to Meta (Facebook/WhatsApp) and typically 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 or 360ΒΊ Support Automation

  • Message Queue

Automation Flows

πŸ’‘ 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 you use variables, keep the


correct order 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 lead name, service ID or campaign-specific data, it is possible to offer more contextualized and automated communication, facilitating the team's work and improving the customer experience.

Last updated

Was this helpful?