Marketing

Redirect broken backlinks every month

Every month, Merlin finds the links other sites point at your pages that now return a 404. It opens a pull request redirecting each one to its closest live page.

@Merlin on the 15th of every month at 10:00, list the backlinks to acme.com that point at pages returning a 404, from Ahrefs, skipping spam and nofollow links. For each dead page, find the closest live page in acme/website and open one pull request that adds a 301 redirect for each. Post here how many linking sites each redirect wins back, with the pull request link. List any page with no close match instead of redirecting it to the home page. Don't merge it: a person reviews it.

#marketing
Get started for free
  1. Starts whenOn the 15th of every month at 10:00, a monthly Merlin schedule posts to #marketing
  2. Merlin worksClaude Code or Codex lists the backlinks pointing at dead pages in Ahrefs and finds the closest live page for each in the website code
  3. You getA pull request adding a redirect for each dead page, linked in #marketing with the links it wins back

Tools

  • Slack
  • Ahrefs
  • GitHub

Capabilities

  • Automations
  • Integrations
  • Your agent's MCP

How it works

From links to dead pages to a redirects pull request.

On the 15th of every month at 10:00, the automation you created from #marketing starts a run.

/AcmeTeam/Automations/Redirect broken backlinksFeedback?M

Overview

Agents

Skills

Memory

Automations

Integrations

Settings

Redirect broken backlinks

Pause
StatusActive
CreatorM Maya You
ScopeWorkspace
Last runOct 15, 2026, 10:00 AM

DetailsRun history

Trigger

When Merlin runs it.

RuleHow often Merlin runs it.Monthly
Day of monthShort months use their final day.15
TimeNext run Nov 15, 2026, 10:00 AM.10:00

Run

What Merlin does each time, where it runs, and where the result goes.

Run instruction

on the 15th of every month at 10:00, list the backlinks to acme.com that point at pages returning a 404, from Ahrefs, skipping spam and nofollow links. For each dead page, find the closest live page in acme/website and open one pull request that adds a 301 redirect for each. Post here how many linking sites each redirect wins back, with the pull request link. List any page with no close match instead of redirecting it to the home page. Don't merge it: a person reviews it.

RuntimeThe computer and coding agent that run it.Maya's MacBook Pro · Codex
DestinationWhere Merlin posts the result. Choose None when the instruction already acts in your tools.#marketing

Before and after

Links other sites gave you keep counting after a page moves.

Without Merlin

Someone exports broken backlinks from Ahrefs, matches each dead page to a live one and asks an engineer for the redirects.

  1. 01Open the broken backlinks report
  2. 02Filter out spam and nofollow links
  3. 03Export the dead pages
  4. 04Count linking sites per page
  5. 05Find the closest live page
  6. 06Write the redirect map
  7. 07Ask an engineer for the redirects
  8. 08Add them to the site config
  9. 09Open a pull request
  10. 10Share it in #marketing

With Merlin

A monthly schedule turns broken backlinks into a redirects pull request, and a person reviews it.

  1. Day 15 of every month at 10:00Monthly Merlin schedule in #marketing
  2. Matches each dead page to a live oneAhrefs and the website code
  3. Redirects pull request, linked in #marketingWith the links each one wins back

Setup

Give your agent Ahrefs and the website code, then schedule the check from #marketing.

Set these up once and the redirects arrive every month. Merlin never merges, so a person reviews every change.

  1. 01Connect a machineRuntimeInstall the Merlin desktop app or CLI on a computer running Claude Code or Codex. You can also use a machine a teammate shares with your workspace.
  2. 02Add Merlin to SlackIntegrationsInstall the Slack app and add Merlin to the channel you work in. A private channel needs /invite @Merlin.
  3. 03Add Ahrefs to your agentYour agent's MCPConnect the Ahrefs MCP server to Claude Code or Codex on the machine that runs this. Its credentials stay on that machine.
  4. 04Install the GitHub appIntegrationsPick the repositories Merlin can access, so it can read and link the pull requests there. Pushes use the machine owner's own Git access.
  5. 05Keep your code on the machineRuntimeMerlin reads the code in a local project on the runtime, so keep the repository checked out there.
  6. 06Choose who sends the promptRuntime

    Runs act for the automation's creator and prefer a machine they own, then a public one (choose a runtime). Send the prompt from the machine with the website checked out and Ahrefs connected.

  7. 07Paste the setup promptAutomationsSend the prompt below to @Merlin in Slack, in the channel it should post to. Merlin creates the automation and tells you what it set up.

Prompt

Schedule the monthly redirects with one message in #marketing.

@Merlin on the 15th of every month at 10:00, list the backlinks to acme.com that point at pages returning a 404, from Ahrefs, skipping spam and nofollow links. For each dead page, find the closest live page in acme/website and open one pull request that adds a 301 redirect for each. Post here how many linking sites each redirect wins back, with the pull request link. List any page with no close match instead of redirecting it to the home page. Don't merge it: a person reviews it.

#marketing

Once, when you send it

  1. PromptYou send the prompt to @Merlin
  2. AutomationMerlin creates the automation

Every scheduled run

  1. ScheduleThe schedule starts a run
  2. RuntimeMerlin picks the creator's machine first
  3. ContextThe run gathers context
  4. WorkClaude Code or Codex matches each dead page to a live one
  5. ResultMerlin posts the pull request in #marketing
  6. SteeringReplies in its thread follow up

Bring your coding agents into the tools your team already uses.

Let your whole team hand work to Claude Code and Codex today. Connect one machine and add Merlin to Slack, Linear or GitHub. 14-day free trial, no API keys, no card.