All jobs

SEO Audit Report From Ahrefs for Each Client

Client-reporting software for marketing agencies gives each agency an agent that reads its Ahrefs Site Audit and writes every client's monthly SEO audit report.

Run this on RushOpens the console with this prompt ready to send. Connect Ahrefs there first.

What the agent does

This is for a company that sells client-reporting software to marketing agencies: dashboards and monthly reports an agency sends its clients under its own logo. Its agencies already crawl every client's website with Ahrefs Site Audit, but the audit is a list of issue names and counts that a client cannot read, so an account manager rewrites it by hand each month into a report that says what changed, what matters and who should fix it. The software adds an agent per agency that writes that report for each client site from the agency's own Ahrefs account, and the account manager edits it rather than starting from a blank page.

The software's team connects its own Ahrefs account at POST /me/connections {"type": "mcp", "name": "ahrefs", "url": "https://api.ahrefs.com/mcp/mcp"} and saves the agent once as a template with POST /o/{org}/agents, naming "connections": ["ahrefs"]. When an agency signs up, the software makes its agent with {"template": "<template id>", "name": "seo-<agency id>"}, stores the agent id against the agency, and starts the sign-in with POST /o/{org}/agents/{agent}/connections {"type": "mcp", "name": "ahrefs"}. An agency admin opens the authorize_url in a popup and approves Ahrefs's consent screen, which creates an API key with the MCP scope in the agency's Ahrefs account. Ahrefs's MCP server needs a paid plan from Lite up, and every call the agent makes uses the agency's own API units.

Once a month, after the scheduled crawl, the software starts one run per client site. The agent calls site-audit-projects with the site's project_url to read the latest finished crawl's date, status, health_score, total URLs and the counts of URLs with errors, warnings and notices, and calls it again with last month's date for the comparison. It calls site-audit-issues with date_compared set to last month's crawl, which returns each issue's name, category, importance (Error, Warning or Notice), the number of URLs it affects now, and how many were added, new, removed and missing since then. For each Error and for each issue whose count rose, it calls site-audit-page-explorer with that issue_id for the affected url, http_code, title, depth and traffic, sorted by traffic, so the report names the pages that bring visitors rather than the first twenty in the crawl.

It writes the report in the agency's voice for a client who is not an SEO: the health score and how it moved, what was fixed since last month (issues whose URLs were removed), what is new, and the five to ten issues worth fixing this month, each with a plain explanation of what it is, the pages it hits that get the most traffic, and whether it is usually a job for the site's developer or for whoever writes the content. Notices that affect few pages go in an appendix. It writes audit-report.md and issues.csv, returns the figures as JSON, and changes nothing in Ahrefs: it starts no crawl and edits no project.

Start it with one API call

POST https://api.phoenix.so/o/{org}/sessions with this body:

{
  "agent": "<agent id>",
  "input": "Write the November 2026 SEO audit report for the client site https://www.harborviewdental.example. Read only: do not start a crawl, create or edit any project, or change anything in Ahrefs. Steps: 1) site-audit-projects with project_url https://www.harborviewdental.example: read project_id, date, status, health_score, total, urls_with_errors, urls_with_warnings, urls_with_notices for the latest finished crawl; then again with date 2026-10-31T23:59:59 for last month's crawl. If the latest crawl's status is not Completed or its date is before 2026-11-01, say so at the top and use the latest Completed crawl. 2) site-audit-issues for that project with date_compared set to last month's crawl date: read name, category, importance, crawled, added, new, removed, missing, change, issue_id. 3) For every issue with importance Error and crawled above 0, and every Warning whose change is above 0, call site-audit-page-explorer with that issue_id, select url, http_code, title, depth, traffic, order by traffic descending, limit 20. If page explorer is refused because the project's ownership is not verified, say so and report counts only. Write audit-report.md for the clinic's office manager, who is not an SEO: a four-line summary (health score now and last month, URLs crawled, issues fixed, new issues); Fixed since last month; Fix this month, at most 10 issues ordered by importance and then by the traffic of affected pages, each with what it is in one or two plain sentences, the top affected pages with their traffic, and who usually fixes it (developer or content); Watch, for warnings that did not grow; Appendix with notices. Do not promise rankings or traffic from any fix. Write issues.csv (issue, category, importance, urls_now, change, added, removed, top_url, top_url_traffic). End with JSON {site, crawl_date, health_score, health_score_last_month, fixed: [], new: [], fix_this_month: [{issue, importance, urls, top_pages: [{url, traffic}], owner}], notes: []}."
}
  1. Get an API key. In the console, open Settings, then API keys, and create a key for your org. Send it in the Authorization header as a Bearer token.
  2. Send the request. POST the body in request.json to https://api.phoenix.so/o/{org}/sessions. The run starts in its own cloud sandbox.
  3. Read what came back. Follow the run on its live stream or wait for the run.completed webhook, then read the result and its trajectory.

What comes back

What comes back is the JSON in the session's result, which the run.completed webhook carries to the reporting software, and audit-report.md and issues.csv among the session's files. The software drops the report into the agency's monthly template under the agency's logo and charts the health score from the JSON. Every count in the report is one Ahrefs returned for that crawl, and the report says which crawl it read, so a client never gets numbers from a crawl that stopped halfway without being told.

What the account manager checks before sending: that the issues chosen for this month match what the agency has agreed with the client (a redirect chain the client's developer is already removing does not need to lead the report), the plain-language explanations, and anything in notes, such as a crawl that did not complete or a project whose ownership is not verified in Ahrefs. The account manager decides what goes to the client and adds the agency's own recommendations. The agent promises no ranking or traffic gain.

Run it on every month end

On the first weekday of each month the reporting software starts one run per client site for each agency: POST /o/{org}/sessions with {"agent": "<agent id>", "input": "…"} for that agency's agent, the input naming the site, the month and the agency's report style, and a request_id that is a UUID v5 of the site and the month, so a retried job starts nothing twice.

An agency with forty client sites gets forty runs at once, each on its own computer reading only that agency's Ahrefs account. When a client asks mid-month how a fix went, the account manager starts the same agent for that one site after the next crawl and gets the same report for the new dates.

The use case this job follows, with its automation and trigger: Run an agent per customer task.

Why run it on Rush?

Each agency's Ahrefs sign-in is held in Rush's connection under that agency's own agent, so the reporting software stores no Ahrefs key and no agency's run can read another agency's projects. Each session lists the Ahrefs connection it used in accounts, and GET /o/{org}/sessions?account=<connection id> lists every run that used it, which is the answer when an agency asks what the software read and where its API units went.

A template that pastes issue counts into a PDF cannot decide which of forty issues a dental clinic should hear about, or notice that an error affects only pages nobody visits. The agent reads the issues and the pages behind them, weighs them by traffic, and explains them in the client's words, with a record of every call it made. Each run has its own computer, and GET /o/{org}/sessions?agent=<agent id> adds up what each agency's reports cost in model calls, so the software can bill agencies for the reports they use.

Frequently asked questions

What goes in an SEO audit report?

A crawl of the site's pages and a list of the technical problems found: broken links, redirect chains, missing or duplicate titles, pages blocked from indexing, slow or oversized pages. A useful report also says what changed since the last crawl and which problems to fix first, which is the part this agent writes.

Does the agency need its own Ahrefs plan?

Yes. Ahrefs's MCP server is available on paid plans from Lite up, the agency signs in with its own account, and every call uses that account's API units. The client sites must already be Site Audit projects in the agency's Ahrefs, crawled on a schedule.

Why would page-level details be missing?

Ahrefs's page explorer works only for Site Audit projects with verified ownership. For a project that is not verified, the agent reports issue counts and says the page list was unavailable, rather than guessing which pages are affected.

Can it fix the issues it finds?

Not on this page. It reads Ahrefs and writes the report; it has no access to the client's website. Fixes go to the client's developer or content writer, and the next month's report shows which issues were removed.

More Ahrefs jobs

More jobs like this: Run an agent per customer task

Keep reading