# 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="/files/0LmkFRLvnaU7VBiC7K7S" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/TVqQtXMNdRdYokyMuKZz" 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="/files/A54cNDtImyvhCfzRc7p6" 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

![](/files/CO5N0s34sUAkWhc5rSls)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://changelog.gallabox.com/december-2024/13-december-ctwa-ad-based-flow.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
