- ›
Buyers now ask ChatGPT and Perplexity before they Google— brand teams need to know whether AI answer engines mention and cite them - ›AgentAEO (/aeo) exposes llmResponses across ChatGPT, Claude, Gemini, and Perplexity plus llmMentions search scoped to your domain
- ›Run a tracking loop per brand tenant: prompt set → LLM responses → mention share → alert when competitors gain citations
- ›Scope with naive.forUser(brandId) so one customer's audit never leaks into another's workspace
- ›
Pair with AgentSEO keyword loops for classic SERP data— AEO answers what models say, SEO answers what people type - ›
Meter aeo calls per plan when you productize— same Customer Billing pattern as the usage-metered SEO SaaS tutorial
When a buyer asks ChatGPT "what's the best project management tool for agencies?", the model returns an answer — and a short list of cited sources. That response is the new SERP for a growing share of research. Brand teams need to track whether they are mentioned and cited, not just where they rank on Google.
Naïve ships AgentAEO (/aeo) so an agent can run that audit on a schedule: query multiple answer engines, measure mention share, and alert when a competitor gains ground — per brand tenant, not from a shared scraper account. This use case sits in the autonomous company spoke cluster alongside SEO keyword loops and the full AEO platform tutorial.
Tracking loop
| Step | AgentAEO call | Purpose |
|---|---|---|
| 1. Prompt set | Your app stores category questions | Stable audit baseline |
| 2. LLM responses | llmResponses("chatgpt" | "claude" | …) | Capture answers + citations |
| 3. Mention search | llmMentions("search", { keyword, domain }) | Quantify your domain's share |
| 4. AI keywords | aiKeywords({ keywords }) | Rising AI-search demand |
| 5. Report | Email, dashboard, or kanban task | Human-readable delta |
Run weekly or after major launches. Store snapshots so the agent can diff last week vs this week.
Setup
npm install @usenaive-sdk/serverimport { Naive } from "@usenaive-sdk/server";
const naive = new Naive({ apiKey: process.env.NAIVE_API_KEY! });
const brand = await naive.users.create({
external_id: "northwind_uuid",
email: "marketing@northwind.example",
label: "Northwind",
});Capture answers across engines
const PROMPTS = [
"best project management software for agencies 2026",
"top CRM for small business",
];
async function auditAiVisibility(brandId: string, domain: string) {
const aeo = naive.forUser(brandId).aeo;
const snapshots = [];
for (const user_prompt of PROMPTS) {
const chatgpt = await aeo.llmResponses("chatgpt", {
user_prompt,
model_name: "gpt-4o-mini",
});
const mentions = await aeo.llmMentions("search", {
keyword: user_prompt,
domain,
});
snapshots.push({ user_prompt, chatgpt, mentions });
}
return snapshots;
}- CLI mirror:
naive aeo llm-responses chatgpt --keyword "<prompt>"andnaive aeo llm-mentions search --keyword "<prompt>" --domain example.com. - Full parameter list: AEO docs.
Combine with SEO research
A complete visibility agent runs both loops:
- AgentSEO keyword research — volume + SERP competitors.
- AgentAEO mention tracking — AI answers + citation share.
The multi-tenant AEO platform tutorial wires both into one product with Customer Billing quotas. For metering details see usage-metered SEO SaaS.
Productizing the loop
When you sell this as a service:
- One tenant user per brand — hard isolation boundary.
- Account Kits — gate which platforms a tier may audit.
- Customer Billing — meter
aeocalls; return429 rate_limitedat quota.
Sensitive actions (publishing revised copy to a live CMS) should stay approval-gated even when the audit itself runs autonomously.
Related reading
What is brand mention tracking in AI search?+
Which AgentAEO calls power a tracking loop?+
How is this different from SEO keyword research?+
How do I isolate one brand from another?+
How do I get started?+
Building the autonomous company infrastructure.
Keyword volume, backlinks, SERP competitors, and ranked-keyword data for classic search — plus AEO/GEO visibility into whether ChatGPT, Claude, Gemini, and Perplexity actually mention you. The full visibility stack behind one key.
Run a governed SEO keyword research loop per tenant with AgentSEO — volume, SERP competitors, and Labs insights via forUser, plan-metered and audit-logged.
A code-first tutorial for building an agentic AEO/GEO product on Naïve — give every brand an AI agent that audits how ChatGPT, Claude, Gemini, and Perplexity answer questions about them, finds the keyword and citation gaps with SEO data, writes answer-optimized content with an OpenRouter model, and publishes to their own connected CMS. Each customer is an isolated tenant user, governed by an Account Kit and a Customer-Billing plan, with usage metered and quota-enforced at execution time and sensitive actions frozen for human approval.
Build a multi-tenant AI SEO/AEO SaaS with Customer Billing: plans enforce quotas at execution time — 429 on overage, forbidden when a primitive is off-tier.