> For the complete documentation index, see [llms.txt](https://docs.quickreply.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.quickreply.ai/product-modules/ai-builder/ad-id-and-post-id-mapping.md).

# Ad ID and Post ID mapping

## Concepts

{% embed url="<https://youtu.be/wKGiPmb5ENU>" %}

#### **Meta Ad ID**

Every ad on Meta (Facebook or Instagram) is assigned a unique **Ad ID** when it’s created in the Meta Business Manager (BM).\
By mapping this **Meta Ad ID** in your AI Builder, you’re linking your ad campaign to a bot—so whenever a user clicks *Send Message* on that ad, the bot automatically responds inside Instagram DMs.

#### **Comment to DM**

This feature lets your bot send an automatic DM whenever someone comments on a specific Instagram post.\
You can specify which post(s) to monitor using their **Post ID**. The bot will detect new comments on these posts and start a personalized chat in the user’s DMs—ideal for giveaways, product teasers, or engagement-based campaigns.

{% hint style="warning" %}
**Keep in mind:** Comment to DM sends **only one** automated message per comment.\
So when you add a Post ID, build **the first node** in **one single message** that contains **all the details + quick replies/buttons**. Avoid using multiple text nodes, because only the first message will be sent.
{% endhint %}

## **How to Use CTID**

{% embed url="<https://youtu.be/GoEBK1PjI5E>" %}

#### Meta Ad ID Mapping

**Step 1: Get your Meta Ad ID**

1. Go to your **Meta Business Manager (BM)**.
2. Open the **Ads Manager** section.
3. Select the **Ad** you want to connect with your bot.
4. In the **URL bar**, you’ll see a numeric value like `act=1234567890&ad_id=987654321`.
   * The number after `ad_id=` is your **Meta Ad ID**.

**Step 2: Map it inside AI Builder**

1. In your QuickReply dashboard, open your **Gen AI Bot**.
2. Go to the **Configure** tab.
3. Under **“Specify Meta Ad IDs that this bot will interact with”**, click **+ Add Meta Ad ID**.
4. Paste your **Meta Ad ID** and save.

#### Comment-to-DM

**Step 1: Get your Instagram Post ID**

1. Go to your **Meta Business Suite**.
2. Open the **Posts & Reels** section.
3. Select the Instagram post you want to connect.
4. Click on the post and copy the **Post ID** from the URL (it usually looks like a long numeric string or ends with `/posts/{post_id}`).

**Step 2: Map it inside AI Builder**

1. In your QuickReply dashboard, open your **Gen AI Bot**.
2. Go to the **Configure** tab.
3. Under **“Specify Instagram Post IDs that this bot will send a DM if anyone comments (Comment to DM)”**, click **+ Add Post ID**.
4. Paste your **Post ID** and save.
