Brands
Brands are discovered automatically from AI provider responses. When an AI response cites a URL or mentions a brand name, the system resolves it against existing brands (case-insensitive) or creates a new one.
How your own brand is recognised
AI answers rarely spell a brand the way it was entered, so an answer about your brand is matched by more than its exact name:
- Citations by domain. A citation on a domain you added to one of your own brands is credited to that brand, whatever name the answer gave it. Subdomains count when the domain has
includeSubdomainsset, andwww.is ignored. When domains of two of your own brands both contain the cited host, the more specific domain wins. Domains that were only discovered from citations do not count. Nor does a domain you added whose name resembles none of the brand's names, such as a social network your brand has a page on: most pages there belong to someone else. - Names by spelling. A newly discovered name that an answer used is stored as a brand merged into your own brand when it is the same name once case, spacing and punctuation are ignored ("H.H.C. Group" for "Hhcgroup"), or the name of your own site ("Millsteamre" for
millsteamre.com). A name that only labels a cited website is not matched this way, because another site's address can spell like your brand. For the same reason, a citation on a website that is not yours is not credited to a merged name of your brand unless that website is already listed among that merged brand's domains. - Names that resemble yours. A newly discovered name that resembles your brand's is merged into it only when Lumar is confident both are the same business. Otherwise it is not merged, as with a parent company, a franchise network or a separately branded product.
A brand merged this way is listed in mergedBrands like any other merged brand, and you can separate it with unmergeAiVisibilityBrand. Only brands that Lumar has not classified yet are merged automatically. A brand you unmerge or set a type for is never merged for you.
Each brand has a type:
| Type | Description |
|---|---|
Own | Your brand (the primary brand) |
Competitor | A company in the same market as your brand |
Other | A real brand that is not a direct competitor, such as a publisher or a company in an adjacent market |
Context | A platform that appears in answers without competing in your market, such as Google, ChatGPT, Wikipedia or Reddit. Counted in appearances, excluded from share of voice |
How a brand's type is set
typeSource on a brand says who set its type:
| Type source | Meaning |
|---|---|
Pending | A prompt run has just discovered the brand and it has not been classified yet. Its type reads Other until then. |
Automatic | Lumar classified the brand when a prompt run first discovered it. When the classification is not confident, or cannot be completed, the brand stays Other. Brands that existed before automatic classification and still read Other also report Automatic. |
User | A user set the type with updateAiVisibilityBrand. |
Lumar classifies a brand once, when it is first discovered. Later runs that find the same brand leave its type alone, and a type a user sets is never overwritten, including while a classification is still in progress. Brands merged into another brand take that brand's type and type source.
List brands
Retrieve brands for a project with visibility metrics. The aiVisibilityBrandId parameter specifies which brand's perspective to use for calculating metrics.
query GetAiVisibilityBrands(
$accountId: ObjectID!
$aiVisibilityProjectId: ObjectID!
$dateRange: AiVisibilityDateRangeInput
) {
getAiVisibilityBrands(
accountId: $accountId
aiVisibilityProjectId: $aiVisibilityProjectId
dateRange: $dateRange
first: 20
orderBy: [{ field: avgVisibilityScore, direction: DESC }]
) {
nodes {
id
rawId
name
type
primary
avgVisibilityScore
avgCitationQualityScore
avgBrandMentionQualityScore
avgBrandPosition
avgBrandSentiment
totalBrandCitations
domain
}
pageInfo {
hasNextPage
endCursor
}
totalCount
}
}
Sorting
Brands can be sorted by: name, domain, avgVisibilityScore, avgCitationQualityScore, avgBrandMentionQualityScore, avgBrandPosition, avgBrandSentiment, totalBrandCitations, type.
Default sort is avgVisibilityScore DESC when a date range is provided, or name ASC when omitted.
Metrics
When a dateRange is provided, each brand includes these computed metrics:
| Field | Description |
|---|---|
avgVisibilityScore | Composite score (0-100) combining citation and mention quality |
avgCitationQualityScore | Average quality score for citations |
avgBrandMentionQualityScore | Average quality score for brand mentions |
avgBrandPosition | Average citation position in responses |
avgBrandSentiment | Average sentiment score for brand mentions |
totalBrandCitations | Total number of citations |
domain | Primary domain associated with the brand |
Filtering on metrics
Besides types and search, the list can be narrowed to brands whose metrics match. Each of these arguments takes the comparisons eq, ne, lt, le, gt and ge, and every comparison you set must hold, so { ge: 10, lt: 20 } selects a band:
| Parameter | Type | Compares the brand's |
|---|---|---|
avgVisibilityIndex | AiVisibilityFloatFilterInput | avgVisibilityIndex |
avgBrandPosition | AiVisibilityFloatFilterInput | avgBrandPosition |
totalBrandMentions | AiVisibilityIntFilterInput | totalBrandMentions |
totalBrandCitations | AiVisibilityIntFilterInput | totalBrandCitations |
avgBrandSentiment | AiVisibilityFloatFilterInput | avgBrandSentiment |
For example, competitors above 10 visibility that are cited in the top three positions on average:
query GetAiVisibilityFilteredBrands(
$accountId: ObjectID!
$aiVisibilityProjectId: ObjectID!
$types: [AiVisibilityBrandType!]
$avgVisibilityIndex: AiVisibilityFloatFilterInput
$avgBrandPosition: AiVisibilityFloatFilterInput
$dateRange: AiVisibilityDateRangeInput
) {
getAiVisibilityBrands(
accountId: $accountId
aiVisibilityProjectId: $aiVisibilityProjectId
types: $types
avgVisibilityIndex: $avgVisibilityIndex
avgBrandPosition: $avgBrandPosition
dateRange: $dateRange
first: 20
) {
nodes {
rawId
name
type
avgVisibilityIndex
avgBrandPosition
}
pageInfo {
hasNextPage
endCursor
}
totalCount
}
}
- The filters choose which brands are returned without changing any brand's metrics, and
totalCountcounts only the brands that match. They work withorderByand cursor paging like any other argument. - The filters leave Share of Voice alone, as
searchdoes. The denominators,brandsInScopeand each brand's share still cover every brand in scope, andothersstill rolls up every in-scope brand that is not on the page, including the brands a filter hid. SoavgVisibilityIndex: { gt: 10 }with every match on one page still returnsothers, and itsbrandCountincludes the brands at 10 or below. To change the set Share of Voice is computed over, usetypes. - Metrics are compared as returned: averages are rounded to one decimal place, so a brand shown with
avgVisibilityIndex: 10is not kept by{ gt: 10 }. - A brand that was never cited has no
avgBrandPosition, and one that was never mentioned has noavgBrandSentiment. Such a brand never matches a filter on that metric, not evenne. - The metrics exist only for a date range, so these filters require
dateRange. Without one, the query fails with the error codeAI_VISIBILITY_METRIC_FILTER_REQUIRES_DATE_RANGE, and the error'sfiltersextension lists the filters that were set. - Filters on different fields, and every other argument, combine with AND.
Search brands
Search brands by name without requiring date range or brand ID parameters:
query SearchAiVisibilityBrands(
$accountId: ObjectID!
$aiVisibilityProjectId: ObjectID!
$search: String!
) {
searchAiVisibilityBrands(
input: {
accountId: $accountId
aiVisibilityProjectId: $aiVisibilityProjectId
search: $search
}
) {
id
rawId
name
type
}
}
Top brands
Get the top brands ranked by visibility score. Returns a short list (6 brands by default, or a size you set with brandLimit) with the focus brand always included. Useful for leaderboard-style displays.
query GetAiVisibilityTopBrands(
$accountId: ObjectID!
$aiVisibilityProjectId: ObjectID!
$aiVisibilityBrandId: ObjectID!
$dateRange: AiVisibilityDateRangeInput
) {
getAiVisibilityTopBrands(
accountId: $accountId
aiVisibilityProjectId: $aiVisibilityProjectId
aiVisibilityBrandId: $aiVisibilityBrandId
dateRange: $dateRange
) {
totalRankedBrands
brands {
id
rawId
name
type
rank
avgVisibilityScore
avgCitationQualityScore
avgBrandMentionQualityScore
totalBrandCitations
totalBrandMentions
avgBrandPosition
avgBrandSentiment
domain
}
}
}
The totalRankedBrands field indicates how many brands were ranked in total. Each brand includes a rank field showing its position.
You can scope top brands to a specific topic or prompt using the optional aiVisibilityTopicId or aiVisibilityPromptId parameters.
Fixed-size lists
By default the list holds the top 6 brands, or the top 3 plus the focus brand and its neighbours when the focus brand ranks below 6th. To fill a panel with an exact number of rows, pass brandLimit. The result is then the focus brand, the project's primary brand and every brand in includeBrandIds, filled with the highest-ranked other brands up to brandLimit rows, ordered by rank. Every brand keeps its real rank, and no neighbours are added.
getAiVisibilityTopBrands(
accountId: "..."
aiVisibilityProjectId: "..."
aiVisibilityBrandId: "<viewed brand>"
brandLimit: 6
includeBrandIds: ["<another brand>"]
)
Pinned brands are never dropped, so the list can be longer than brandLimit when they outnumber it. A pinned brand whose type is excluded by brandTypes comes last, with rank 0. Passing includeBrandIds without brandLimit returns 6 rows. Each included brand must belong to the project and must not be merged.
Update brand type
Classify a brand as Competitor, Other or Context. The change sets the brand's typeSource to User, so automatic classification never changes it again:
mutation UpdateAiVisibilityBrand(
$accountId: ObjectID!
$aiVisibilityBrandId: ObjectID!
$type: AiVisibilityBrandType!
) {
updateAiVisibilityBrand(
input: {
accountId: $accountId
aiVisibilityBrandId: $aiVisibilityBrandId
type: $type
}
) {
aiVisibilityBrand {
id
name
type
typeSource
}
}
}
You cannot update the type of a merged brand directly. Update the target brand instead, and all merged brands will be synced automatically.
Merge brands
When the same entity appears under different names (e.g. "Lumar" and "Deepcrawl"), you can merge them. Merged brands are excluded from the brand list but their data is included in the target brand's aggregations.
mutation MergeAiVisibilityBrands(
$accountId: ObjectID!
$aiVisibilitySourceBrandIds: [ObjectID!]!
$aiVisibilityTargetBrandId: ObjectID!
) {
mergeAiVisibilityBrands(
input: {
accountId: $accountId
aiVisibilitySourceBrandIds: $aiVisibilitySourceBrandIds
aiVisibilityTargetBrandId: $aiVisibilityTargetBrandId
}
) {
targetBrand {
id
name
type
}
sourceBrands {
id
name
isMerged
mergedIntoAiVisibilityBrandId
}
}
}
You can merge multiple source brands into a single target in one operation. Cascading merges are handled automatically -- if a source brand already has other brands merged into it, those are redirected to the new target.
Validation rules
- Cannot merge the primary brand
- Cannot merge an already-merged brand
- Cannot merge into a brand that is itself merged
- Cannot merge a brand into itself
- Source and target must be in the same project
Unmerge a brand
Separate a previously merged brand. The brand reappears in the brand list with its original data.
A merged brand takes the type of the brand it was merged into, and keeps that type when you unmerge it. The one exception is a brand unmerged from one of your own brands: it becomes Other with typeSource Automatic, so it stops counting as your brand.
mutation UnmergeAiVisibilityBrand(
$accountId: ObjectID!
$aiVisibilityBrandId: ObjectID!
) {
unmergeAiVisibilityBrand(
input: {
accountId: $accountId
aiVisibilityBrandId: $aiVisibilityBrandId
}
) {
aiVisibilityBrand {
id
name
isMerged
}
}
}
Promote a merged brand
Promote a merged brand to become the new "main" brand in a merge group. All sibling brands are redirected to point to the newly promoted brand.
mutation PromoteAiVisibilityBrand(
$accountId: ObjectID!
$aiVisibilityBrandId: ObjectID!
) {
promoteAiVisibilityBrand(
input: {
accountId: $accountId
aiVisibilityBrandId: $aiVisibilityBrandId
}
) {
promotedBrand {
id
name
isMerged
}
previousMainBrand {
id
name
isMerged
}
}
}
For example, if brands A and B are merged into C, promoting A makes it the new main with B and C merged into A.
Schema reference
AiVisibilityBrand-- Brand typeAiVisibilityBrandListItem-- Brand list item with metricsAiVisibilityBrandType-- Brand classificationAiVisibilityBrandTypeSource-- Who set a brand's typeAiVisibilityBrandDomain-- Associated domains