# CTWA Ad Based Flow

### **Overview**

CTWA Ad Based flows help you connect with users who click on your WhatsApp ads. In Gallabox, setting up a CTWA Ad-based bot ensures you instantly engage users, collect important details, and guide them smoothly. This article walks you through the key fields and settings required to create your CTWA Ad Bot Flow.

***

### CTWA Ad-Based Bot Flow

1. Start by clicking on '**Add New Flow**' inside your Bot. From the dropdown choose '**Rule-Based Flow**'.&#x20;

<figure><img src="/files/DaOY2gpI02wQbKMZ0u4S" alt=""><figcaption></figcaption></figure>

2. Give your bot flow a clear and meaningful name. (Example: *Lead Capture - CTWA Campaign*).

<figure><img src="/files/mv7CocaTupZ4iIN6hbfT" alt=""><figcaption></figcaption></figure>

3. Select **CTWA Ad Based** from the Flow Type dropdown. This links your bot flow specifically to users coming through your Click-to-WhatsApp ads.

<figure><img src="/files/HDCZw71VYSy4PhOemPHB" alt=""><figcaption></figcaption></figure>

4. Choose when this flow should be triggered. You have three options - For Any Ads, For specific Ads, and For any Ad/post. If you choose the option - For specific Ads, you will have to enter the Ad Id for which you would like to run this bot flow.&#x20;

<figure><img src="/files/3aM14oAKu1R3dGVDCJE6" alt=""><figcaption></figcaption></figure>

***

### Custom Configurations

These options let you tailor the user experience even more:

1. **Nudge Contact if Question Message is Unanswered**\
   This setting allows the bot to automatically remind the user if they haven't responded to a question. You can set the number of attempts (up to 2) and the delay time (up to 60 minutes) before the reminder is sent. Optionally, you can add a custom nudge message.

<figure><img src="/files/8oHG8gR1L1eVGiNMSMf4" alt=""><figcaption></figcaption></figure>

2. **What Actions Should the Bot Take After the Flow Completion?**\
   Specify what happens once the user completes the flow. (Examples: Add a tag, Assign, or Unassign conversation.)&#x20;

<figure><img src="/files/d1TbxzV2W9GyZiiTpwkk" alt=""><figcaption></figcaption></figure>

3. **Allow Users to Navigate Back and Forth Within the Flow**\
   Enable this option if you want users to move easily between previous and next questions, offering a better experience. It will be enabled by default.&#x20;

<figure><img src="/files/YjQX3ImFQICsDUWzyzzW" alt=""><figcaption></figcaption></figure>

4. **How Long the Bot Can Wait Before Completing the Flow?**\
   Set the maximum time (in minutes) the bot should wait for user inputs before automatically ending the flow.\
   (Default Example: *1 minute*)

<figure><img src="/files/AplCwos24lG3jabAlKpH" alt=""><figcaption></figcaption></figure>

5. **Enable Flow-Level Drop-off**\
   Activating this will track if users leave midway, helping you analyze and improve your CTWA bot performance. Here is how to configure:&#x20;
   1. **Wait time**: Set how long the bot waits for a reply (e.g., 1 minute).
   2. **Inactivity message**: The bot notifies the user after the wait time (e.g., "Your session has expired").
   3. **Post-wait action**: Configure what the bot should do after the wait (e.g., end the conversation, redirect the user).

<figure><img src="/files/umu9YNAnz2n4gjz0ggBl" alt=""><figcaption></figcaption></figure>

Once you configure these settings, click on Create to start building your Bot.&#x20;

<figure><img src="/files/GBRwiEKjbG0T0bXpl58E" alt=""><figcaption></figcaption></figure>


---

# 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://docs.gallabox.com/bots/flow-in-the-bot/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.
