> For the complete documentation index, see [llms.txt](https://learn.doubletick.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://learn.doubletick.io/bot-studio/set-up-bot-triggers/lead-from-ctwa.md).

# Lead from CTWA

Lead from CTWA is a bot trigger that activates when a customer messages you through a Click-to-WhatsApp advertisement, and the Facebook ad account running that ad is connected to DoubleTick.

This trigger is useful because DoubleTick can identify the exact ad source, meaning you can run different bot journeys for different campaigns.

***

#### <mark style="color:$primary;">**What Is the Lead from CTWA Trigger?**</mark>

{% embed url="<https://youtu.be/unijjtHieWI?si=xugYvGHFVQfOmPkg>" %}

#### <mark style="color:$primary;">**Where to Use This Trigger**</mark>

Use Lead from CTWA when:

* You run CTWA ads from your own Facebook Business Manager
* You want automation based on which ad the customer clicked
* You want accurate campaign-level tracking inside DoubleTick

This trigger is best suited for businesses that manage their ads internally and want structured lead handling.

#### <mark style="color:$primary;">**How to Use It in Bot Studio**</mark>

1. First, connect your Facebook ad account inside DoubleTick
2. Open Bot Studio and click Create Journey
3. Select the trigger Lead from CTWA
4. Choose the scope you want:
   * Entire ad account
   * Specific campaign
   * Specific ad set
   * Specific ad
5. Build the bot flow and publish it

Once published, any lead coming from the selected ad will automatically enter the correct bot journey.

#### <mark style="color:$primary;">**Key Capabilities**</mark>

* Supports ad-level automation with full attribution
* Helps run different bot journeys for different campaigns
* Ensures leads are handled based on the ad they interacted with

#### <mark style="color:$primary;">**Example Use Case**</mark>

You run two ads: one for product pricing and one for demo booking.\
When a customer clicks the demo ad, DoubleTick triggers a bot that collects demo details instead of showing pricing information.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://learn.doubletick.io/bot-studio/set-up-bot-triggers/lead-from-ctwa.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.
