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.
@Merlin on the 1st of every month at 10:00, compare the organic search sessions on each blog post in Google Analytics over the last 28 days with the 28 days before. Post the five posts that lost the most here. Then open a pull request in acme/website that refreshes the top one (update what's out of date and keep its URL) and add its link to your post. Don't merge it: a person reviews it.
Starts whenOn the
1stof every month at10:00, a monthly Merlin schedule posts to#marketingMerlin worksClaude Code or Codex compares each post's search traffic in Google Analytics with the month before, then refreshes the post that lost the most
- You getThe posts losing the most traffic in
#marketing, with a pull request that refreshes the top one
Tools
- Slack
- Google Analytics
- GitHub
Capabilities
- Automations
- Integrations
- Your agent's MCP
How it works
From last month's search traffic to a refreshed blog post.
On the 1st of every month at 10:00, the automation you created from
#marketingstarts a run.Claude Code or Codex compares each blog post's organic search sessions in Google Analytics over the last 28 days with the 28 before. Then it updates what's out of date in the post that lost the most, keeping its URL.
A post in
#marketinglists the five posts that lost the most and links a pull request inacme/website. A person reviews and merges it.
On the 1st of every month at 10:00, the automation you created from #marketing starts a run.
Claude Code or Codex compares each blog post's organic search sessions in Google Analytics over the last 28 days with the 28 before. Then it updates what's out of date in the post that lost the most, keeping its URL.
A post in #marketing lists the five posts that lost the most and links a pull request in acme/website. A person reviews and merges it.
Overview
Agents
Skills
Memory
Automations
Integrations
Settings
Refresh the blog posts losing traffic
PauseDetailsRun history
Trigger
When Merlin runs it.
Run
What Merlin does each time, where it runs, and where the result goes.
on the 1st of every month at 10:00, compare the organic search sessions on each blog post in Google Analytics over the last 28 days with the 28 days before. Post the five posts that lost the most here. Then open a pull request in acme/website that refreshes the top one (update what's out of date and keep its URL) and add its link to your post. Don't merge it: a person reviews it.
Before and after
Old posts get refreshed before they slide off the first page.
Without Merlin
Someone digs through Google Analytics for the drops, then rewrites the worst post and asks for it to be published.
- 01Open the blog report
- 02Filter to organic search
- 03Compare two 28-day periods
- 04Sort posts by the drop
- 05Reread the top post
- 06Update what's out of date
- 07Fix the dead links
- 08Open a pull request
- 09Share the list in #marketing
With Merlin
A monthly schedule finds the drops and drafts the refresh, and a person reviews it.
- Day 1 of every month at
10:00Monthly Merlin schedule in #marketing Compares traffic and refreshes the top postGoogle Analytics and the website code
- Refresh pull request, linked in
#marketingWith the five posts losing the most
Setup
Give your agent Google Analytics and the website code, then schedule the refresh from #marketing.
Set these up once and a refresh arrives on the 1st of every month. Merlin never merges, so a person reviews every change.
- 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 Google Analytics to your agentYour agent's MCPConnect the Google Analytics MCP server to Claude Code or Codex on the machine that runs this. Its credentials stay on that machine.
- 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.
- 05Keep your code on the machineRuntimeMerlin reads the code in a local project on the runtime, so keep the repository checked out there.
- 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 Google Analytics connected.
- 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 refresh with one message in #marketing.
@Merlin on the 1st of every month at 10:00, compare the organic search sessions on each blog post in Google Analytics over the last 28 days with the 28 days before. Post the five posts that lost the most here. Then open a pull request in acme/website that refreshes the top one (update what's out of date and keep its URL) and add its link to your post. Don't merge it: a person reviews it.
Once, when you send it
- PromptYou send the prompt to @Merlin
- AutomationMerlin creates the automation
Every scheduled run
- ScheduleThe schedule starts a run
- RuntimeMerlin picks the creator's machine first
- ContextThe run gathers context
- WorkClaude Code or Codex compares traffic and refreshes the top post
- ResultMerlin posts the list and the pull request
- SteeringReplies in its thread follow up
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 - 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 - SkillsYour agent's MCP
Marketing
Turn a blog post into social posts
Send Merlin a blog post link in a Slack DM. You get LinkedIn and X posts in your brand voice, saved as drafts in Buffer for review.
Direct message to@Merlinwith a linkLinkedIn and X drafts in Buffer
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.