Nyraxis AI

Competitor Mention

Detect competitor brand names in LLM inputs and outputs.

Competitor Mention

The Competitor Mention provider detects references to competitor brands in both user inputs and LLM outputs. It prevents your agent from recommending, endorsing, or discussing competitor products — keeping conversations focused on your offerings.

What it detects

CategoryExamples
Direct mentionsCompetitor brand names appearing in text
Product recommendationsAgent suggesting a competitor's product or service
Comparative statementsOutput comparing your product unfavorably to a competitor
Redirect attemptsUsers trying to get your agent to discuss competitor features

Configuration

{
  "policy_type": "competitor_mention",
  "mode": "blocking",
  "config": {
    "competitors": ["Acme Corp", "RivalAI", "CompetitorX", "OtherBrand"]
  }
}
ParameterTypeDefaultDescription
competitorsstring[][]List of competitor brand names to detect. Case-insensitive matching.

Example violation

{
  "allowed": false,
  "violations": [
    {
      "policy_type": "competitor_mention",
      "severity": "low",
      "description": "Competitor brand mentioned in output: 'RivalAI'",
      "detected_competitor": "RivalAI",
      "location": "output"
    }
  ]
}

Best practices

  • Include common misspellings and abbreviations of competitor names in your list.
  • Use mode: "blocking" on outputs to prevent your agent from ever recommending competitors.
  • Use mode: "warning" on inputs to track how often users ask about competitors without blocking the conversation.
  • Keep your competitor list updated as the market evolves.
  • Combine with Topic Restriction if you want to prevent entire product-category discussions rather than just brand mentions.

On this page