Skip to content

Integration · Marketing

Connect Claude & ChatGPT to Referly

Ask your AI to add an affiliate, give them a referral link or look up which sales an affiliate brought in, and it works in your Referly program. It can create coupons and promo codes, record referrals and sales, mark a sale as refunded and update affiliates, links and codes. Affiliate admin gets done without clicking through the dashboard.

Connect Referly free

Free plan, no credit card. Takes about a minute.

Try asking

  • “Add Maria Jensen, [email protected], as an affiliate at 25% commission.”

    The AI checks that she is not already an affiliate, then creates her with the commission rate. You can choose whether she gets a welcome email.

  • “Create a 20% off coupon and a promo code SPRING20 for Maria.”

    It creates a percentage coupon, then a promo code under it that is assigned to Maria.

  • “Which sales has [email protected] brought in?”

    It lists the sales credited to that affiliate, with the amounts recorded.

What your AI can do

Affiliates and links

Find, create and update affiliates, with commission rate and status, and create, list or rename their referral links.

Coupons and promo codes

Create and update percentage or flat coupons, and create, list or retire promo codes, optionally assigned to an affiliate.

Referrals and sales

Record and update referrals, record sales so affiliates earn commission, list both, and mark sales as refunded.

  • “Record a 1,200 DKK sale for the customer who signed up with code SPRING20.”

    It records the sale matched on the promo code, so the affiliate earns commission on it.

  • “The order for sale 8841 was refunded. Update Referly.”

    It marks the sale as refunded so it no longer counts toward the commission. No money is moved.

  • “Retire the promo code WINTER10.”

    It finds the promo code and sets it to inactive so it can no longer be used.

19 tools for Referly

These tools are switched on when you connect. You can switch any of them off, or require your approval before it runs.

  • create_affiliateChanges dataAdd a new affiliate with first name, last name and email; optionally set a link slug, commission rate, status, group or commission plan. May send the affiliate a welcome email unless send_welcome_email is false.
  • create_affiliate_linkChanges dataCreate a new referral link slug for an affiliate (identify by affiliate_id or affiliate_email). Slugs use letters, numbers and hyphens and must be unique.
  • create_couponChanges dataCreate a coupon with a name and discount: coupon_type PERCENTAGE (percent_off) or FLAT (amount_off plus currency), duration, expiry and redemption limits.
  • create_promo_codeChanges dataCreate a promotional code under a coupon (coupon_id), with an exact code or an auto-generated one, optionally assigned to an affiliate and with expiry, minimum amount or redemption limits.
  • create_referralChanges dataRecord a new referred user with name, email and your own external user ID, credited to an affiliate via affiliate_id, affiliate_email or promo_code.
  • delete_referralMoves moneyPermanently delete a referral by its ID or the referred user's email. This cannot be undone.
  • find_affiliateFind an affiliate by id (UUID, link slug or click ID) or by email. Use this before creating an affiliate to avoid duplicates.
  • find_couponFind a coupon by id, name or its billing provider external_id. Use before creating a coupon to avoid duplicates.
  • list_affiliate_linksList affiliate referral links, filtered by link id, slug, affiliate_id or affiliate_email.
  • list_promo_codesList promotional codes, filtered by code, id, coupon_id, affiliate_id or affiliate_email.
  • list_referralsList referrals, filtered by referral id or email, affiliate_id, affiliate_email or your own external_id.
  • list_salesList sales, filtered by sale id, referral_id, affiliate_id, affiliate_email or your own sale/invoice external IDs.
  • mark_sale_refundedVisible to othersMark a recorded sale as refunded by sale_id so it no longer counts toward the affiliate's commission. It does not move any money itself.
  • record_saleChanges dataRecord a sale of total_earned (gross value) so the affiliate earns commission; match it via referral_id, customer email or promo_code. Optionally include tax, shipping and your own sale/invoice IDs.
  • rename_affiliate_linkVisible to othersRename an affiliate link: identify it by id or current slug (link) and give the new_link slug.
  • update_affiliateVisible to othersUpdate an affiliate (identify by affiliate_id or email_address): name, email, commission rate or active/inactive status. Setting affiliate_link adds an extra referral link.
  • update_couponVisible to othersUpdate a coupon by coupon_id: name, discount amount, duration, expiry, redemption limit, or set valid to false to stop it being redeemed.
  • update_promo_codeVisible to othersUpdate a promotional code by promotional_code_id: rename it, change expiry or limits, or set active to false to retire it.
  • update_referralVisible to othersUpdate a referral by referral_id: name, email, plan, notes, metadata or status (ACTIVE, SUBMITTED, DECLINED).

Set up in three steps

  1. 1

    Pick the app

    Create a free PipMCP account and choose Referly from the app list.

  2. 2

    Paste your key

    Paste your Referly API key. In the Referly dashboard, click API Keys in the sidebar, then Generate New API Key, and copy the token. The API needs an active Business plan and an affiliate program you have already created.

  3. 3

    Add the link to your AI

    You get a personal MCP link. Add it to Claude, ChatGPT or Cursor:

    1. Click your name, then Settings › Connectors › Add custom connector.
    2. Paste your link as the Remote MCP server URL.
    3. Switch it on from the + menu in a chat.

Questions

What can the AI do in Referly?

The AI can find, create and update affiliates, create, list and rename referral links, create and update coupons and promo codes, and create, list and update referrals. It can record sales, list them and mark a sale as refunded. It can also delete a referral if you switch that tool on.

Does the AI see my Referly API key?

No. Your Referly API key is encrypted at rest and never shown to the AI. After you save it, it is not shown again, not even to you. The AI only sees the results of the tools it calls.

Can I control what the AI is allowed to do?

Yes. You choose which tools are switched on, so you can start with lookups only. Deleting a referral is permanent, and recording sales affects commission, so those can require your approval before they run. Every tool call is logged.

Does it work with ChatGPT?

Yes. In ChatGPT go to Settings › Apps & Connectors › Advanced and turn on Developer mode, then add your PipMCP link. Developer mode needs a paid ChatGPT plan: Plus, Pro, Business or Enterprise. The same link also works in Claude (Settings › Connectors › Add custom connector), Cursor and other MCP clients.

What does it cost?

PipMCP has a free plan with no credit card required. Paid plans bill per completed task. You also need your own Referly account, and the Referly API needs an active Business plan.

Does marking a sale as refunded pay money back?

No. Marking a sale as refunded only tells Referly that the sale no longer counts toward the affiliate's commission. It does not move any money. The refund to your customer happens in your own payment system.

Let your AI work in Referly today.

Start free. Your key stays encrypted, and you decide what the AI may do.

Connect Referly free

PipMCP is not affiliated with Referly. Product names are trademarks of their owners.