Skip to main content

Before you start

Before you start, make sure you have knowledge of what a template is. If you’re not clear about it, you can read the article:

Templates

Learn everything about templates. Learn how to create a template and use it in a flow.

Template State Change

Templates have different states. We know that when we create one, we must send it for approval to Meta. In this case, the template remains in Under Review state. When Meta approves the template, it remains in Active state. If Meta rejects the template, it will remain in Rejected state. Why can these elements of a template change?
  • Meta detects that your customers are marking your conversations as spam, which causes Meta to pause or deactivate your template.
  • You made an edit to the template and Meta marks it as Under Review.
  • Meta approves a previously disabled or paused template so it can be used again.
There are many scenarios that can cause these changes. Through webhook configuration, you can stay on top of these changes and take the necessary actions.

How to configure a template state change webhook?

To configure a template state change webhook, you must follow these steps:
  1. Enter Treble.ai through the following URL:

    https://app.treble.ai

  2. Go to the Settings section and select Webhooks.
  3. You will see a Webhook URL field. This is the endpoint to which the HTTP request will be sent when a template state change occurs.
  4. Enter your webhook URL in the Webhook URL field.
  5. Click Save.
  6. Enter Treble.ai through the following URL:

    https://app.treble.ai

  7. Go to the Settings section and select Webhooks.
  8. You will see a Webhook URL field. This is the endpoint to which the HTTP request will be sent.
  9. Enter your webhook URL in the Webhook URL field.
  10. Click the Template Status Update button to enable this type of notifications
  11. Click Save.
  12. Ready! Now, when a template state change occurs in Treble, the webhook will be triggered.
Configure a template state change webhook