
Available on
: Pro and Enterprise plansWhen a customer clicks a button in a template, your integration may need a consistent identifier to know which button was clicked. Relying on the button text can cause issues if you change the wording later.
Now,
Custom Button IDs
are supported for both Carousel templates
and Template QUICK_REPLY buttons
through the Public API. You can add a custom ID
using the parameter field in the buttons array. When a customer clicks the button, the custom ID is returned as message.id in the webhook. This gives your integration a consistent identifier, even if you change the button's text.To Learn more, check out Template message parameters and Button reply webhooks.