All jobs

AI Brand Monitoring: Track Your Brand in AI Answers

SEO reporting software makes one agent per agency that reads Ahrefs Brand Radar weekly and reports where each client is mentioned, lost or criticized in AI answers.

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 reporting software to SEO and content agencies. Its customers are agencies with ten to forty clients each, and since their clients started asking whether ChatGPT and Google's AI Overviews recommend them, every agency has added a slide on AI visibility to the monthly report and fills it by hand. Most of them already pay for Ahrefs, whose Brand Radar tracks how AI assistants answer questions and which brands and pages those answers mention and cite. The software adds AI brand monitoring as a feature: an agent per agency that reads that agency's own Brand Radar data every week for each client and writes the slide.

The software company connects an Ahrefs account of its own with POST /me/connections {"type": "mcp", "name": "Ahrefs", "url": "https://api.ahrefs.com/mcp/mcp"} and saves the agent once as a template naming that connection. When an agency turns the feature on, the backend makes the agency an agent with POST /o/{org}/agents {"template": "<template id>", "name": "ai-visibility-<agency id>"} and starts the sign-in with POST /o/{org}/agents/{agent}/connections {"type": "mcp", "name": "ahrefs"}. The agency's admin opens the authorize_url in a popup and approves Ahrefs's consent screen, which, by Ahrefs's MCP documentation, creates a dedicated API key in the agency's Ahrefs account tagged with the MCP scope. Every call then spends the agency's own Ahrefs API units, needs an Ahrefs plan of Lite or higher, and shows up in the agency's own Ahrefs usage.

For each client the run names, the agent calls Ahrefs's Brand Radar tools with the client as brands (its names and its domain as a url_groups entry with scope subdomains) and up to three competitors as competitors, across the assistants the agency reports on: chatgpt, google_ai_overviews, google_ai_mode, perplexity, gemini and copilot in data_source. brand-radar-sov-overview-entities gives this week's share of voice for the client and each competitor. brand-radar-ai-responses-entities with date set to today, date_compared to seven days ago and changes set to {"mentions": ["lost"]} lists the questions whose answers stopped mentioning the client. The same tool ordered by {"direction": "most_negative", "brand": "<client>"} returns the answers that speak worst of it, each with brand_sentiment (sentiment, the aspect such as price_value or service_support, and the sentence). brand-radar-cited-pages-entities shows which of the client's pages the answers cite.

It selects only the fields it needs and leaves out response, the full answer text, which costs ten units a row, because every unit comes out of the agency's own Ahrefs plan. For each client it writes a short section: share of voice against the competitors, the questions where the client was lost this week and which competitor took the answer, the most negative mentions with their aspect and sentence, and the client pages most cited. It writes ai-visibility.md and returns the same numbers as JSON for the software to render as the report slide. It changes nothing in Ahrefs and contacts no client.

Start it with one API call

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

{
  "agent": "<agent id>",
  "input": "Weekly AI brand monitoring for this agency's clients, dates 2026-11-30 compared with 2026-11-23, country us. Use only Ahrefs Brand Radar tools, read only. data_source for every call: chatgpt, google_ai_overviews, google_ai_mode, perplexity, gemini, copilot. prompts: ahrefs. Clients (name | domain | competitors as name:domain): Pinecrest Roofing | pinecrestroofing.example | Summit Roof Co:summitroof.example, Apex Exteriors:apexexteriors.example; Brightside Dental | brightsidedental.example | Smile Studio:smilestudio.example; Tally Payroll | tallypayroll.example | PayNest:paynest.example, Crewly:crewly.example, Wagebird:wagebird.example. For each client, brands = [{names: [client name], url_groups: [{target: domain, scope: subdomains}]}] and competitors built the same way. 1) brand-radar-sov-overview-entities: share_of_voice for the client and each competitor. 2) brand-radar-ai-responses-entities with date 2026-11-30, date_compared 2026-11-23, changes {mentions: [lost]}, select question, data_source, volume, status, brand_sentiment, limit 25: questions whose answers stopped mentioning the client; for each, note from brand_sentiment which competitors the answer mentions now. 3) brand-radar-ai-responses-entities with date 2026-11-30, order_by {direction: most_negative, brand: client name}, select question, data_source, brand_sentiment, limit 10: keep only entries whose brand_sentiment for the client is negative or mixed, with aspect and snippet. 4) brand-radar-cited-pages-entities for the client's domain, limit 10. Never select response. If a Brand Radar call is refused or the plan has no access, stop for that client and record the error in checks. Write ai-visibility.md with one section per client: share of voice table, Lost this week, Negative mentions, Most cited pages. Return JSON: {date, clients: [{client, share_of_voice: [{brand, share}], lost: [{question, data_source, volume, now_mentions}], negative: [{question, data_source, aspect, snippet}], cited_pages: [{url, responses}]}], checks: []}. Do not change any Ahrefs setting or report."
}
  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 ai-visibility.md among the session's files and the JSON in its result, which the run.completed webhook carries to the software's server. The software turns each client's part into the AI visibility slide: share of voice beside the competitors, the questions lost this week with the competitor that now gets mentioned, the negative mentions with what they were about, and the client pages the assistants cite. A client whose numbers could not be read appears in checks with the reason rather than as a blank slide.

What the agency checks before the slide reaches the client: that a lost question is one the client cares about (a roofer losing "how to fix a leaking roof yourself" matters less than losing "best roofer near me"), that a negative snippet reads the same in context, and that the competitor names matched the right companies. Share of voice is Ahrefs's estimate over the questions it tracks, and the agency explains it that way. What to change on the client's site is the agency's call.

Run it on every Monday morning

The software starts one run per agency each Monday: POST /o/{org}/sessions with {"agent": "<agent id>", "input": "…"} for that agency's agent, the client lines written from the clients the agency set up in the software, and a request_id that is a UUID v5 of the agency id and the date, so the scheduler's retry starts no second run.

An agency with sixty clients is split into runs of twenty clients each, which start together and run on separate computers. When a client asks mid-month how a launch changed its AI answers, the account manager starts the same agent with just that client and a date_compared of the launch day.

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 software company never stores an Ahrefs key, and every call spends the units of the agency whose clients are being read. Each session records the Ahrefs connection it used in accounts, and GET /o/{org}/sessions?agent=<agent id> lists every run for an agency, so the software can show each agency what its weekly report did and what its model calls cost.

A fixed export of share of voice gives a number; the slide the client reads needs the questions behind it, the competitor that took the answer and the sentence that called the client expensive. The agent picks those out of Brand Radar for each client, skips the costly full-answer field, and records every call it made, so an agency that sees its Ahrefs units drop can trace which run spent them.

Frequently asked questions

What is AI brand monitoring?

AI brand monitoring tracks how AI assistants such as ChatGPT, Perplexity and Google's AI Overviews answer questions in a market: which brands they mention, how they describe them and which pages they cite. It is the AI-answer counterpart of tracking search rankings, and it changes week to week as the assistants change.

Whose Ahrefs account and API units does it use?

Each agency's own. The agency signs in to Ahrefs on Ahrefs's consent page, which creates an MCP key in its account, and every Brand Radar call spends that account's API units. Ahrefs's MCP server needs a plan of Lite or higher.

Which AI assistants can it report on?

The Brand Radar tools take data_source values for ChatGPT, Google AI Overviews, Google AI Mode, Gemini, Perplexity, Copilot, Claude and Grok. The request lists six; an agency changes the list in the input to match what its clients ask about.

Does it change the client's website or Ahrefs projects?

No. The prompt keeps it to Brand Radar reads and it writes only its own files. Deciding which pages to improve to win back a lost question is the agency's work.

More Ahrefs jobs

More jobs like this: Run an agent per customer task

Keep reading