How to identify users coming from a Click to Chat WhatsApp ad published on Facebook September 26, 2024 13:40 Updated Index: Introduction In Thread Context Configuration in Builder Creating a Personalized Report With Customers From Campaigns Introduction Click for WhatsApp is a new ad format from Meta that shortens the consumer journey, taking people from the main social networks directly to WhatsApp, in just one click. Click to WhatsApp is an option to shorten the customer journey in the marketing funnel, as it allows any user to start a conversation with a number without having it added to the phonebook, with just one click. But in order for you to take advantage of WhatsApp's full potential in generating and qualifying leads using Click To WhatsApp ads, it is important to ensure that users have a good experience in the conversational channel, reducing friction and creating personalized experiences that will lead the lead to the conversion point! In Thread Context Conversations started from Click To WhatsApp ads reach Blip with valuable information about the ads. When a user clicks on a Click to WhatsApp ad and sends a message to the business, the advertising business receives a message notification including the property referral, which provides additional context about the ad that originated that message: what we call In Thread Context. As soon as the user sends the first message, Blip saves this information from the in Thread Context in the contact's extras, allowing you to use these identifiers to target the user in the conversational flow. Configuration in Builder 1. Access the bot where customers are directed after clicking on your ad; 2. Go to the Builder tab; 3. Select the Home block; 4. Go to Actions; 5. Under “Add exit action” click Run Script 6. In Input variables add input.message; 7. In SCRIPT add the script below and select ctrl+s to save function run(inputMessage) { let inputMessageFormatted = JSON.parse(inputMessage); let metadata = inputMessageFormatted.metadata; if (metadata && metadata['#wa.referral.headline']) { return JSON.stringify({ headline: metadata['#wa.referral.headline'], body: metadata['#wa.referral.body'], source_type: metadata['#wa.referral.source_type'], source_id: metadata['#wa.referral.source_id'], source_url: metadata['#wa.referral.source_url'], media_id: metadata['#wa.referral.image.id'] }); } else { return 0; } } 8. In SAVE RETURN, in the Variable field for the return value, fill in the metadata; Ready, the contacts will now appear with the fields that show that it came from an advertisement. Creating a Personalized Report With Customers From Campaigns 1. Still in the Home block, create an exit action of the Event Record type 2. In the Category field you can fill in the name of the desired category, in our example we use referralfinal 3. In Action fill in {{metadata}} 6. Then create a custom report, using the category created in the initial block. To learn more about step-by-step instructions on how to create a personalized report, visit documentation. For more information, access the discussion on the subject at our community or the videos on our canal. 😃 Related articles How to use Click Tracker to determine which Click to WhatsApp ad is best for your business. Click Tracker - Conversion Event in practice Active Messages - Error Codes How to trigger notifications through integration with HubSpot NPS - Satisfaction Survey