Opt-out webhooks are triggered when a user opts not to receive more messages. This can be configured for any message within any of your flows. However, we recommend that if you plan to configure the opt-out option, you do it generally in the first message of your flow. This is so that the user has the option to opt-out before any other future message is sent to them and helps maintain the quality of your WhatsApp line.
Opt-out is the process by which a user decides not to receive more messages from a specific source. In the context of webhooks, this implies that when a user chooses to opt out of receiving more messages, a webhook is triggered that notifies your system about this decision. This allows your application to properly manage the user’s communication preferences, ensuring that unwanted messages are not sent to them in the future. Implementing an opt-out mechanism is crucial for respecting user privacy and preferences, and for complying with Meta’s communication regulations.When you activate the opt-out option in a flow, and the user responds to a question by choosing the opt-out option, Treble will save the user’s phone number in an internal list where all phone numbers that have opted not to receive more messages are stored.
Where can I find the list of phone numbers that have opted not to receive more messages?
You can find the list of phone numbers that have opted not to receive more messages in the “Blocked Users” section within “Settings” in your Treble account.To do this, follow these steps:
Go to the “Settings” section in your Treble account.
Go to the “Blocked Users” section.
In the view, you can choose to download the list of numbers that chose the opt-out option or view the list of numbers that you have decided to block.
Click the “Download” button to download the list of numbers that are blocked.
Additionally, you can add individual numbers to the blocked users list. To do this, enter the phone number in the text field: Block Users and click the “Block” button.
Go to the “Conversations” section and click the “Create Conversation” button. You can also configure an opt-out webhook in an existing flow. For this, go to the “Flows” section and click the “Edit” button of your flow.
3
Add message blocks
Add message blocks to your flow or edit the existing flow. Click the “Add block” button.
4
Activate webhook and add endpoint
Now, let’s double-click on the message block, a panel will open on the left. In this panel, let’s scroll to the “Responses as exclusion option” section and click the switch of the option you want to configure to exclude users who opt not to receive more messages.Accept the terms and conditions of the modal that appears and then you can write the URL of your endpoint in the “Webhook URL” text field.
Ready! Now, when a user opts not to receive more messages, the webhook will be triggered and send an HTTP request to your endpoint configured in Treble.
If you configure an opt-out option in your flow and you are testing with your own phone number, it is possible that your own phone number will be added to the blocked users list. If this happens, you will not be able to send conversations to your phone number. To unblock your phone number, you can contact our support team.