# AI Brand Visibility Monitor — ChatGPT, Gemini & Perplexity (`vertaizen/ai-brand-visibility-monitor`) Actor

Track whether YOUR brand shows up when users ask ChatGPT, Gemini or Perplexity about your product category. GEO/AEO monitoring with competitor comparison, sentiment hints and visibility-change alerts. BYO API keys.

- **URL**: https://apify.com/vertaizen/ai-brand-visibility-monitor.md
- **Developed by:** [Diego Moragues](https://apify.com/vertaizen) (community)
- **Categories:** AI, SEO tools, Developer tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $20.00 / 1,000 prompt checks

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## AI Brand Visibility Monitor — Track Your Brand in ChatGPT, Gemini & Perplexity

This **AI brand visibility monitor** is a **GEO (Generative Engine Optimization)** and **AEO (Answer Engine Optimization)** tool that tracks whether **your brand appears in AI-generated answers** — the new search results. It runs your buying-intent prompts (e.g. *"What is the best note-taking app for teams?"*) against **ChatGPT (OpenAI), Google Gemini and Perplexity** using **your own API keys**, then analyzes every answer: is your brand mentioned, in what position vs competitors, how often, and with what sentiment. Perfect for **AI SEO audits**, **LLM visibility tracking**, **share-of-voice in AI answers**, and **competitor benchmarking in generative search**.

### Why monitor AI answers?

**AI answers are the new search results.** A growing share of product discovery happens inside ChatGPT, Gemini and Perplexity instead of Google's ten blue links. If the AI doesn't mention your brand when a user asks about your category, you are invisible to that buyer — no ranking, no click, no chance.

Dedicated AI-visibility SaaS tools charge **$300+/month** for this. This actor is **pay-per-check** and uses **your own LLM API keys**, so a full weekly audit of 20 prompts across 3 providers costs you cents of API usage plus a tiny per-check fee. No subscription, no lock-in.

### What you get for each prompt × provider check

```json
{
  "prompt": "What is the best note-taking app for teams?",
  "provider": "openai",
  "model": "gpt-5",
  "brand": "Notion",
  "mentioned": true,
  "mentionPosition": 1,
  "firstMentionCharIndex": 0,
  "mentionCount": 2,
  "competitorsMentioned": [
    { "name": "Evernote", "mentionCount": 1, "firstMentionCharIndex": 94 },
    { "name": "Obsidian", "mentionCount": 1, "firstMentionCharIndex": 134 }
  ],
  "sentimentHint": "positive",
  "answerExcerpt": "Notion is widely considered the best note-taking app for teams…",
  "changed": false,
  "checkedAt": "2026-07-02T09:30:00.000Z"
}
````

- **`mentionPosition`** — 1-based rank of your brand among all tracked brands (yours + competitors) by first occurrence in the answer. Position 1 = the AI names you first.
- **`sentimentHint`** — a simple keyword **heuristic** (positive words like *best, recommended, leading* vs negative words like *avoid, expensive, lacks* near your brand mentions). It is a hint, not an NLP sentiment model.
- **`changed`** — only in monitor mode: `true` when visibility flipped (gained or lost) vs the previous run for that prompt+provider.
- **`fullAnswer`** — included only when you enable `includeFullAnswer`.

### How to use it

1. **Set your brand** (e.g. `Notion`) and optionally **competitors** (e.g. `Evernote`, `Obsidian`).
2. **Add prompts** — the real questions your buyers ask AI assistants.
3. **Add your API keys** under `providers` — any subset of:
   ```json
   {
     "openai":     { "apiKey": "sk-...",   "model": "gpt-5" },
     "gemini":     { "apiKey": "AIza...",  "model": "gemini-2.5-flash" },
     "perplexity": { "apiKey": "pplx-...", "model": "sonar" }
   }
   ```
   Only providers with an `apiKey` are queried; the rest are skipped.
4. **(Optional) Enable monitor mode** and schedule the actor (e.g. weekly). Each run compares against the previous one and flags visibility changes — combine with a webhook for instant alerts.

**Why bring your own keys (BYO)?** You control the model, the rate limits and the cost — you pay your providers directly at API prices instead of a marked-up SaaS bundle. Your keys are entered in a **secret input field** (encrypted by Apify), used only to call the providers you configured, and **never stored or logged** by the actor.

### Use cases

- **Agency GEO reports**: run a client's prompt set weekly and deliver an AI-visibility report (mentioned/not, position, sentiment) across ChatGPT, Gemini and Perplexity.
- **Brand launch tracking**: watch your new brand start appearing in AI answers as your content and PR footprint grows.
- **Competitor benchmarking**: see exactly which competitors the AIs recommend first for your category prompts — and how you compare.
- **Visibility-loss alerting**: monitor mode + a schedule + a webhook = an alert the moment an AI stops (or starts) mentioning you.

### Pricing

**Pay per prompt-check** — one small charge per (prompt × provider) result delivered. Failed provider calls and configuration errors are not charged. LLM token costs are billed by your providers directly at their API rates.

### FAQ

#### Are my API keys safe?

Yes. The `providers` input field is marked **secret**, so Apify stores it encrypted. The actor sends each key only to its own provider's official API endpoint, and keys are never written to logs, dataset items or error messages.

#### Which models are supported?

Any chat model your key can access: OpenAI chat-completions models (default `gpt-5`), Google Gemini `generateContent` models (default `gemini-2.5-flash`), and Perplexity chat models (default `sonar`). Set the `model` field per provider to override.

#### How is sentiment computed?

It's a deliberately simple **keyword heuristic**: the actor looks at ±200 characters around each brand mention and counts positive words (*best, recommended, popular, powerful, leading, excellent, great*) vs negative words (*avoid, worse, expensive, limited, lacks, poor*). It gives a fast directional signal, not a full sentiment analysis — treat `sentimentHint` accordingly.

#### What happens if I run it without any API keys?

The run finishes gracefully: it logs a warning ("no providers configured") and pushes a single `NO_PROVIDERS_CONFIGURED` item (not charged) so schedules and integrations can detect the misconfiguration.

#### How do I schedule a weekly check?

In the Apify Console, create a **Schedule** (e.g. every Monday 08:00), attach this actor with your saved input and `monitorMode: true`, and optionally add a **webhook** on run success to push results (including `changed` flags) to Slack, email or your reporting pipeline.

#### Can AI agents use this actor?

Yes — flat input, clean JSON output, and like every Apify actor it is consumable via the Apify MCP server, so agents can run visibility checks as a tool.

# Actor input Schema

## `brand` (type: `string`):

The brand name whose visibility you want to track in AI answers, e.g. `Notion`. Matching is case-insensitive with word boundaries.

## `competitors` (type: `array`):

Competitor brand names to compare against, e.g. `Evernote`, `Obsidian`. Used for mention position and competitor mention analysis.

## `prompts` (type: `array`):

The user questions to run against each AI provider, e.g. `What is the best note-taking app for teams?`. Each prompt is sent to every configured provider.

## `providers` (type: `object`):

Your own API keys per provider. Only providers with an `apiKey` are queried. Example: \`{ "openai": { "apiKey": "sk-...", "model": "gpt-5" }, "gemini": { "apiKey": "...", "model": "gemini-2.5-flash" }, "perplexity": { "apiKey": "pplx-...", "model": "sonar" } }. Keys are stored encrypted (secret field) and never logged.

## `monitorMode` (type: `boolean`):

When enabled, the actor remembers the previous mention result per prompt+provider and adds a `changed` field (visibility gained/lost vs the last run). Ideal for scheduled runs with webhook alerts.

## `temperature` (type: `number`):

Sampling temperature passed to each provider.

## `includeFullAnswer` (type: `boolean`):

When enabled, each result item also contains the full raw answer (`fullAnswer`). Off by default to keep the dataset compact.

## Actor input object example

```json
{
  "brand": "Notion",
  "competitors": [],
  "prompts": [
    "What is the best note-taking app for teams?"
  ],
  "monitorMode": false,
  "temperature": 0.7,
  "includeFullAnswer": false
}
```

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "brand": "Notion",
    "prompts": [
        "What is the best note-taking app for teams?"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("vertaizen/ai-brand-visibility-monitor").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "brand": "Notion",
    "prompts": ["What is the best note-taking app for teams?"],
}

# Run the Actor and wait for it to finish
run = client.actor("vertaizen/ai-brand-visibility-monitor").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "brand": "Notion",
  "prompts": [
    "What is the best note-taking app for teams?"
  ]
}' |
apify call vertaizen/ai-brand-visibility-monitor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=vertaizen/ai-brand-visibility-monitor",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "AI Brand Visibility Monitor — ChatGPT, Gemini & Perplexity",
        "description": "Track whether YOUR brand shows up when users ask ChatGPT, Gemini or Perplexity about your product category. GEO/AEO monitoring with competitor comparison, sentiment hints and visibility-change alerts. BYO API keys.",
        "version": "1.0",
        "x-build-id": "y50lN6LfPJnsot5ep"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/vertaizen~ai-brand-visibility-monitor/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-vertaizen-ai-brand-visibility-monitor",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/vertaizen~ai-brand-visibility-monitor/runs": {
            "post": {
                "operationId": "runs-sync-vertaizen-ai-brand-visibility-monitor",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/vertaizen~ai-brand-visibility-monitor/run-sync": {
            "post": {
                "operationId": "run-sync-vertaizen-ai-brand-visibility-monitor",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "brand",
                    "prompts"
                ],
                "properties": {
                    "brand": {
                        "title": "Brand to track",
                        "type": "string",
                        "description": "The brand name whose visibility you want to track in AI answers, e.g. `Notion`. Matching is case-insensitive with word boundaries."
                    },
                    "competitors": {
                        "title": "Competitor brands",
                        "type": "array",
                        "description": "Competitor brand names to compare against, e.g. `Evernote`, `Obsidian`. Used for mention position and competitor mention analysis.",
                        "default": [],
                        "items": {
                            "type": "string"
                        }
                    },
                    "prompts": {
                        "title": "Prompts to test",
                        "type": "array",
                        "description": "The user questions to run against each AI provider, e.g. `What is the best note-taking app for teams?`. Each prompt is sent to every configured provider.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "providers": {
                        "title": "LLM providers & API keys (BYO keys)",
                        "type": "object",
                        "description": "Your own API keys per provider. Only providers with an `apiKey` are queried. Example: `{ \"openai\": { \"apiKey\": \"sk-...\", \"model\": \"gpt-5\" }, \"gemini\": { \"apiKey\": \"...\", \"model\": \"gemini-2.5-flash\" }, \"perplexity\": { \"apiKey\": \"pplx-...\", \"model\": \"sonar\" } }. Keys are stored encrypted (secret field) and never logged."
                    },
                    "monitorMode": {
                        "title": "Monitor mode — detect visibility changes",
                        "type": "boolean",
                        "description": "When enabled, the actor remembers the previous mention result per prompt+provider and adds a `changed` field (visibility gained/lost vs the last run). Ideal for scheduled runs with webhook alerts.",
                        "default": false
                    },
                    "temperature": {
                        "title": "Temperature",
                        "minimum": 0,
                        "maximum": 2,
                        "type": "number",
                        "description": "Sampling temperature passed to each provider.",
                        "default": 0.7
                    },
                    "includeFullAnswer": {
                        "title": "Include full answer text",
                        "type": "boolean",
                        "description": "When enabled, each result item also contains the full raw answer (`fullAnswer`). Off by default to keep the dataset compact.",
                        "default": false
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
