Advanced Ad Interaction
A more advanced setup where specific ads trigger different chatbot automations. It allows you to route users to various flows based on the specific ad clicked, avoiding duplicate messages.
Introduction
The Ads Referral Trigger in Chatrena allows you to create Facebook ads that, when clicked, open your chatbot on Messenger. Depending on the configured ad, you can trigger different automations in your chat. This documentation covers two important points: how to trigger different flows for different ads and how to handle duplicate messages.
Triggering Different Flows for Different Ads
Creating the Trigger
Go to the automation section and select "Triggers." Create a new trigger with the reference payload. This payload will be a JSON that you will save in the user's custom fields.
Creating the trigger:

Saving the payload and Ad Id in custom fields:

Choosing the subflow that will redirect the user to the correct flow based on the ad ID:

Setting Up the Ads Router
In your new flow called "Facebook Ads Router.", add a condition node at the beginning of this flow to check the Facebook ads ID and redirect the user to the correct flow based on the ad ID. You can configure it as shown in the image below:

Last updated
Was this helpful?