Skip to content

Rules

Olly applies rules to every chat so it understands your team's environment, conventions, and preferences without you having to repeat them. There are two kinds:

  • Team rules — defined by an admin and applied for everyone in the team.
  • User rules — defined by each user for their own chats.

Rules are written in plain text, persist across sessions, and are automatically included in every interaction.

How rules are applied

Olly merges all enabled rules before responding. When two rules conflict, the earlier source wins:

  1. Team rules
  2. User rules

Adding, editing, or deleting a rule does not reprocess past chats — changes apply to subsequent interactions only.

Team rules

Team rules let admins define team-wide instructions that Olly applies for everyone in the team — without each user having to repeat the same context.

Example team rules:

  • "Production data should always be prioritized over staging."
  • "The field service.name represents the owning team."
  • "Security issues should be highlighted before performance issues."
  • "Ignore debug logs unless explicitly requested."

Permissions

The following permissions, both in the AI permission group, control access to team rules:

Visibility

  • Admins see every team rule, including ones that are disabled. A disabled rule is marked with a Disabled indicator.
  • All other team members see only enabled rules, in read-only mode.

Create a team rule

  1. Select Settings, then Olly AI, then Rules.
  2. Open the Team rules section.
  3. Select + New rule.
  4. Enter the rule in plain text.
  5. Select Create.

The rule is validated, saved, and applied to every subsequent interaction for all users in the team.

Edit, disable, or delete a team rule

From the Team rules section, an admin can:

  • Edit the text of an existing rule.
  • Toggle a rule off to remove it from prompts without deleting it. Non-admins do not see a disabled team rule.
  • Delete a rule that is no longer needed.

User rules

User rules let each user customize how Olly responds to them by defining personal preferences in plain text. They give Olly additional context about your environment, workflows, and response style.

Example user rules:

  • "The label application in my logs refers to the customer name."
  • "When I ask about chats, use custom metrics."
  • "Only analyze production environment data."
  • "Highlight error spikes over latency regressions."

Your user rules are private to you. Other team members do not see them, and Olly applies them only to your interactions.

Create a user rule

  1. Select Settings, then Olly AI, then Rules.
  2. Open the User rules section.
  3. Select + New rule.
  4. Enter the rule in plain text.
  5. Select Create.

Creating a user rule in Olly

Displays the user rules section and the + New rule flow.

Edit, disable, or delete a user rule

From the User rules section, you can:

  • Edit the text of any rule you created.
  • Toggle a rule off to remove it from prompts without deleting it. A disabled user rule stays visible on your page with a Disabled indicator.
  • Delete a rule that is no longer relevant.

Shared behavior

"New" tag

Olly marks every new rule with a New tag for seven days after creation, or until you open the rule for the first time — whichever happens first. This applies to both team rules and user rules.

Validation

Olly validates every rule before saving it. The same checks apply to team rules and user rules. Olly rejects a rule if it contains:

  • Prompt injection — attempts to override Olly's instructions, change tool permissions, exfiltrate data, or reveal internal prompts.
  • Foul language — hate or harassment, sexual content, self-harm, violence, or guidance for illicit or dangerous activity.

If a rule fails validation, Olly does not save it and returns an error message explaining why.

Next steps

Learn how Olly generates structured results you can export in Dynamic tables and export.