angeo / module-aeo-brand-visibility

angeo/module-aeo-brand-visibility

Live AI brand visibility audit for Magento 2. Queries ChatGPT, Claude, Perplexity, Gemini and Groq with brand-probing prompts and scores real-world AI recall, citation rate and recommendation presence. Extends angeo/module-aeo-audit v3 via CheckerInterface as the 16th signal, alongside the 15 built-in technical checks.

  • Ievgenii Gryshkun
magento2-module 2.4.6-2.4.9 Compatible Based on composer requirements only QA: failed MIT

angeo/module-aeo-brand-visibility

Packagist Version
Packagist Downloads
PHP
Magento
License: MIT

Live AI brand visibility audit for Magento 2 — queries ChatGPT, Claude, Perplexity, Gemini and Groq with brand-probing prompts and scores real-world AI recall, citation rate and recommendation presence.

angeo/module-aeo-brand-visibility is an open-source Magento 2 module that answers one question: when someone asks ChatGPT "where should I buy X?", does your store appear in the answer? It runs configurable prompts across all major AI providers, detects brand signals in responses, and scores your visibility from 0 to 100 with a letter grade.


Table of contents


What it measures

Each AI query result is analysed for five signals:

Signal Description
Mentioned Your brand name appears in the AI response
Recommended AI actively suggests your store as a destination
URL Cited Your domain is included in the answer
1st Position Your store is the first recommendation
Positive Sentiment Response tone about your brand is positive

Each signal has a configurable weight. The overall score is a weighted average across all successful query results, converted to 0–100 and graded A–F.


Supported AI providers

Provider Models Cost Notes
Groq llama-3.3-70b-versatile, mixtral-8x7b Free Best starting point — 14,400 req/day, no card
Perplexity sonar, sonar-pro, sonar-deep-research Paid Live web search — most realistic signal
OpenAI gpt-4.1, gpt-4.1-mini, gpt-4o Paid
Anthropic Claude claude-sonnet-4-6, claude-haiku-4-5 Paid
Google Gemini gemini-2.5-flash-preview, gemini-2.0-flash Free tier + paid

Enable one or more providers. Each active provider runs all configured prompts, and results are aggregated into a single score.


Requirements

  • PHP 8.2, 8.3, or 8.4
  • Magento 2.4.6 / 2.4.7 / 2.4.8 (Adobe Commerce / Mage-OS supported)
  • angeo/module-aeo-audit ^3.0
  • ext-curl

v1.1.0 compatibility note: this module requires angeo/module-aeo-audit v3.0 or newer. If you're on v2.x of the audit module, either update both, or pin this module to ^1.0 which still works against v2.x.


Installation

composer require angeo/module-aeo-brand-visibility
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento cache:flush

Quick start

Step 1 — Configure your brand

Go to Stores → Configuration → Angeo AEO → Brand Visibility → General:

  1. Brand Name → your store name as AI systems know it (e.g. Angeo)
  2. Brand Domain → your domain without protocol (e.g. angeo.dev)
  3. Store Category → what you sell (e.g. Magento development tools)

Step 2 — Enable a free provider (Groq)

Go to Groq Settings:

  1. Get a free API key at console.groq.com — no credit card
  2. Enable GroqYes
  3. Groq API Key → paste your gsk_... key
  4. Save Config

Step 3 — Run your first audit

bin/magento angeo:aeo:brand-visibility

Or from Admin Panel: Marketing → Angeo AEO → Brand Visibility → Run Audit


Admin Panel

Marketing → Angeo AEO → Brand Visibility

Run Audit

The main dashboard with:

  • Score ring — overall score 0–100 with letter grade (A–F)
  • Signal breakdown — mention rate, recommendation rate, URL citation rate, 1st position rate, positive sentiment rate
  • Results table — per-provider, per-prompt responses with detected signals highlighted
  • Action plan — prioritised recommendations to improve your score
  • Single Query Tester — test one provider + one prompt without saving to history

Audit History

Grid view of all past audit runs with:

  • Date, brand, score (colour-coded), grade (badge), triggered by, query count, error count
  • Signal pills showing signal rates at a glance
  • Click any row action → View for full detail page with raw AI responses

Configuration

Stores → Configuration → Angeo AEO → Brand Visibility


CLI usage

# Full audit — all enabled providers, all enabled prompts
bin/magento angeo:aeo:brand-visibility

# Force fresh queries — bypass cache
bin/magento angeo:aeo:brand-visibility --refresh

# Test a single provider
bin/magento angeo:aeo:brand-visibility --provider=groq

# Test a single provider + specific prompt
bin/magento angeo:aeo:brand-visibility --provider=chatgpt --prompt=brand_direct

# Output as JSON (useful for CI pipelines)
bin/magento angeo:aeo:brand-visibility --format=json

# CI mode — exit code 1 if score below threshold
bin/magento angeo:aeo:brand-visibility --fail-on=70
Option Values Description
--refresh / -r flag Bypass cache, force live queries
--provider chatgpt claude perplexity gemini groq Test one provider only
--prompt recommendation category brand_direct product_search comparison gift_guide Test one prompt type only
--format table json markdown Output format. Default: table
--fail-on 0100 Exit 1 if overall score is below this value

Full configuration reference

Path: Stores → Configuration → Angeo AEO → Brand Visibility


General

Field Default Description
Brand Name (store name) Your brand name as AI systems know it
Brand Domain Your domain without protocol (e.g. angeo.dev). Used for URL citation detection.
Brand Keywords Comma-separated aliases the AI may use to refer to your brand
Store Category What you sell (e.g. Magento 2 development tools). Used in prompts.
Top Products / Services Newline-separated product or service names for product search prompts
Cache Results (hours) 12 How long to cache audit results. 0 = always run live.
Enable Cron No Run automatically on a schedule

AI Providers

Each provider has its own section. Enable the ones you have API keys for.

ChatGPT (OpenAI)

Field Default Description
Enable ChatGPT No
API Key Starts with sk-. Stored encrypted.
Model gpt-4.1 gpt-4.1-mini is fastest and cheapest.
Max Tokens 800 Maximum response length.
Request Timeout (s) 30

Claude (Anthropic)

Field Default Description
Enable Claude No
API Key Starts with sk-ant-. Stored encrypted.
Model claude-sonnet-4-6 claude-haiku-4-5 is fastest and cheapest.
Max Tokens 800
Request Timeout (s) 60

Perplexity

Field Default Description
Enable Perplexity No
API Key Stored encrypted.
Model sonar sonar-pro for deeper web search. sonar-deep-research for most thorough results.
Max Tokens 800
Request Timeout (s) 60 Perplexity performs live web searches — may be slower.

Note: Perplexity uses live web search, making it the most realistic indicator of actual AI visibility. It reflects what customers would see today, not what was in training data months ago.

Gemini (Google)

Field Default Description
Enable Gemini No
API Key Stored encrypted.
Model gemini-2.5-flash-preview-05-20 gemini-2.0-flash has a free tier.
Max Tokens 800
Request Timeout (s) 30

Groq (Free)

Field Default Description
Enable Groq No
API Key Starts with gsk_. No credit card required.
Model llama-3.3-70b-versatile Best quality on free tier.
Max Tokens 800
Request Timeout (s) 30

Free tier: 30 RPM, 14,400 requests/day.


Query Prompts

Six prompt types are available. Enable or disable each individually.

Prompt Key Example query sent to AI
recommendation "What are the best online stores to buy [category]?"
category "Where can I buy [category] online?"
brand_direct "Tell me about [brand] — what do they sell and what is their website?"
product_search "I'm looking for [top products] online. Which stores do you recommend?"
comparison "Compare [brand] with other [category] stores online."
gift_guide "Which online stores have the best [category] for gifts?"

Additional settings:

Field Default Description
Queries per Provider 3 How many prompts to run per enabled provider per audit
Delay Between Queries (ms) 500 Rate limiting delay between individual API calls
System Prompt (default) Instructions sent to each AI model before the query
Custom Prompts Additional prompts, one per line, format: key: prompt text

Scoring

Signal weights determine the contribution of each detected signal to the overall score:

Signal Default Weight
1st Position 2.0
Recommended 1.5
URL Cited 1.5
Mentioned 1.0
Positive Sentiment 0.5

Grade thresholds:

Score Grade
90–100 A
75–89 B
60–74 C
40–59 D
0–39 F

Cron

Field Default Description
Enable Cron No Run audit automatically on a schedule
Schedule 0 6 * * * Standard cron expression. Default: daily at 6:00 AM.

Results from cron runs appear in Audit History with triggered_by: cron.


Setup guides

Groq API key (free)

  1. Go to console.groq.com — create an account, no credit card required
  2. API Keys → Create API key
  3. Copy the key (starts with gsk_)
  4. In Magento: Stores → Configuration → Angeo AEO → Brand Visibility → Groq Settings → API Key

OpenAI API key

  1. Go to platform.openai.com → sign in or create account
  2. API keys → Create new secret key
  3. Copy the key (starts with sk-) — shown only once
  4. In Magento: ... → ChatGPT Settings → API Key

Anthropic Claude API key

  1. Go to console.anthropic.com → create account
  2. API Keys → Create Key
  3. Copy the key (starts with sk-ant-)
  4. In Magento: ... → Claude Settings → API Key

Google Gemini API key

  1. Go to aistudio.google.com/app/apikey
  2. Create API key in new project
  3. Copy the key
  4. In Magento: ... → Gemini Settings → API Key

Perplexity API key

  1. Go to perplexity.ai/settings/api
  2. Generate → copy the key
  3. In Magento: ... → Perplexity Settings → API Key

Scoring explained

Each AI query produces a BrandQueryResult with five boolean signals. Signals are weighted and averaged:

query_score = sum(signal_weight for each detected signal) /
              sum(all_signal_weights) * 100

The overall score is the average of all successful query scores. Failed queries (API errors) are excluded from the average.

Example with default weights:

  • 1st Position detected → +2.0
  • Recommended detected → +1.5
  • URL Cited not detected → 0
  • Mentioned detected → +1.0
  • Positive Sentiment detected → +0.5
query_score = (2.0 + 1.5 + 1.0 + 0.5) / (2.0 + 1.5 + 1.5 + 1.0 + 0.5) * 100
            = 5.0 / 6.5 * 100 = 76.9 → Grade B

How to improve your score

Signal missing Root cause Fix
Not mentioned AI has no knowledge of your brand Publish content that AI systems crawl: Dev.to, Reddit, GitHub
URL not cited Domain not in AI training data or live index Install angeo/module-llms-txt to give AI systems a structured map of your site
Not recommended No authority signals in AI-accessible content Add Product and Organization JSON-LD via angeo/module-rich-data
Not 1st position Competitors have stronger AI presence Increase external mentions: guest posts, Packagist downloads, GitHub stars
Negative sentiment Poor reviews or negative coverage Address public feedback; ensure AI-crawlable content is positive

Run bin/magento angeo:aeo:audit for a full 15-signal technical AEO audit to identify and fix the infrastructure issues that block AI indexing.


Integration with angeo/module-aeo-audit

When angeo/module-aeo-audit v3.0+ is installed (required dependency), this
module adds a brand_visibility checker to the AEO audit pipeline as the
16th signal alongside the 15 built-in ones.

# Full 16-signal audit including brand visibility
bin/magento angeo:aeo:audit

# Skip brand visibility (saves API calls) — runs only the 15 built-in technical checks
bin/magento angeo:aeo:audit --category=technical,feed

# Run only live signals (this checker — live_signal category is reserved for third-party live checks)
bin/magento angeo:aeo:audit --category=live_signal

Brand visibility is registered with:

  • Category: live_signal — calls external APIs
  • Severity: critical — headline AEO metric
  • Weight: 1.0 — top-tier signal in the score

Pass/warn/fail status is driven by your configured score thresholds
(default pass = 80, warn = 60).

Custom-checker authors

This module is the canonical example of how to extend the audit pipeline.
v3 checker contract:

public function check(\Magento\Store\Api\Data\StoreInterface $store): CheckResult;
public function getCategory(): string;   // CheckerInterface::CATEGORY_*
public function getSeverity(): string;   // CheckerInterface::SEVERITY_*

Extending \Angeo\AeoAudit\Model\Checker\AbstractChecker is the easiest
path — you get HttpCache + StoreUrlSampler + JSON-LD parsing
helpers + result factory methods for free.


Related modules

Module Purpose
angeo/module-aeo-audit 15-signal CLI audit — robots/llms/schema/UCP/feeds/etc.
angeo/module-llms-txt Auto-generates llms.txt and llms.jsonl
angeo/module-rich-data Product, Organization, FAQPage JSON-LD schema
angeo/module-openai-product-feed ChatGPT Shopping product feed
angeo/module-ucp Universal Commerce Protocol /.well-known/ucp
angeo/module-ai-description-updater Bulk AI product description generation

License

MIT — free to use, modify, and distribute.


Author

Ievgenii Gryshkun · angeo.dev · [email protected]

Changelog

All notable changes to angeo/module-aeo-brand-visibility will be documented in this file.

The format is based on Keep a Changelog,
and this project adheres to Semantic Versioning.

[1.1.1] — 2026-05-28

Changed — documentation only (no code changes)

angeo/module-aeo-audit v3.0.0 final release ships with 15 built-in
signals
, not the 16 referenced in this module's v1.1.0 README. The
ai_bot_traffic checker was removed from aeo-audit during pre-release
security review (it encouraged broad read access on /var/log/nginx/,
didn't work on Cloud/containerised hosting, and was dominated by false
positives behind edge caches — see aeo-audit CHANGELOG "Considered and
rejected" for the full rationale).

This patch release synchronises documentation with the published aeo-audit
v3.0.0 counts:

  • README: "17th signal alongside the 16 built-in ones" →
    "16th signal alongside the 15 built-in ones"
  • README CLI examples: "Full 17-signal audit" → "Full 16-signal audit";
    "16 built-in technical checks" → "15 built-in technical checks"
  • README CLI examples: "Run only live signals (this checker + AI bot
    traffic)" → "Run only live signals (this checker — live_signal
    category is reserved for third-party live checks)"
  • README Related modules: "16-signal CLI audit" → "15-signal CLI audit"
  • README How-to-improve: "8-signal technical AEO audit" (stale since v2) →
    "15-signal technical AEO audit"

No behaviour change. BrandVisibilityChecker continues to register
under CheckerInterface::CATEGORY_LIVE_SIGNAL (still a valid constant
in aeo-audit v3.0.0), and aeo-audit's documentation explicitly reserves
that category for this module. Upgrading from 1.1.0 → 1.1.1 is risk-free.

[1.1.0] — 2026-05-22

Compatibility — required for angeo/module-aeo-audit v3.0+

This release adapts BrandVisibilityChecker to the v3 CheckerInterface
introduced in angeo/module-aeo-audit 3.0.0. Without this update, attempting
to use brand-visibility v1.0.x with aeo-audit v3.x produces a fatal at boot:

Fatal error: Declaration of
Angeo\AeoBrandVisibility\Model\Checker\BrandVisibilityChecker::check(string $baseUrl)
must be compatible with
Angeo\AeoAudit\Api\CheckerInterface::check(Magento\Store\Api\Data\StoreInterface $store)

Changed

  • BrandVisibilityChecker::check() signature updated to accept
    \Magento\Store\Api\Data\StoreInterface $store (was string $baseUrl).
  • BrandVisibilityChecker now extends \Angeo\AeoAudit\Model\Checker\AbstractChecker
    instead of implementing CheckerInterface directly — gets shared HttpCache,
    StoreUrlSampler, and result factory helpers automatically.
  • Replaced direct new CheckResult(...) calls with the v3 named factories
    ($this->pass() / $this->warn() / $this->fail()) — these correctly
    propagate checkCode, weight, category and severity into the result.
  • The disabled-module case now returns WARN instead of the removed
    STATUS_SKIP (the v3 status vocabulary is pass / warn / fail only).
  • Weight clamped from 1.5 → 1.0 to fit the v3 normalised-weight contract
    (0.0–1.0). Brand visibility remains a top-tier signal because all
    technical checks at 1.0 share the same weight.
  • The service-exception catch broadened from \RuntimeException to
    \Throwable — covers \Error and \LogicException from upstream
    provider client libraries.

Added

  • getCategory(): string → returns CATEGORY_LIVE_SIGNAL (external API).
    Allows bin/magento angeo:aeo:audit --category=technical to skip the
    brand check for fast cron runs.
  • getSeverity(): string → returns SEVERITY_CRITICAL. Plays with
    --fail-on-severity=critical for CI gates.
  • details array now surfaces full breakdown: score, grade, queries
    run/ok, all four signal rates, cache flag, configured thresholds.
  • New unit test suite Test/Unit/Model/Checker/BrandVisibilityCheckerTest
    with 13 test cases covering signature compatibility, short-circuits,
    threshold-driven outcomes, recommendation building.

Migration from 1.0.x

For typical users — composer update angeo/module-aeo-brand-visibility.
The DI wiring in etc/di.xml is unchanged (the AuditRunner argument
extension is identical between v2 and v3 of aeo-audit).

If you pinned angeo/module-aeo-audit to v2.x:

  • Keep angeo/module-aeo-brand-visibility pinned to ^1.0, OR
  • Update both to v3.0+ together.

[1.0.0] — 2026-04-15

Added

  • Initial release.
  • Live AI brand audit across ChatGPT, Claude, Perplexity, Gemini and Groq.
  • Five-signal scoring (Mentioned / Recommended / URL Cited / First Result / Sentiment).
  • Configurable prompts, models, max_tokens, temperature per provider.
  • Admin UI: History grid, Detail view, Run-Audit form, Plan preview.
  • CLI: bin/magento angeo:aeo:brand-visibility.
  • Cron support with cache TTL.
  • Auto-registers as the 9th checker in angeo/module-aeo-audit via DI.
Versions
Version Stability QA Status Released
1.1.1 stable Fail 2026-05-28 19:14:06
1.1.0 stable Not tested 2026-05-28 19:09:11
1.0.0 stable Not tested 2026-05-16 19:15:52

Requires 7

Package Constraint
angeo/module-aeo-audit ^3.0
ext-curl *
magento/framework ^103.0
magento/module-backend ^102.0
magento/module-config ^101.2
magento/module-store ^101.1
php ~8.2.0||~8.3.0||~8.4.0

Requires-dev 2

Package Constraint
phpstan/phpstan ^1.10
phpunit/phpunit ^10.0

Suggests 3

Package Reason
angeo/module-llms-txt Publish llms.txt to improve brand recall in AI training pipelines.
angeo/module-openai-description-updater Improve product content quality to increase AI citation rate.
angeo/module-rich-data Improve Organization + Product schema to strengthen entity recognition.
QA results
Tool Status Findings Summary
PHPCS Fail 14 14 errors (gating threshold: error-severity=10, ruleset: Magento2)
PHPStan Fail 16 16 errors (level 4, ruleset: phpstan + bitexpert/phpstan-magento)
Cpd Pass 0
Security Pass 0
License
MIT
Authors
Make it pay

Turn an existing module into recurring revenue.

If you already maintain a Magento 2 module on GitHub or GitLab, listing it on Packagento takes about five minutes. We mirror your tags, handle distribution signing, and route paid licenses through Stripe Connect, so you can keep shipping the way you already do.