用 Agent A 自动化 SEO 的 11 种方式
SEO 的一大部分工作并不是策略,而是那些繁琐的、可重复的维护工作:重新运行每周站点审计、捕捉悄悄掉了三分之一的文章排名、注意到上周二失去的 DR 80 反向链接、检查 AI 助手是否仍然准确描述你的产品。
所有这些都需要有人在场——可靠地、按计划地、每次都做同样仔细的检查。但它不一定需要你。它只需要在有值得关注的事情时提醒你。
这就是你可以交给 Agent A 的那部分 SEO 工作。
以下是你可以开始使用的一些最佳用例。我们已经在 Agent A 中将大多数构建为 skills 或 apps,但我也提供了起始提示词(starter prompt),如果你想自己构建的话。
什么是 Agent A?
Agent A 是来自 Ahrefs 的营销代理——一个可直接访问完整 Ahrefs 数据集的 AI 助手,能够自主执行营销任务,而不仅仅是回答问题。
Agent A 包含:
- ✓ 不受限制地访问 Ahrefs 端点:我们用来构建 Ahrefs 的每个端点都可用,包括许多你无法通过 API 或 MCP 访问的端点。
- ✓ 强大的技术栈:Postgres 用于状态管理,Flask 用于 UI,OpenRouter 代理支持 300+ 模型,网页抓取支持全页解析,PDF、OCR、定时任务。
- ✓ 营销工具的原生连接器:Slack、HubSpot、GitHub、Notion、Linear、Mailchimp、Resend、SendGrid、Stripe、Gong、WordPress、Airtable、Apify,甚至 Semrush。
- ✓ 专家技能库:Ahrefs 团队贡献了预构建的营销技能和应用,编码了我们实际工作的方式。
1. 运行整个关键词研究流程
关键词研究不难,但很繁琐。你拉出 4,000 个候选词,然后花一个下午扔掉其中 3,800 个,逐个阅读 SERP,把幸存者拖入一个看起来像计划的东西。
我们的市场副总裁 Sam 决定不再手动做这些。他让 Agent A 构建了一个关键词研究工具,输入你的利基市场(例如 "coffee"),将其分类为集群,并能够为每个集群生成内容简报。
当你在工具中输入一个利基市场时,Agent A 将其扩展为种子关键词,然后在二十分钟内完成一个下午的工作。
它从 Keywords Explorer 中拉取真实搜索量,并阅读每个幸存候选词的 SERP,分析搜索意图、关键词难度以及谁已经在排名。对于每个关键词,它会统计前 10 名的页面类型构成(例如编辑文章 vs 产品页面、YouTube 视频或 Reddit 帖子)。
所有结果都带有评级:Go、Maybe 或 Skip,并标记容易实现的目标,同时挖掘竞争对手的差距关键词(你尚未覆盖的)。
二十分钟后,你会得到五个标签页:
- ✓ Overview(带有图表)
- ✓ 评好级的关键词列表
- ✓ 按主题分组的集群(每个都有支柱关键词、总搜索量、流量潜力、平均难度和 SERP 构成一览)
- ✓ 竞争对手差距列表
- ✓ Hub-and-Spoke 地图(展示所有内容如何链接在一起)
然后,如果你点击任何关键词上的 "Get brief" 按钮,Agent A 会像内容编辑那样撰写规格说明:三个标题选项和元描述、URL slug、设置为超越当前排名页面的字数目标、完整的 H1/H2/H3 大纲、从该 SERP 中实际 Reddit 和 Quora 帖子中挖掘的 FAQ、内链表格,以及针对第一页最弱竞争对手的差异化内容。
如果 SERP 以视频为主,它会建议你同时拍摄一个 YouTube 视频。
我们已在 Agent A 中构建了 Sam 的 Content Keyword Research 应用,你只需安装即可。
起始提示词
Build me a keyword research tool. Input: a niche (one word or phrase). Pipeline: (1) fetch keyword suggestions + global and top-country volume from Keywords Explorer; (2) vet each candidate, dropping low-volume, single-word, and off-intent terms; (3) run a SERP analysis per surviving keyword to score difficulty and classify intent; (4) cluster keywords into topic groups; (5) optional: generate a content brief per cluster. Show clusters in the UI with volume and intent per keyword, and an "export" button. Run as background jobs the UI polls.
2. 将每次站点审计自动变成 GitHub PR
站点审计擅长产出发现,却不擅长让问题被修复。报告里填满了问题,而问题就停在那里。
以下是如何在 Agent A 中自动化这一过程。
设置一个每周日运行的任务。让 Agent A 拉取你最新的 Ahrefs Site Audit,按优先级排列问题,并创建一个 GitHub pull request,范围限定于高严重性修复:索引问题、损坏的页面、损坏的内链等。
PR 带有清单和附带的审计数据到达,这样周一早上接手的开发者不需要重新推导出了什么问题。
这两个过程已经在 Agent A 中作为 Skills 构建。Site Audit Discovery skill 浮现并优先处理问题,Site Audit Issue Fixer 起草修复方案。
一旦启动,你可以让 Agent A 每周日运行此任务以实现自动化。
起始提示词
Build me a weekly site-audit-to-GitHub job. Every Sunday, fetch my latest Ahrefs Site Audit, filter to high-severity issues (broken links, missing canonicals, redirect chains, indexability), group them by fix type, and open one GitHub PR per group with a checklist body and the affected URLs. Skip any issue that's already in an open PR. Post a one-line summary of what was opened.
3. 在流量下滑前捕捉衰退的文章
流量衰减在日复一日中是不可见的,而在事后看来却痛苦地明显。一篇在一个季度内悄悄失去 40% 流量的文章不会触发任何警报,但会在长期内伤害你。
以下是如何自动化它。每季度一次,让 Agent A 将每篇博客文章的有机流量与上一周期进行比较,标记趋势下降的文章,并为每篇写一个更新建议:可能的原因以及要更新的内容。
通过连接 Ahrefs Web Analytics 并通过 Ahrefs 的 GSC Insights 报告拉取 Search Console 数据,将分析建立在真实数字之上。
这个过程在 Agent A 中作为 Skill 或 App 可用。Declining Content Detection skill 做衰减分析,而 Blog Freshness app 为你提供一个包含诊断信息的刷新候选者的常设仪表板。
让 Agent A 设置一个计划,这样它就会自动运行,无需你手动提示。
起始提示词
Build me a quarterly content-decay job. Pull organic traffic for every blog post for the current quarter and the prior one. Flag posts where traffic dropped meaningfully. For each, write a refresh suggestion (likely cause + what to update) and append it as a new row in my Notion editorial database. Sort by traffic lost so the biggest decays are at the top.
你还可以使用 Agent A 构建一个流水线,你可以从上述工具粘贴一个 URL 并更新它们。这正是我们的内容营销总监 Ryan Law 所做的。
该流水线获取文章并运行五个诊断:
- ✓ Scope guidance — 设定这是轻微更新还是完全重写。
- ✓ Claims audit — LLM 标记文章中的每个统计数据、研究引用和过时论断,为每个评估过时程度,并在需要时建议替换 URL。
- ✓ Ahrefs mentions — 将文章与发布以来发布的功能进行交叉检查,并建议在何处提及新功能。
- ✓ Topic gaps — 针对当前排名靠前的页面重新运行 SERP,并浮出它们覆盖而我未覆盖的主题。
- ✓ Authoritative pages — 查找自文章发布以来发布的新的可链接来源。
最后阶段是当前文章与建议更新之间的并排 diff,每个更改可接受/拒绝。
起始提示词
Build me a blog-post update pipeline. Input: a published URL. Fetch the article. Run five diagnostic stages: (1) Guidance — I set scope (light refresh vs. full rewrite); (2) Claims Audit — LLM extracts every stat, study reference, and dated assertion and grades each for staleness with a suggested replacement; (3) Ahrefs Mentions — cross-check against Ahrefs features released since publication and suggest where to drop new ones; (4) Topic Gaps — re-run the SERP, surface topics current top-ranking pages cover that mine doesn't; (5) Authoritative Pages — find linkable sources published since my article. Final stage: side-by-side diff between current article and proposed updates, with accept/reject per change. Export the accepted version as markdown and WordPress shortcodes.
4. 将目标关键词变成可发布的草稿
每个 AI 写作工具都在卖你同样的把戏:两分钟内完成初稿。他们没提到的是接下来要花一整周来修复它。最后一步才是真正花时间的地方,而更快的初稿并不能改变这一点。
原因是:"Write me an article" 是一个提示词同时做九个工作,而且九个都做不好。真正的 SEO 内容是一条链:关键词研究、SERP 分析、差距分析、大纲、初稿、内链、引用、图片、格式。将所有这些压缩为一个请求,你会在输出中感受到每个被跳过的步骤。
所以 Ryan 运行了链条而不是提示词。他在 Agent A 上构建了 Blog Pipeline:11 个阶段,一端输入目标关键词,另一端输出可发布的草稿。
区别在于你可以看到并编辑每个阶段。Agent A 做组装工作,你保留判断力。你不再修补 AI 草稿,而是开始审批它们。
起始提示词
Build me an assisted long-form article pipeline. Atomic input is a target keyword. Stages run sequentially as background jobs the UI polls: (1) keyword research via Ahrefs, (2) competitor SERP fetch, (3) AI Content Helper topic snapshot, (4) bulleted outline with mandated topic coverage, (5) data-mention placement, (6) full draft, (7) polish, (8) WordPress shortcode formatting + .docx export. Each stage shows its output, has an "edit" textarea, and a "refine with feedback" chat that re-runs the stage with my notes. Style guide comes from a per-author voice profile.
5. 自动发布月度流量报告
每个团队都想要月度绩效报告。没人想制作它。
所以 Ryan 用 Agent A 来写。现在,每月 1 号,Agent A 构建一份博客绩效报告,从 Ahrefs Web Analytics 和 Ahrefs 的 GSC Insights 报告中拉取数据,保持一致性。
关键的是,它不仅仅是流量报告。该报告涵盖完整的 SEO 图景:点击和展示、关键词排名和位置变化、引荐域名和获得或失去的反向链接,加上 KPI 磁贴、环比趋势和涨跌幅最大的页面。这就是它成为 SEO 报告而非流量报告的原因。
在未来,我可以预见 Ryan 通过 Slack 集成将其直接管道输入我们的 #blog Slack 频道。
你可以通过安装 Agent A 中可用的 Monthly Website Performance Report 应用来做和 Ryan 完全一样的事。将其指向你的属性,设置计划,选择你的 Slack 频道。
起始提示词
Build me a monthly blog report job. On the 1st of each month, pull GSC + Ahrefs Web Analytics for the prior month, compute KPI tiles (clicks, impressions, top gainers, top losers) with month-over-month deltas, render a short summary, and post it to my #marketing Slack channel. Include a link to the full report.
6. 窃取竞争对手最好的新反向链接
每个月,你的竞争对手都会获得你很想拥有的链接。其中大多数是明面上的链接机会。
以下是我们在 Agent A 中如何自动化它们。
每月一次,让 Agent A 查看你的主要竞争对手,找到他们最好的新引荐域名(按引荐域名自身的流量和 Domain Rating 排序),并将其记录为潜在客户列表。
这些是潜在的潜在客户。重点是查看当前在我们的领域中哪些出版物和页面正在链接,这样外联就会指向确实链接到像我们这样的网站的场所。一个刚刚链接了竞争对手的高 DR 网站比一个冷列表要温暖得多。
你可以通过使用 Link Intersect Prospecting skill 来做同样的事,找到链接到竞争对手但不链接到你的域名。
如果你特别在寻找失效链接建设机会或链接诱饵机会,我们也有这些 skills 可用。
起始提示词
Build me a monthly competitor backlink job. For my list of competitor domains, fetch new referring domains gained in the last month via Site Explorer, sort by the referring domain's own traffic then Domain Rating, drop low-quality and known-spam sources, and append the top results to an Airtable base with columns for source URL, referring domain, DR, traffic, and which competitor it links to.
7. 监控 AI 助手如何谈论你的品牌
AI 助手正在悄然成为一个发现渠道,而它们对你的描述并不总是你会用来描述自己的方式。
优化你如何出现在 AI 答案中,无论你称之为 AEO 还是 GEO,越来越成为 SEO 团队的工作,因为这是同样的工作:理解哪些表面能获得可见性,并赢得你在其中的位置。
以下是如何自动化它。
让 Agent A 每周分析你的品牌在主要 AI 助手(或只是对你最重要的那个)中的提及情况。Agent A 检查品牌是如何被描述的,然后记录任何反复出现的负面主题(错误的定价、过时的功能声明、竞争对手被框架为更好的)。
如果你使用 Notion 或 Airtable,你也可以将其导入那里,以便随时间跟踪模式。
你可以在 Agent A 中轻松做到这一点,使用 AI Brand Sentiment skill 运行提示面板并跟踪框架随时间的变化。然后,将其与 AI Mention Gap Analysis skill 配对,查看竞争对手被引用而你未被引用的查询。
起始提示词
Build me a weekly brand-mention monitor for ChatGPT. Each week, check how my brand is described in AI answers via Brand Radar, extract recurring themes, and log negative or inaccurate ones (wrong pricing, outdated claims, unfavorable competitor framing) into an Airtable base with the theme, an example quote, and the date. Only report AI share-of-voice relative to my named competitors.
8. 发现值得参与的 Reddit 讨论
Reddit 正在吞噬 SERP。很有可能一个 Reddit 帖子现在在某些关键词上排名超过了你精心优化的页面。
以下是你可以如何在 Agent A 中自动化此过程。
每周一次,让 Agent A 扫描你的顶级关键词,寻找值得参与的新排名 Reddit 讨论。它检查每个优先关键词的 SERP,隔离最近进入顶部位置的 Reddit 结果,并传给你一个简短列表。
价值在于时机。跳入一个正在排名的帖子,在它新鲜且问题是活跃的时候,比六个月后才发现它要有价值得多。
起始提示词
Build me a weekly Reddit-opportunity scanner. For my list of top keywords, pull the current SERP via Keywords Explorer / SERP overview, isolate reddit.com results ranking in the top 10, and flag ones that newly entered the top positions this week. Give me a digest: keyword, thread title and URL, current position, and the question being asked, sorted by keyword volume.
9. 获取科学的内部链接推荐
每个人都同意内链应该在每次发布时做。几乎没人在每次发布时做。
这是 SEO 的"使用牙线"。
为了解决这个问题,Ryan 构建了 Internal Linker。给它一篇新文章(一个已发布的 URL,或者如果还没上线就只是粘贴的草稿 markdown),它会告诉你哪些现有的文章应该链接到它。
匹配不是关键词猜测。它使用 Gemini 对你的文章进行向量嵌入,并与站点地图上的每篇其他文章进行余弦比较,然后按流量重新评分顶部匹配项,这样一篇有真正有机流量的相关文章会排名高于一篇同样相关但没人访问的文章。链接只有在坐落于一篇有权重传递的页面上时才有帮助。
它还会阅读每个候选者的 markdown 并悄悄丢弃已经链接到你的文章,所以列表只包含你尚未覆盖的地方。
它甚至找到最适合你新文章的单一段落,让 Agent A 写一个自然的 2-6 个词的锚文本,并重写该句子以包含它。你直接将重写的句子复制到旧文章中。不需要决定链接放在哪里,不需要自己措辞。
起始提示词
Build me an internal-linking tool. Input: either a published blog URL or pasted draft markdown for unpublished pieces. Embed the input article with Gemini and cosine-compare against my pre-cached blog post vectors. Rescore top candidates with authority weighting: 0.7 × similarity + 0.3 × log(org_traffic). Auto-exclude any host already linking to me (parse each candidate's markdown body). For each top host, identify the single paragraph most semantically aligned with the input article, and that's where the link goes. Have Claude draft a natural 2-6 word anchor and rewrite a sentence in the host paragraph to include it. Cache passage vectors per host so repeat lookups are instant.
10. 在强反向链接丢失时收到提醒
失去一个 DR 80 网站的链接很重要。沉默地失去它,在一个季度后排名下滑时才发现,才是问题所在。
以下是你可以如何在 Agent A 中自动化此过程。
每周一,让 Agent A 总结你最近从高权威域名丢失的反向链接。如果你有专门的外联人员(或任何负责人),你甚至可以让 Agent A 自动在 Slack 中提醒他们(通过集成)。
它从 Site Explorer 中拉取丢失的反向链接,过滤到 Domain Rating 为 50 或更高的引荐域名,并包含丢失的 URL 以及它曾经链接到的页面,以便当天就可以开始恢复外联。
起始提示词
Build me a Monday lost-backlink alert. Each Monday, pull backlinks lost in the last week via Site Explorer, filter to referring domains with DR 50+, drop nofollow-only and known-spam losses. For each: the linking page, the lost target URL, the referring domain's DR, and the anchor text that was used.
11. 监控榜单文章中的提及变化
Glen 的研究发现,"best of" 列表占 ChatGPT 引用页面的 43.8%。因此,被添加到像 "best SEO tools" 这样的列表中是一个巨大的胜利。但这些列表不断变化,你在其中的位置很重要,所以一个悄悄的降级可能和被移除一样代价高昂。
以下是我们如何使用 Agent A 来修复这个问题。
每当你发现一个新的列表文章提及,让 Agent A 将其添加到 Firehose 进行跟踪。然后让 Agent A 每两周重新检查每个跟踪页面的变化:我们的条目是否被移除、我们的排名位置是否下降、是否有竞争对手被添加在我们之上?
它使用 Page Inspect 将页面与上一次快照进行 diff,所以只有当实际发生变化时你才会收到通知。
起始提示词
Build me a listicle-mention monitor. When I add a URL where my brand is mentioned, register it in Firehose for tracking. Every fortnight, re-fetch each tracked page, diff it against the last snapshot, and flag only meaningful changes: my mention removed, my rank position changed, or a competitor added. Send me a digest of just the changed pages with a before/after of the relevant section.
总结
如果你是 Ahrefs 的客户,你可以免费试用 Agent A 一个月。
启动任何上述提到的 skills,安装 apps,或将起始提示词粘贴到一个新的工作空间中,你自己的 Agent A 就会开始构建,或者从应用库中获取完成的工具。
Agent A Skills 和 Apps 汇总
| 类型 | 名称 | 用途 |
|---|---|---|
| App | Content Keyword Research | 关键词研究工具 |
| Skill | Site Audit Discovery | 站点审计问题浮现与优先级排序 |
| Skill | Site Audit Issue Fixer | 起草审计问题修复 |
| Skill | Declining Content Detection | 内容衰减分析 |
| App | Blog Freshness | 刷新候选者仪表板 |
| App | Monthly Website Performance Report | 月度网站绩效报告 |
| Skill | Link Intersect Prospecting | 查找链接到竞争对手但不链接到你的域名 |
| Skill | AI Brand Sentiment | AI 品牌情感监控 |
| Skill | AI Mention Gap Analysis | AI 提及差距分析 |
| Tool | Internal Linker | 科学的内部链接推荐 |
原文链接:https://ahrefs.com/blog/agent-a-for-seo/
本文为翻译分享,版权归原作者所有。