How to Get the Entry Point Overview July 03, 2024 14:20 Updated Business Messages is a mobile conversational channel for brands that allows users to contact companies from various entry points, including organic Google searches, Google Maps, and widgets. Given these possibilities, it is necessary to understand which conversion point attracts the most users to the channel. To analyze this information directly in Blip, some steps are necessary: First, you need to configure your smart contact flow to generate event logs of the entry points. In the settings of the start block of your smart contact flow, go to the Actions tab and add an exit action of the type Execute script. In Input Variables add the variable input.message Click on the Script option In the builder.js window that opens, add the following script: function run(inputMessage) { let inputMessageFormatted = JSON.parse(inputMessage); let metadata = inputMessageFormatted.metadata; if (metadata["#context.entryPoint"]) { return metadata["#context.entryPoint"] } else { return null }} Note: The message containing the metadata related to the user's context in GBM, in some cases, also has the following properties: Variable Description #context.userInfo.userDeviceLocale User's locale (pt, en, es) #context.widget.url URL of the page where the widget was inserted #context.widget.widgetContext Custom value associated with the widget #context.placeId Google Places identifier for a location (Place ID) #context.nearPlaceId Google Places identifier for the location nearest to the user If any of these variables also make sense for you, feel free to adapt or create a script to return them. With the entry point in hand, you can use this information for various purposes, such as directing the user to specific flows, saving to the contact, and recording trackings. For more information, access the discussion on the topic in our community or the videos on our channel. 😃 Related articles How to identify users coming from a Click to Chat WhatsApp ad published on Facebook How to add a bot to a website using Blip Chat How to Verify Google My Business GMB Audience file configuration - Bulk notification sending How to Create Custom Reports