Skip to main content

Moderation and guardians

Guardians (also called moderators) check the messages flowing through your agents: user messages on the way in, agent replies on the way out. They block or flag what you don't want, and can replace personal data before it reaches the model. Apply them to the whole organization, or to a single agent.

Before you start​

  • You need the Create a moderator permission (and Update / Delete a moderator to change them).
  • Organization guardians are managed from Moderation in the Oversight section; an agent's own guardians from its Moderation tab, which also shows the organization's guardians that apply to it.

Create a guardian​

  1. Open Moderation (or the agent's Moderation tab) and click Create moderator.
  2. Enter a Moderator name and choose a Moderation type:
    • Toxicity: harmful or offensive content (insults, threats, hate speech…);
    • Prompt Injections: attempts to manipulate the agent's instructions;
    • Word Presence: specific words or intentions you forbid;
    • Anonymization: personal data (names, emails, phone numbers, IBANs, card numbers…) replaced or blocked.
  3. Click Create.

Configure it​

Open the guardian:

  1. Under Monitored positions, choose Entry (user messages), Exit (agent replies), or both.
  2. Under Implementation selection, choose Breign Guard API or Moderation API (any service compatible with a /moderation/v1 API), and enter its API Key, Endpoint and model if needed.
  3. Set the detection:
    • Toxicity: a risk level per category: Low, Normal, High, Critical, or Custom with your own threshold. The higher the level, the more is blocked.
    • Prompt Injections: the sensitivity.
    • Word Presence: add each forbidden word or intention.
    • Anonymization: choose the Anonymization mode (placeholders, or realistic fake values), then for each kind of data the Action on detection: Anonymized, Blocked or Ignored. Add your own patterns with Custom regex (a name, an entity type, optional context words and a confidence score). Try it with Test anonymization.
  4. For an organization guardian, use Excluded agents to exempt specific agents.

Result​

Messages matching the guardian's rules are moderated at the positions you chose. Entry guardians stop problematic input before it reaches the model; exit guardians catch problematic replies before they reach the user. With anonymization on entry, the model never sees the personal data.

If something goes wrong​

  • The guardian doesn't act: check its Monitored positions. With neither Entry nor Exit, it does nothing.
  • "No API key defined", "No moderation endpoint defined", "No moderation model defined": the chosen implementation needs them.
  • "Invalid Url endpoint": enter the full endpoint address.
  • Legitimate messages are blocked: lower the risk level for that category, refine the word list, or set an entity to Ignored.
  • "Unsafe regex (potential catastrophic backtracking)" or "Regex too long": simplify the pattern.