# Mapping Flow to Campaign

* Once the campaign is created, it needs to be mapped with the CTWA Flow in case of Conversion Objective and an utterance needs to be created as shown below:

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

METHODS TO FETCH AD SOURCE ID :

* Directly From Ads Manager -

There is a separate Ad ID which can be taken from Ads Manager while the campaign is set up and needs to be asked from the client so that it can be used directly

* From Logs -

1.) Get the preview link for the ad from the client and ask them to keep the campaign on paused state till ad source id is configured

2.) Start the flow using the name on respective number and check the logs using the below details to fetch ad source id

Kibana access to check ad source ID

{% embed url="<https://mycls.limechat.ai/app/discover>" %}

user: elastic

pass: 8F417e155eFP05IdPxnXgC8K

`Company easy name for Elastic query : <https://metabase.limechat.ai/question#eyJkYXRhc2V0X3F1ZXJ5Ijp7ImRhdGFiYXNlIjo1MiwidHlwZSI6InF1ZXJ5IiwicXVlcnkiOnsic291cmNlLXRhYmxlIjozMDczfX0sImRpc3BsYXkiOiJ0YWJsZSIsInZpc3VhbGl6YXRpb25fc2V0dGluZ3MiOnsidGFibGUuY29sdW1uX3dpZHRocyI6W251bGwsbnVsbCxudWxsLDE0NV19fQ==`>

* Select CTWA Query
* Select “bot” logs
* Change brand name in the query
* Choose “display\_id” from conversation url on helpdesk
* Go to the recent log and get ad\_source\_id from there in JSON

<figure><img src="/files/hcGNRQwsB9hqpjH4GUlm" 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://limechatai.gitbook.io/limechat-product-guide/automation/automation-flows/click-to-whatsapp-ads-ctwa/setup-process-onboarding/mapping-flow-to-campaign.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.
