# Comment to DM for Meta Ads

Automatically DM people who comment on your Instagram ads from Meta Ads Manager.

Ad posts from Meta Ads Manager don't show up in your post list. So the automation links to your ad through a **6-digit code** that you comment on the ad post.

{% dm-demo name="Kopi Senja" username="kopisenja.id" caption="An ad viewer comments ARABICA and the voucher lands in their DMs" %}
comment: rara.learns: ARABICA
bot: Here is your ad-only voucher: ARABICA15, 15% off all coffee beans ☕ [Shop Now]
{% enddm-demo %}

{% hint style="info" %}
Only in the **new dashboard**. Your ad must be **approved by Meta and Active**, posted as the Instagram account connected to the agent.
{% endhint %}

💡 Is your ad a boosted post from your profile? Just use **Specific post** in [Comment to DM](/dashboard/instagram/comment-to-dm).

#### 1. Choose the Meta ad target

Create a new automation as usual, then set up the **Trigger**:

![The Trigger step with the Meta ad target](/assets/dashboard/instagram/ads-01-pemicu.png)

1. **Source**: **Posts and Reels**.
2. **Post**: **Meta ad**.
3. The 6-digit code appears after you save the automation.
4. **Keywords**: the word your ad asks for, for example *ARABICA*.

***

#### 2. Save, then copy the code

Fill in the messages as usual, then click **Create automation**.

![The Link your ad dialog with the 6-digit code](/assets/dashboard/instagram/ads-02-kode.png)

1. Click **Copy**.
2. This status updates by itself once the code is detected.
3. A summary of steps 3–5 below.

Closed the dialog? The code stays on the automation's detail page.

![The automation detail page waiting for the code](/assets/dashboard/instagram/ads-03-menunggu.png)

1. **Awaiting code**: the automation isn't running yet.
2. **View guide** opens the dialog again.

***

#### 3. Select the ad in Meta Ads Manager

![An Active ad ticked in Meta Ads Manager](/assets/dashboard/instagram/ads-06-ads-manager-centang.png)

1. In [Meta Ads Manager](https://adsmanager.facebook.com), tick an ad whose status is **Active**.

![The Preview button above the ads table](/assets/dashboard/instagram/ads-07-ads-manager-preview.png)

2. Click **Preview**.

***

#### 4. Open the ad post on Instagram

![The Share icon and the Instagram post with comments option](/assets/dashboard/instagram/ads-08-ads-manager-share.png)

1. Click the **Share** icon.
2. Click **Instagram post with comments**.

***

#### 5. Comment the code

![The Add a comment field on the Instagram ad post](/assets/dashboard/instagram/ads-09-komentar-kode.png)

1. Type the code in **Add a comment** and post it as a new comment. Any account works, and this comment doesn't trigger a DM.

{% hint style="warning" %}
Make sure it's the **right ad post**. The automation sticks to the first post the code is commented on.
{% endhint %}

***

#### 6. Check it's linked, then delete the code comment

![The Ad linked dialog](/assets/dashboard/instagram/ads-04-terhubung.png)

1. The ad is linked.
2. Delete your code comment on the ad post. It isn't deleted for you.

![A Meta ad automation that's running](/assets/dashboard/instagram/ads-05-berjalan.png)

1. Status **Running**.
2. **Target** shows the linked ad.

Done. Comment the keyword on the ad from another account, then check the **Comment log**.

## Troubleshooting

| Problem | Fix |
| --- | --- |
| Still **Awaiting code** | Check that the code matches exactly, it was posted as a new comment (not a reply), and the ad belongs to the connected Instagram account. |
| Linked to the wrong post, or you want it on another ad | A linked ad can't be changed. **Duplicate** the automation: the copy gets a new code. |
| Comments on Facebook don't get a reply | This automation only handles comments on Instagram. |
