---
title: "How to Share Affiliate Links in Instagram DM Replies"
pubDate: 2026-12-01
description: "Build Instagram DM replies that answer a follower’s gear question, check compatibility and share a disclosed affiliate link when it fits."
author:
  name: Jakub Swistak
  image: /blog-assets/authors/jakub_swistak.webp
image:
  url: "/blog-assets/posts/instagram-dm-affiliate-links-for-creators_bg.webp"
  alt: "A phone clamp and tripod beside a mirrorless camera and a smartphone"
tags: ["tutorials"]
articleCta:
  title: "Build an Instagram DM assistant"
  subtitle: "Start with the two items your followers ask about most often."
  button: "Create an AI Agent"
  href: "https://app.quickchat.ai/register"
  note: "Commercial use requires a paid plan. Generated replies use AI credits."
faq:
  - question: "Can Quickchat AI share affiliate links in Instagram DMs?"
    answer: "Yes. A connected AI Agent can add an approved affiliate link to a reply to an incoming DM or Story reply. Give it the link, the conditions for sharing it and the disclosure in its Knowledge Base. Use a Professional Instagram account with message access."
  - question: "Can a Reel comment trigger an affiliate DM?"
    answer: "Quickchat AI replies to incoming DMs and Story replies. Ask followers to message you directly if you want to share a recommendation from a Reel. A comment alone does not start an AI reply."
  - question: "Can I share a promo code in an Instagram DM?"
    answer: "Yes. Give the AI Agent the exact code, who qualifies, any exclusions, and the end date with its time zone. Share the code when those terms fit the request. If you may earn a commission when it is used, disclose that next to the code in the reply."
  - question: "How do I keep expired codes out of replies?"
    answer: "Record the eligibility and end time with its time zone. Remove the code and any copies when the offer ends, then start a fresh test chat and ask for the old code. The reply should explain that there is no verified current offer."
---

A follower wants to copy Frame School’s overhead shot. Their phone is **73 mm wide with the case on**. Another follower has the same arm and a **92 mm phone**. Only one should get your affiliate link.

The example below uses a fictional photography educator, a clamp that fits **58 to 85 mm**, and an arm with a **1/4-20 screw**. Here’s the qualifying reply from a local Quickchat AI Preview run. You can try both widths before connecting your Instagram Creator or Business account.

> **Follower** Can I put my phone on the arm from your flat-lay Story? It’s 73 mm wide with the case and I need a clamp.
>
> **Frame School assistant**
>
> Yes! Your **73 mm** phone fits the Desk Mini Clamp, which attaches to the arm’s 1/4-20 screw.
>
> Frame School may earn a commission if you buy through this link.
> `https://example.com/shop/desk-mini?ref=frame-school`

<div class="tutorial-phone-gallery">
<figure class="tutorial-phone">

![Local Quickchat AI Preview chat showing the 73 mm phone question, the Desk Mini Clamp recommendation, and a disclosure directly above the sample referral link](https://quickchat.ai/_astro/preview-fit.0gms-l5s_1JpVba.webp)

<figcaption>73 mm with the case. In local AI Preview the link follows the fit check and commission disclosure.</figcaption>
</figure>
<figure class="tutorial-phone">

![Local Quickchat AI Preview chat explaining that a 92 mm phone is too wide for the 85 mm clamp and showing no purchase link in the reply](https://quickchat.ai/_astro/preview-too-wide.DAk5jYSm_AHJFb.webp)

<figcaption>92 mm with the case. In a separate Preview conversation the Agent explains the 85 mm limit and omits the link.</figcaption>
</figure>
</div>

For the 92 mm phone, the same Agent explained that the case was too wide and left the link out. Use the two widths to check when the Agent should share the link. Step 5 repeats the purchase question in a real DM so you can check what arrives on the phone.

## What you need

- A Quickchat AI account and a practice AI Agent. Commercial use requires a paid plan. AI Preview and Simulation replies use AI credits.
- An Instagram Professional account (Creator or Business) you can authorize to manage messages. Keep a second account signed in separately, such as on your phone, to see the reply as a follower.
- For your own recommendation, gather the accessory name, manufacturer’s compatibility specs, the exact approved affiliate URL and the commission disclosure. Check that the program permits links in Instagram DMs, and note the expiry and time zone of any promotion. The Frame School URL below is a placeholder for practice. [FTC guidance on endorsements and affiliate links](https://www.ftc.gov/business-guidance/resources/ftcs-endorsement-guides-what-people-are-asking)

## 1. Set up the Agent and its reply rules

The **Main Prompt** tells the Agent how to make a recommendation. For Frame School, that means checking what the follower wants to mount, asking for missing dimensions, then sharing a link only when a compatible accessory is needed.

1. In a new Quickchat account, click **Set up manually** on **Getting Started**. If your workspace already has an Agent, open the Agent picker and click **Add new AI Agent** to create a practice Agent. If you already have a practice Agent, select it and go straight to the **Main Prompt** editor described at the end of this step.
2. In the setup **Identity** step, enter **Frame School** in **Name your AI Agent**. Open the copyable prompt below and paste the full text into **Describe what you want your agent to do**. Click **Next**. Quickchat saves that text as the **Main Prompt**.
3. On the setup **Knowledge Base** screen, leave the website and file inputs empty and click **Next**. Click **Next** through **External apps** and **Deployment** with no selections, then choose **Skip for now** on the plan screen if you are practicing. The sidebar is available after setup, and you will add the articles there.
4. In the sidebar, open **AI Agent → Identity**, then select **AI Persona → Main Prompt**. Check that the editor shows the full text below. If you started from an existing practice Agent, paste it here. Close the editor to return to **Identity**. Changes save automatically. Reopen **Main Prompt** to confirm the final lines are still there. [Quickstart](https://quickchat.ai/docs/quickstart) · [Main Prompt settings](https://quickchat.ai/docs/ai-agent/identity)

<figure class="tutorial-context tutorial-compact" style="--capture-ratio: 2320 / 912; --capture-width: 46rem">

![Frame School’s Main Prompt editor open over the Identity page with AI Persona selected](https://quickchat.ai/_astro/main-prompt.8gehcPY5_1SMGrK.webp)

<figcaption>The Main Prompt editor in the local Frame School Agent. Copy the full text below into this field.</figcaption>
</figure>

<details class="tutorial-artifact">
<summary>Copy the gear recommendation Main Prompt</summary>

```text
You are the Frame School assistant. Answer questions about our tabletop photography lessons and gear in plain language.

Use the Knowledge Base for item names and fit requirements. Ask which item the follower means when the message and available context leave the item unclear. Ask for the missing measurement or thread type when it determines fit.

Explain the fit first. If the follower already owns compatible equipment, explain how to check it and skip the purchase link. If the follower needs a compatible item, copy its approved URL including its referral parameters. Put the affiliate disclosure from the item record in the same reply, immediately before the URL.

Use current offer terms from the Knowledge Base. If you cannot verify a discount code, say so without inventing one. Never invent stock, prices, specifications, or offers.
```

</details>

## 2. Add the gear specs and the approved link

The arm record gives the Agent the mounting thread. The clamp record gives it the width range, its thread, the URL and the disclosure. For a fit, both threads must match and the phone’s full width, including any case, must fall inside the clamp’s range. Keeping the URL in the clamp record gives you one place to update it.

1. With **Frame School** selected, open **AI Agent → Knowledge Base** in the sidebar and click **Add Article**.
2. In **Title**, enter **Overhead arm from the flat-lay tutorial**. In **Content**, paste the first block below. Click **Save**.
3. Click **Add Article** again. Enter **Desk Mini Clamp** in **Title**, paste the second block into **Content** and click **Save**.
4. In the article list, wait for **Ready** in the **Status** column for both rows. If a row shows **Failed**, click **Retry** by the failure notice at the top and confirm it reaches **Ready**. Open the clamp article and check that the URL still ends in `?ref=frame-school`. [Knowledge Base setup](https://quickchat.ai/docs/ai-agent/knowledge-base)

<figure class="tutorial-context tutorial-compact" style="--capture-ratio: 2320 / 1002; --capture-width: 46rem">

![The Frame School Knowledge Base with Add Article above the Desk Mini Clamp and overhead arm rows, and Ready beside both rows](https://quickchat.ai/_astro/knowledge-ready.EvOey9f5_1lwzY6.webp)

<figcaption>In the local Quickchat AI dashboard, both gear articles show Ready in the Status column.</figcaption>
</figure>

**Overhead arm from the flat-lay tutorial**

```text
The Frame School flat-lay tutorial uses the Overhead Arm. The arm has a 1/4-20 mounting screw. Phones need a compatible clamp. A camera plate alone will not hold a phone. Check the thread and clamp's supported width, including any case.
```

**Desk Mini Clamp**

```text
The Desk Mini Clamp fits phones 58 to 85 mm wide including the case and mounts on a 1/4-20 screw. The creator-approved affiliate URL is https://example.com/shop/desk-mini?ref=frame-school. Use this disclosure in any reply containing that link: Frame School may earn a commission if you buy through this link. There is no current discount code.
```

For your own gear, get the thread size and width range from the manufacturer. Ask followers for the width of the phone as they plan to mount it, including the case. In the example, 73 mm fits within 58 to 85 mm and the threads match, so the follower who needs a clamp can get the link. At 92 mm the same clamp is too small, even with the right thread.

## 3. Test the answers before connecting Instagram

1. Open **AI Preview** in the sidebar. If the chat is collapsed, click the launcher inside the preview.
2. In the chat header, click **New conversation** (the pencil icon). Paste the first question below into the message box and send it. Check the reply against the first row in the table.
3. Click **New conversation** before each of the four remaining questions. A fresh chat makes the short “Does this fit?” question a test of what the Agent does when the item really is unclear.

Copy one message at a time for Preview. The `---` lines are separators for the optional Simulation in the next section.

```text
Can I put my phone on the arm from your flat-lay Story? It’s 73 mm wide with the case and I need a clamp.
---
Does this fit?
---
I already have a phone clamp with a 1/4-20 thread. What else should I buy to put my phone on your flat-lay arm?
---
My phone needs to stay in its case. It is 92 mm wide with the case on. Will it fit the Desk Mini Clamp?
---
Can I still use the discount code from your old Desk Mini Clamp Story?
```

| Test case | Check in the reply |
| --- | --- |
| Clamp needed | Names the Desk Mini Clamp, confirms the width and thread, and puts the disclosure immediately before the exact approved link. |
| Missing item | Asks which item the follower means and leaves out the purchase link. |
| Clamp already owned | Explains how to check the existing clamp’s fit and leaves out the purchase link. |
| Phone too wide | Explains that 92 mm is wider than the 85 mm limit and leaves out the purchase link. |
| Old discount code | Says there is no verified current code. |

All five questions were run in separate local Quickchat AI Preview conversations. For “Does this fit?”, the reply was “Which item do you mean, and what are you trying to attach it to?” For the follower with a clamp, the Agent suggested checking its width range and omitted the purchase link. For the old code, it said there was no current discount.

If a reply misses the fit requirement or uses the wrong URL, check the two articles first. If it shares a link when it should ask a question or fails to disclose the commission, check that the complete **Main Prompt** is saved. After editing an article, wait for **Ready**, then rerun the failed question and the first qualifying question in fresh chats.

### Save the five questions for repeat testing

1. Open **Conversations → Testing**. Click **Create Dataset** and enter **Frame School DM checks** in **Dataset name**.
2. Select **Paste messages** and paste the entire block above, including the `---` separator lines. Click **Create**. In **Messages**, check that the five questions appear as separate rows.
3. Click **Run**. In **Start Test Run**, review the credit cost and give the run a label if you like. Click **Start Run** and wait for **5/5 messages processed**.
4. Compare the **AI Response** for each row with the table. Use **View** to open the full test conversation and inspect the disclosure and URL. You can run the same dataset again after updating the Agent. [Simulation setup](https://quickchat.ai/docs/conversations/testing)

### Prepare the setup from ChatGPT or Claude

You can also use the Quickchat AI account connection in [ChatGPT](https://chatgpt.com/plugins/plugin_asdk_app_6a4656c688748191be4c5247fb0d5dfc) or [Claude](https://claude.ai/directory/connectors/app-quickchat-ai) to add the articles, set the Main Prompt and create a test dataset. Provide the Main Prompt, both article titles and contents, and the five test messages with this request. [Manage with AI](https://quickchat.ai/docs/manage-with-ai)

```text
Use the Quickchat AI account connection to find my practice Agent named Frame School. Save the exact Main Prompt I provided. Add the two Knowledge Base articles with their exact titles and content. Create a Testing dataset named Frame School DM checks with the five messages I provided as separate entries. Show me what you saved and wait for my approval before running a Simulation.
```

Check the saved settings and wait for the articles to show **Ready**. Complete Instagram authorization in the Quickchat AI dashboard, then perform the delivery check below.

## 4. Connect the Instagram account

Use a dedicated Professional test account to run the fictional Frame School setup on Instagram. If you are connecting your public creator account, first replace the sample records with your own offers as described in step 6 and repeat the Preview checks. Once **Enable Instagram** is on, the Agent can answer other eligible DMs to that account, including an inbox you use for sponsorships.

1. Confirm the Agent you just tested is selected in Quickchat AI. Open **Channels → External Apps → Instagram** and click **Connect to Instagram**. An Instagram account connects to one AI Agent at a time.
2. In the Instagram sign-in window, confirm the username before granting access. Instagram uses the account already signed in to that browser. If you need a different account, return to Quickchat and choose **Sign in as a different account**. If the browser blocks the pop-up, choose **Continue in this tab**.
3. Leave **Access and manage messages** enabled and confirm the authorization. Once you are back in Quickchat, check the **@username** and **Connected since** date, then make sure **Enable Instagram** is on for the test. The panel can show **Waiting for your first DM** until a message arrives. [Instagram authorization and setup](https://quickchat.ai/docs/channels/instagram)

## 5. Verify the reply in Instagram and Quickchat

The screenshots above show the local Preview run. Use the connected account to verify delivery. If you have replaced the fictional gear, substitute your own item names, one measurement that fits and one beyond the limit. Use a phone or browser signed in to the separate account.

1. From the separate Instagram account, open the connected profile and tap **Message**. Send the first test question with the **73 mm** width. The received reply should name the Desk Mini Clamp and put the commission disclosure directly before the URL.
2. In the same thread, send “My phone is actually 92 mm wide with the case on. Will it still fit?” The next reply should explain the 85 mm limit and omit the URL. This follow-up checks a correction in a live conversation. The independent 92 mm question in AI Preview checks fit without earlier context.
3. With the same Agent selected in Quickchat AI, open **Conversations → Inbox** and find the thread by the sender’s Instagram name. Compare both questions and replies with what you see on the sender’s phone. In **Details → Conversation**, check that **Channel** shows **Instagram**. [Inbox](https://quickchat.ai/docs/conversations/inbox)
4. With your own approved URL in place, tap the link on the sender’s phone. Check that it opens the intended product and preserves the referral parameters your program requires. If you enable Quickchat Link Tracking, confirm the partner accepts its redirects. In Quickchat, check **Conversations → Insights → Advanced → Link tracking → Shared and clicked links** for the test click. Use the partner’s reporting to verify referral attribution, redemptions or commissions. [Link Tracking](https://quickchat.ai/docs/conversations/insights/advanced)

### If the test DM does not get a reply

| What you see | What to check |
| --- | --- |
| The DM is absent from Inbox | Check that the selected Agent and connected @username are correct and **Enable Instagram** is on. If the panel still shows **Waiting for your first DM**, check the message permission and reconnect with **Access and manage messages** enabled. Send a new DM from the separate account. |
| The question is in Inbox and the thread is assigned to a teammate | Open **Assignee** in the conversation, select **AI Agent**, then send another message from the test account. |
| The panel says access expired or Instagram is refusing replies | Click **Reconnect** and authorize the same account again. If the panel specifically says Meta has temporarily blocked the account, open **Account Status** in the Instagram app to see the restriction and request a review. |

Instagram’s reply window lasts 24 hours from the follower’s last message. For the test, send a fresh DM from the separate account. If you plan to use Story replies, send a reply to the actual Story from that account and inspect the reply and Story context in Inbox. [Instagram auto reply guide](https://quickchat.ai/post/instagram-ai-chatbot-answer-dms)

## 6. Go live with your own offers

With the practice Agent selected, open **AI Agent → Knowledge Base**. Open each demo article, replace its **Title** and **Content** with verified facts about your own gear and offers, and click **Save**. Update the name and subject matter in **Identity → AI Persona → Main Prompt**. Keep the compatibility or eligibility details with each destination.

- **Your guide or product.** Record who it helps, any prerequisites, the current price if there is one, and the destination. A free illustrated mounting guide is useful when someone can keep the clamp they already own.
- **A partner recommendation.** Record the conditions that make the item a good fit, the exact approved link, and the commission disclosure. Put the disclosure in the reply before the link. If the recommendation is sponsored, also name the relationship.
- **A time-limited discount.** Record the code, qualifying orders or regions, exclusions, and the expiry with its time zone. Include the commission disclosure next to the code if you earn a commission when it is used.

Wait for the edited articles to show **Ready**, then repeat the Preview checks with your own products and limits. If you connected a test account, use **Disconnect** in its Instagram panel, then connect your creator account using step 4. Send the qualifying DM from the separate account. Once you see the correct reply on the sender’s phone, you can give followers a specific invitation in a Reel or Story, such as “DM me the name of your arm and your phone’s width with the case on.” The follower sends the message in their own words. Review early conversations in **Inbox** and switch off **Enable Instagram** if you need to pause replies while you make a correction.

When an offer changes, update or remove obsolete links and codes from every article that mentions them. Wait for **Ready**, start a **New conversation** and ask for the old offer. For a code that must stop at an exact deadline, use the [timed Instagram DM offer tutorial](https://quickchat.ai/post/instagram-dm-keyword-offer-code) to set the sale window and test both sides of the cutoff.

## Frequently asked questions

### Can Quickchat AI share affiliate links in Instagram DMs?

Yes. A connected AI Agent can add an approved affiliate link to a reply to an incoming DM or Story reply. Give it the link, the conditions for sharing it and the disclosure in its Knowledge Base. Use a Professional Instagram account with message access.

### Can a Reel comment trigger an affiliate DM?

Quickchat AI replies to incoming DMs and Story replies. Ask followers to message you directly if you want to share a recommendation from a Reel. A comment alone does not start an AI reply.

### Can I share a promo code in an Instagram DM?

Yes. Give the AI Agent the exact code, who qualifies, any exclusions, and the end date with its time zone. Share the code when those terms fit the request. If you may earn a commission when it is used, disclose that next to the code in the reply.

### How do I keep expired codes out of replies?

Record the eligibility and end time with its time zone. Remove the code and any copies when the offer ends, then start a fresh test chat and ask for the old code. The reply should explain that there is no verified current offer.
