# 13 December: CTWA Ad based flow

### ✨ New

**Chatbot: CTWA Ad based flow**\
We can now create a CTWA ad-based flow that can be triggered by a specific ad ID or for all ads.

{% hint style="info" %}
To find the Ad ID

1. Go to [Ads Manager](https://www.facebook.com/ads/manage/accounts/?campaign_id=163681540489385\&creative\&placement=%2Fbusiness%2Fhelp%2F2534657046763437).
2. Click on the campaign, ad set or ad you want to trigger the bot in Gallabox for.
3. Find the number in your browser's address bar. If you have trouble with locating your campaign, ad set or ad ID in the address bar, look for **selected\_campaign\_ids**, **selected\_adset\_ids** or **selected\_ad\_ids** in the URL.
   {% endhint %}

<figure><img src="https://4041939653-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKvXbyN7GvoMO6ReyVRS6%2Fuploads%2FO9qhjsZfJpgnjpFyR61r%2FCTWA%20bot%20flow.gif?alt=media&#x26;token=6cd9778a-b2e3-4423-a63f-54291e1ee6f1" alt=""><figcaption></figcaption></figure>

A few session variables have been added to share or store values used throughout the bot flow.

<figure><img src="https://4041939653-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKvXbyN7GvoMO6ReyVRS6%2Fuploads%2Fe9uP5Bcm3oUj5fZo89bE%2FCTWA%20session%20variables.gif?alt=media&#x26;token=8a722e90-2798-4cc7-a98c-df5fb8cd79cb" alt=""><figcaption></figcaption></figure>

### ⚙️ Improvements

**CTWA Tagging and Timer Display for Conversations**&#x20;

Conversations via CTWA will have a unique tag for easy identification. A 24-hour session opens once a conversation starts. If the business replies within this time, a 72-hour window follows for further discussion and issue resolution, encouraging active communication.

<figure><img src="https://4041939653-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKvXbyN7GvoMO6ReyVRS6%2Fuploads%2FaioZIUL6l2Rw3utUcDpb%2FCTWA%20conversation%20message.png?alt=media&#x26;token=6c2f3ca4-098b-46d0-af26-cda317402d78" alt=""><figcaption></figcaption></figure>

If a contact is created through CTWA, the CTWA source URL, source ID, and contact creation source are displayed in the right panel and are not editable.

For example –

* **CTWA Source URL**: <https://www.example.com/ctwa-chat>
* **Source ID**: 12345-abcde
* **Contact Created Source**: CTWA

![](https://4041939653-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKvXbyN7GvoMO6ReyVRS6%2Fuploads%2FMX5kVMQHM4wkJ8j8OrxV%2FCTWA%20contact.png?alt=media\&token=fdab7d2e-6ce7-4d2b-ab2a-4058e7e46455)
