Link Building Outreach I Run With AI Agents: The Backlink Gap, the Emails and the Prompts

Sujan Patel is the founder of Mailshake, a sales engagement software used by 100,000 sales and marketing professionals. He has over 20 years of marketing experience and has led the digital marketing strategy for companies like Salesforce, Mint, Intuit and many other Fortune 500 caliber companies.
  • November 30, 2026

Link building outreach isn’t new for us. People have been doing it by hand: pull a competitor’s backlinks, sort through the list, find the editor, write the email, follow up, answer the replies.

The work is the same now. The only change is that AI agents do it. I write the rules and keep the decisions that need a human.

Below is the whole setup: the backlink-gap step, the emails, the reply rules, and a prompt for each agent. Copy any of it.

What is link building outreach, in one paragraph?

Short answer: Link building outreach is emailing the people who run relevant sites and asking them to link to a page of yours. The version that works starts with a backlink gap: use an SEO tool like Semrush or Ahrefs to find sites that already link to your competitors but not to you, keep only the ones with real traffic and a real topic match, and find the right contact at each. Then send a short email that names their page, points to the gap, offers to share their page with your audience (a social post or a newsletter mention) in return, and asks one yes-or-no question. Send two shorter follow-ups in the same thread that can stand on their own if the first email was never read, and stop the moment they reply. Don’t offer to pay for the link.

What changed when AI agents took over the work?

The steps didn’t change. The hours did. Most of the human time went into building the list, checking sites and writing the personal line in each email: repetitive work with clear rules, which is what agents do well. Here’s the split now:

Stage Who does it What happens
1. Data A Grok Bot backlink-gap prospector agent, an SEO tool, and a third-party data tool like VoilaNorbert or Prospeo Pull competitors’ backlinks with Semrush or Ahrefs, filter the linking sites by traffic and relevance, and find a contact at each with the connected data tool.
2. Writing A Grok Bot writer agent, following my email copy guidelines Draft a short pitch and two standalone follow-ups for each site, in my voice
3. Sending Mailshake, through the API The agent connects to Mailshake through the Mailshake API to add prospects and run the campaign (create or launch it, add recipients, and use the sequence and follow-ups). This works with Grok Bot or your AI of choice. Follow-ups can go out as replies in the same thread and stop when someone replies.
4. Replies A Grok Bot reply-handler agent, then me Draft every response. I approve them all at first. Once it’s proven, the bot handles the routine ones through the connected mailbox or Lead Catcher, never from inside Mailshake. I keep the rest.

One rule runs across all four: I review the first few emails and send those myself. After that, Mailshake runs the sequence. An agent telling me something “looks good” doesn’t count as approval. It’s my name on the email.

It’s the same idea as founder-led outbound: the founder’s name is on the email, so the founder stays in the loop at the start.

How do you find link prospects with a backlink gap?

This step decides whether the campaign works, and it’s the one step that isn’t optional in link building. You need an SEO tool. A site that already links to two or three of your competitors has shown you it covers your topic and links out to tools like yours. That’s a much warmer list than “every marketing blog.”

My prospector agent runs it like this:

  1. Pick three to five competitors. The closest ones for the same readers, not the biggest names.
  2. Pull their backlinks with one SEO tool, noting the tool and the date.
  3. Turn links into sites. You want the sites doing the linking. For each: domain, an example linking page, which competitor it links to, and any traffic figure the tool returns.
  4. Filter by traffic. Keep sites at or above your threshold. No figure means flag it, not drop it.
  5. Filter by relevance. The linking page should be a tool roundup, comparison, resource list or how-to in your category. A sidebar link from an unrelated site doesn’t count.
  6. Remove the obvious no’s. Sites that already link to you, competing vendors, and anyone you’ve already emailed.

What’s left is the outreach list.

What do Semrush and Ahrefs each do here?

Either one works for this step. I’ll only describe what each one says about itself.

Semrush. Semrush’s Backlink Gap tool compares the backlink profiles of up to five competing websites at once and lists the referring domains sending links to them. Semrush’s docs say filtering makes it easy to find the websites linking to your competitors but not to you, and the table can show an estimate of each referring domain’s monthly visits. Backlink Analytics shows the backlinks and linking websites for your site or a competitor’s. For a separate traffic check, Semrush’s Traffic Analytics is built to estimate any website’s traffic.

Ahrefs. Ahrefs’ Site Explorer lets you see which websites link to competitors and gauge the quality of their backlinks. Its Backlinks report shows all the backlinks pointing to a domain, URL or subsection, and Ahrefs’ own guide walks through filters for links with consistent traffic and authority. The same guide warns those filters can remove some good sites, which is why my agent flags borderline sites instead of dropping them.

Traffic figures from every tool are estimates. Use them to sort the list, not as facts about a site. The threshold lives in the prompt as [MIN TRAFFIC]. The right number depends on your niche, so set it, run one batch, and look at what got cut.

How do you find the right contact at each site?

Once a site passes the filter, the agent needs a person.

  1. Check the site first. The author of the linking page, the editor, or a public contact email.
  2. Connect a third-party data tool. If the email isn’t on the site, the agent uses a connected third-party data tool like VoilaNorbert or Prospeo to find the contact. For a link prospect, the agent searches by the site’s company name plus a title like editor, content lead or founder.
  3. Write down the source. Every email gets a note saying where it came from.

No contact forms, no guessed addresses. If there’s no real email, the site stays off the list.

How do you avoid emailing the same site twice?

The agent can check what already went out, either in my Gmail Sent folder (if it’s connected to my sending inbox) or through Mailshake’s sent-activity API, before it drafts anything for me to approve. Any site that’s already been emailed is skipped.

It matters here more than almost anywhere: the same site often links to several competitors, so it shows up in the pull more than once.

What link building outreach email do I send?

My writer agent follows my email copy guidelines: three or four sentences, under 90 words; one real, checkable proof point; a clear offer to share their page with our audience, in a social post or our newsletter, in return; one yes-or-no ask at the end. Each follow-up is shorter than the one before, and each one stands on its own: I don’t assume they read the earlier emails, so I restate who I am, the ask, and the offer. No “hope you’re well,” no paragraph about me, and a lowercase subject line of five words or fewer. I usually go with “interested?” Another one that works is “quick question.”

Here’s the first email. Same skeleton for every site, filled in from the backlink pull.

Step 1: The link pitch (day 1)

Subject:

interested?

Body:

{{first}},
Your "{{page_title}}" {{page_type}} links to {{competitor_linked}} for {{link_context}}, but it doesn't cover {{our_angle}}. Our {{our_page_name}} does: {{our_url}}
{{proof_point}}
Happy to share your page with our audience in a social post or our newsletter in return.
Worth adding as a link in that section?
Thanks,
[YOUR NAME]
[YOUR LINKEDIN URL]

What I’d use for {{proof_point}}: “Mailshake has 60,000 customers.”

The merge fields are the details the agent adds with each recipient:

Field What goes in it
{{first}} The author’s or editor’s first name, or “{{site}} team” if there’s no named person
{{page_title}} The exact title of the page that links to the competitor
{{page_type}} “list,” “roundup,” “guide,” or “comparison,” matched to the page
{{competitor_linked}} The competitor the page already links to, taken from the backlink pull
{{link_context}} What the page uses that link for, in a few words
{{our_angle}} The specific thing your page adds that theirs doesn’t cover
{{our_page_name}}, {{our_url}} The one page you want linked

It opens with their exact page and the competitor it links to, points at a gap, offers to share their page with our audience in a social post or our newsletter, and asks one question. No money, no guest-post offer, no reciprocal link.

What do the follow-ups look like?

The follow-ups live in the same Mailshake campaign and go out as replies in the same thread. Mailshake’s automated follow-ups stop sending when the recipient takes the action you pick, like replying. That’s the default stop action.

My guidelines cap a sequence at three emails: the first plus two follow-ups.

Step 2: Follow-up (day 3, same thread)

Subject:

Re: interested?

Body:

{{first}},
I'm [YOUR NAME]. Your "{{page_title}}" {{page_type}} doesn't cover {{our_angle}}. Ours does: {{our_url}}
Happy to share your page with our audience in a social post or our newsletter in return. Open to it?

Step 3: Final ask (day 7, same thread)

Body:

{{first}},
I'd like to get {{our_url}} on your "{{page_title}}" {{page_type}}. I'll share your page with our audience in a social post or our newsletter. Interested?

Each follow-up has to make sense on its own. I don’t assume they read the earlier emails, so I restate who I am, the page I want linked, and the offer to share their page with our audience. Never “just bumping this.” For timing, see our follow-up email lesson; for more examples, see our email outreach templates.

How does Mailshake send the sequence?

The agent connects to Mailshake through the API to add prospects and run the campaign: create or launch it, add recipients, and use the sequence and follow-ups. This works with Grok Bot or your AI of choice. If you connect an AI assistant like Claude or Grok through the Mailshake MCP server instead, Mailshake asks you to approve each campaign launch, each batch of prospects the assistant adds and each reply it sends, through a one-time link.

Before anything sends, I still do the Mailshake-side setup: clean the list to remove bad and risky addresses, set the sequence (the pitch plus the day-3 and day-7 follow-ups), spot-check a few previews for the right page title and competitor, set the sending schedule, and let follow-ups stop on reply. Replies land in your inbox and in Lead Catcher.

I review and send the first few emails myself. After that, the campaign runs. For a team setup, see Mailshake’s link building outreach software.

What happens when site owners reply?

Replies are where links get placed, so I stage this.

Stage 1: I approve every reply. The reply-handler agent reads each reply in the connected mailbox and in Lead Catcher, sorts it, and drafts a response. I give feedback, edit if needed, and send it through the connected mailbox or from Lead Catcher. The agent never sends a reply from inside Mailshake. Mailshake still sends the sequence and the follow-ups.

Stage 2: once it’s proven, the bot handles the routine ones. “Proven” means 3 to 5 drafts I’ve approved, with 2 rounds of feedback on how it writes. After that, Grok Bot answers routine replies on its own through the connected mailbox (or I send them from Lead Catcher), never from inside Mailshake. Routine in link building means:

  • A yes. Send the exact URL and a suggested anchor, then ask for the live link.
  • “Send me more.” Send the page and one line on what it covers.
  • A no or not now. A short thank-you, and the site is marked done.

What I always keep: anything about money, including every paid-placement or “sponsored post” ask; any request for a link in return; guest-post offers; deals of any kind; anything that asks for a promise; a person I already know; anything upset or sensitive; and anything unusual. The agent drafts these, flags them, and waits for me.

Expect some rate cards. Paid placements aren’t part of this campaign. If a site asks for one, the agent flags it for me and I decide case by case. The agent never agrees to one itself.

Reply templates

Reply to a yes

{{first}},
Here's the page: {{our_url}}. A natural anchor would be "{{suggested_anchor}}", but use whatever fits your sentence.
Reply with the live URL once it's up?

Reply to “send me more”

{{first}},
{{our_page_name}} covers {{our_angle}}: {{our_url}}
Does that fit the {{page_type}}?

Reply to a no or not now

{{first}},
Thanks for the quick answer. I'll leave it there.

No template for paid asks or requests for a link in return. Those come to me.

What does the weekly routine look like?

Competitors pick up new links every week, so the prospector re-pulls their backlinks on a schedule, looks only at new linking sites, runs the same filter and duplicate check, finds contacts, and adds the new sites to the campaign through the API. Semrush’s Backlink Gap lets you view new and lost links for a competitor, and Ahrefs’ guide shows filters for spotting newly built backlinks, so either can feed this.

What mistakes should you avoid?

  1. Pitching every site that links to a competitor. Without the traffic and relevance filter, you’re emailing link farms.
  2. Treating traffic estimates as facts. Use them to sort, and flag borderline sites for a human look.
  3. Pulling only one competitor. One competitor’s backlinks tell you about that competitor. Three to five tell you which sites cover your category.
  4. Guessing emails. Bounces hurt your sender reputation. A verified email with a source, or the site stays off the list.
  5. Asking for three things. One page, one ask.
  6. Saying yes to paid placements on the spot. Paid placements aren’t part of this campaign, so every paid ask comes to me and I decide case by case.
  7. Letting anyone but you approve the first few. An agent’s “approved” isn’t approval.

For the manual process this replaces, see our step-by-step process for link building.

What prompts do you need to build the agents?

All of these are generic. Swap the brackets for your own details.

Want the outreach agent ready-made? Download steve.md and add this AI agent to your AI tool of choice. It runs this same outreach.

Backlink-gap prospector agent prompt

Pulls competitors’ backlinks with an SEO tool, filters by traffic and relevance, finds contacts with a connected third-party data tool like VoilaNorbert or Prospeo, and adds the list to Mailshake.

You are [AGENT NAME], [YOUR NAME]'s link-building prospector for [YOUR DOMAIN].
Your job is the backlink-gap step. Run it before any outreach is written or queued.
1. Using Semrush or Ahrefs, pull the backlinks and referring domains for [COMPETITOR DOMAINS]. Record the tool you used and the date you pulled the list. Do not invent links.
2. Build a candidate list of linking sites (the sites doing the linking, not the competitor pages). For each one, record: domain, example linking page, which competitor it already links to, and any traffic figure the tool returns.
3. Filter that list:
   - Traffic: keep only sites at or above [MIN TRAFFIC]. If a site has no traffic figure, flag it and don't drop it on a guess.
   - Relevance: apply [RELEVANCE RULES] (for example, the site already writes about [YOUR TOPICS], or the linking page is a tool roundup, comparison, or resource list in our category). Skip sites that fail the rules.
4. Remove sites that already link to [YOUR DOMAIN] or that sell a competing product. Also remove anyone [YOUR NAME] has already emailed: check what already went out, either in [YOUR NAME]'s Gmail Sent folder (if it's connected to [YOUR NAME]'s sending inbox) or through Mailshake's sent-activity API, before you draft anything for [YOUR NAME] to approve.
5. Find a contact for each remaining site. Check the site first (author of the linking page, editor, public contact email). If it isn't there, use a connected third-party data tool like VoilaNorbert or Prospeo to find the contact. Record where each email came from. No contact forms, no guessed or placeholder addresses. If there's no verified email, flag the site and don't add it.
6. Add the remaining sites to the Mailshake campaign through the API once contacts are found, with first, email, email_source, site, page_title, page_type, competitor_linked, link_context, traffic, traffic_source and relevance_note on each recipient.
Rules: never invent backlinks, traffic figures, domains or contacts. Never offer or agree to paid placements. Work one task at a time. Nothing is pitched until [YOUR NAME] approves the list.

Link pitch writer agent prompt

Drafts the pitch and two standalone follow-ups for each approved site, following your copy guidelines.

You are [AGENT NAME], [YOUR NAME]'s outreach writer. You draft link building outreach emails in [YOUR NAME]'s voice, first person, for the approved sites in the [CAMPAIGN NAME] Mailshake campaign.
Follow these copy rules on every email:
1. Really short: 3-4 sentences, 60-90 words max, no paragraph over 3 lines. Each follow-up is shorter than the one before.
2. In the first email, include one real, checkable proof point from this approved list only: [PROOF POINT 1], [PROOF POINT 2]. Never invent one. If none fits, ask [YOUR NAME]. Skip it in a follow-up if it would pad the email.
3. End with one clear yes-or-no ask. Never ask for more than one thing.
4. Open with the person's first name and a comma. In the first email, name their exact page and the competitor it links to.
5. Ask for a link to your page: [YOUR PAGE URL]. Offer to share their page with [YOUR NAME]'s audience (a social post or a newsletter mention) in return. Never offer money. Never offer a reciprocal link.
6. Subject lines: lowercase, 5 words or fewer, built to get the open. Default to "interested?"
7. No "please" in the ask, no filler, no emojis, no bold, no marketing-speak, no paragraph about [YOUR NAME].
8. Sign off with "Thanks," then [YOUR NAME] and [YOUR LINKEDIN URL]. No phone number.
9. Maximum 3 emails per site: the pitch, a day-3 follow-up, and a day-7 final ask, all in the same thread.
10. Write every follow-up as if the recipient has not read the earlier emails. In a few words, restate who you are, the page you want linked, the offer to share their page with [YOUR NAME]'s audience, and a short question. Do not refer back to a previous email.
Fill the approved template with facts from the prospect list only. Mark anything you couldn't verify. Hand the first drafts to [YOUR NAME] for approval. [YOUR NAME] reviews and sends the first few emails personally; after that, the Mailshake campaign runs the sequence. Approval comes from [YOUR NAME] only, never from another agent.

Link outreach reply handler agent prompt

Sorts replies, drafts responses, and escalates anything about money or a link in return. Starts with every draft approved by you.

You are [AGENT NAME], [YOUR NAME]'s reply handler for the [CAMPAIGN NAME] link building campaign.
For every reply:
1. Sort it: YES (will add the link), INFO (wants more detail), NOT NOW / NO, or ESCALATE.
2. Draft a response using the approved reply templates, in [YOUR NAME]'s voice: short, one clear next step.
3. Log the reply, the category and your draft in [TRACKER FILE].
Read replies in the connected mailbox and in Lead Catcher. Draft or send responses through the connected mailbox (or leave them for [YOUR NAME] to send from Lead Catcher). Never send a reply from inside Mailshake. Mailshake still sends the sequence and the follow-ups.
Current stage: [STAGE 1 or STAGE 2]
- STAGE 1: Draft only. [YOUR NAME] approves, gives feedback on, and sends every response. Stage 1 ends only when [YOUR NAME] says so, after 3 to 5 approved drafts and 2 rounds of feedback.
- STAGE 2 (only when [YOUR NAME] has switched it on): you may send these without review, through the connected mailbox: YES (send [YOUR PAGE URL] and the suggested anchor, ask for the live URL), INFO (send the page and one line on what it covers), and a polite NO or NOT NOW (thank them, mark the site done). Everything else stays a draft.
Always ESCALATE to [YOUR NAME], never answer alone: any mention of money (paid placements, sponsored posts, rate cards), requests for a link in return, guest-post offers, deals, any request for a promise, a person [YOUR NAME] already knows, complaints or anything sensitive, and anything unusual. Paid placements aren't part of this campaign: flag every paid ask for [YOUR NAME] to decide case by case, and never agree to one yourself.
Rules: never invent facts, links, anchors or offers. Never agree to anything on [YOUR NAME]'s behalf beyond the three Stage 2 replies.

Weekly link prospecting routine prompt

Re-pulls competitors’ new backlinks every week, filters them, dedupes, finds contacts with a connected third-party data tool, and adds new sites to the campaign.

You are [AGENT NAME], [YOUR NAME]'s link-building prospector for [YOUR DOMAIN]. This is the weekly routine. Run it every [DAY].
1. Using [SEMRUSH / AHREFS], pull new backlinks and referring domains for [COMPETITOR DOMAINS] since the last run on [LAST RUN DATE]. Record the tool and the date.
2. Keep only linking sites that are new to our list. Apply the same filters as always: traffic at or above [MIN TRAFFIC] (flag sites with no figure, don't drop them on a guess) and [RELEVANCE RULES].
3. Remove sites that already link to [YOUR DOMAIN] or sell a competing product. Check what already went out, either in [YOUR NAME]'s Gmail Sent folder (if it's connected to [YOUR NAME]'s sending inbox) or through Mailshake's sent-activity API, before you draft anything for [YOUR NAME] to approve. Skip anyone already emailed, already in the campaign, or already in a thread with us.
4. Find a contact for each new site: the site first, then a connected third-party data tool like VoilaNorbert or Prospeo. Record the source. Never guess an address.
5. Aim for [WEEKLY NUMBER] new sites. Never loosen the filter to hit the number.
6. Add the new, deduped sites to the Mailshake campaign through the API, with the same recipient fields as always. Nothing new sends until it is in that campaign.
7. Send [YOUR NAME] a short summary: links pulled, sites passed, sites added, and flags.
Rules: never invent backlinks, traffic figures, domains or contacts. Work one task at a time.

Link building outreach email copy

The pitch, both follow-ups and the three reply templates are earlier in this post, with merge fields.

Want to run link building outreach in Mailshake?

The backlink gap gives you the list. A connected third-party data tool like VoilaNorbert or Prospeo finds the contacts. Mailshake runs the part that has to be reliable: list cleaning, the sending schedule, and follow-ups that stop on reply. See how AI agents run on Mailshake, or book a demo to see the campaign side first.

Continue reading

Grow Your Revenue Faster

Automate all your sales outreach with Mailshake.

Book a Demo
Footer CTA