Marketing
Find the keywords your competitors rank for
Ask Merlin in Slack which keywords your competitors rank for and you don't. It compares the sites in Ahrefs and sends back the gaps by topic, with the full list.
@Merlin from now on, when someone in #marketing asks which keywords competitors rank for and we don't, pull the organic keywords for acme.com and each competitor's site from Ahrefs. Keep the keywords where a competitor ranks in the top 10 and acme.com doesn't rank in the top 100. Reply with the biggest gaps grouped by topic, with search volume, keyword difficulty and which competitor ranks, and attach the full list as a CSV. Only read from Ahrefs: don't create projects or keyword lists.
- Starts whenA marketer mentions
@Merlinin#marketingwith the competitor sites to compare Merlin worksClaude Code or Codex pulls the organic keywords for your site and each competitor's from Ahrefs and keeps the ones only they rank for
- You getThe biggest gaps grouped by topic in the thread, with the full list as a CSV
Tools
- Slack
- Ahrefs
Capabilities
- Integrations
- Your agent's MCP
How it works
From a few competitor sites to the keywords you're missing.
Mention
@Merlinin#marketingwith the competitor sites to compare. Teammates can narrow it in the thread, like to one country.Claude Code or Codex pulls the organic keywords for
acme.comand each competitor from Ahrefs, then keeps the ones where a competitor ranks in the top 10 and you don't rank at all.The biggest gaps come back grouped by topic, with search volume, keyword difficulty and who ranks. The full list arrives as a CSV in the thread.
Mention @Merlin in #marketing with the competitor sites to compare. Teammates can narrow it in the thread, like to one country.
Claude Code or Codex pulls the organic keywords for acme.com and each competitor from Ahrefs, then keeps the ones where a competitor ranks in the top 10 and you don't rank at all.
The biggest gaps come back grouped by topic, with search volume, keyword difficulty and who ranks. The full list arrives as a CSV in the thread.
Acme
Channels
general
eng
product
support-eng
data
marketing
Direct messages
Merlin
Theo
Maya
marketing
24
Today
Theo14:10
@Merlin which keywords do contoso.com and fabrikam.com rank for that we don't? Planning next quarter's content.
Message #marketing
Before and after
Content planning starts from the gaps, not from exports.
Without Merlin
Someone exports each site's keywords from Ahrefs, matches them in a sheet and groups the gaps by hand.
- 01Open each competitor in Site Explorer
- 02Export their organic keywords
- 03Export your own keywords
- 04Merge the exports in a sheet
- 05Remove the keywords you rank for
- 06Keep competitors' top 10 positions
- 07Group keywords by topic
- 08Total the volume per topic
- 09Share the gaps in #marketing
With Merlin
One mention brings back the gaps by topic, with the full list to plan from.
@Merlinin#marketingWith the competitor sitesCompares the sites in AhrefsClaude Code with the Ahrefs MCP
- The gaps by topic, with a CSVIn the thread
Setup
Add Merlin to #marketing and give your agent Ahrefs.
Set these up once and anyone in #marketing can ask for the gaps. Merlin only reads from Ahrefs.
- 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.
- 02Add Merlin to SlackIntegrationsInstall the Slack app and add Merlin to the channel you work in. A private channel needs
/invite @Merlin. - 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.
- 04Check your Ahrefs planYour agent's MCP
Ahrefs MCP works on Lite plans and up, and every request uses API units from the plan's monthly allowance.
- 05Paste the setup promptGuidanceAn owner or admin sends the prompt below to @Merlin once, and it becomes workspace guidance for every future run.
Prompt
Tell Merlin how to find keyword gaps.
@Merlin from now on, when someone in #marketing asks which keywords competitors rank for and we don't, pull the organic keywords for acme.com and each competitor's site from Ahrefs. Keep the keywords where a competitor ranks in the top 10 and acme.com doesn't rank in the top 100. Reply with the biggest gaps grouped by topic, with search volume, keyword difficulty and which competitor ranks, and attach the full list as a CSV. Only read from Ahrefs: don't create projects or keyword lists.
Once, when you paste it
- PromptYou paste the prompt to @Merlin
- GuidanceMerlin saves your rules as workspace guidance
Every time someone mentions Merlin in Slack
- IntegrationThe Slack app spots the mention
- RuntimeMerlin picks an available machine
- ContextThe run gathers context
- WorkClaude Code or Codex compares the sites in Ahrefs
- SteeringYour team steers the work in the thread
- ResultMerlin replies with the gaps and a CSV
Related use cases
More marketing tasks you can hand to Merlin.
- IntegrationsYour agent's MCP
Marketing
Write a landing page for a keyword
Delegate a keyword to Merlin in Linear. It checks what ranks for it in Semrush, writes the page and opens a pull request to your website.
Keyword issue delegated to MerlinA pull request linked on the issue - AutomationsIntegrationsYour agent's MCP
Marketing
Refresh the blog posts losing traffic
Every month, Merlin finds the blog posts losing the most search traffic. You get the list in Slack and a pull request refreshing the top one.
Day 1 of every month at
10:00A refresh pull request, linked in#marketing - Integrations
Marketing
Check a new page for SEO basics
Mention Merlin on a pull request that adds a page. It checks the title, description, headings, alt text and links and comments on what's missing.
@usemerlin-aion a website pull requestA comment with what's missing
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.