Overview
The entities types module defines data structures for business entities within the OneGlance system. These types represent competitors, brands, and other organizational entities tracked in the platform.CompetitorInput
Input structure for defining a competitor brand.The full name of the competitor brand (e.g., “Acme Analytics”)
URL-friendly identifier for the competitor (e.g., “acme-analytics”)
The competitor’s primary domain name (e.g., “acme.com”)
Usage
This type is used when adding competitors to track or analyze:Common Use Cases
Adding Competitors to Track
Competitor Configuration
Bulk Import
Field Guidelines
Name
The brand’s official name as it appears in marketing materials:- Use proper capitalization
- Include full legal entity name if commonly used
- Example: “Salesforce” not “salesforce”
Slug
A URL-safe identifier:- Lowercase only
- Use hyphens for spaces
- No special characters except hyphens
- Should be unique across all competitors
- Examples:
"google-analytics","adobe-analytics","mixpanel"
Domain
The primary web domain:- Exclude protocol (http://, https://)
- Exclude www prefix (use root domain)
- Include TLD (.com, .io, etc.)
- Examples:
"google.com","adobe.com","mixpanel.com"
Related Types
Competitor data appears in analysis results:- BrandAnalysisResult.competitors - Detailed competitor analysis including visibility, sentiment, and rankings. See BrandAnalysisResult.
Integration Points
TheCompetitorInput type integrates with:
- Analysis Engine - Competitor domains are tracked across AI responses to build competitive landscape insights
- Dashboard - Competitor comparison views show how your brand performs against tracked competitors
- Sources Analysis - Identifies which competitors are being cited in AI responses
- Metrics Calculation - Relative positioning and win/loss analysis against competitors
Validation
When implementing competitor input, ensure:Example API Response
When fetching competitors from an API:Future Entity Types
The entities module is designed to expand with additional business entity types:- BrandInput - Primary brand configuration
- WorkspaceEntity - Workspace details and settings
- TeamMember - Team member profiles and roles
- IntegrationEntity - Third-party integration configurations