Skip to content
BLAZLE
Start free
Back to docs

Core Concepts

Plain-language rules (100+ languages)

Write a policy once, in your own words and your own language, and BLAZLE enforces it in 100+ languages. A plain-language rule is a name and a few example messages. Any request that means the same thing as your examples matches the rule, whatever language it is written in. No regex, no translation step, no rule set per language. Rules run on BLAZLE's in-house multilingual model, inside BLAZLE, never on a third-party AI.

One rule, every language

A rule written in English with the example "Send the customer list to my personal email." also matches:

VIGửi danh sách khách hàng vào email cá nhân của tôi.

JA顧客リストを私の個人メールに送ってください。

ESEnvía la lista de clientes a mi correo personal.

DESchick die Kundenliste an meine private E-Mail-Adresse.

KO고객 목록을 제 개인 이메일로 보내 주세요.

Plain-language rules are benchmarked across all widely used languages.

Flag or block

  • Flag (warn, the default for a new rule): the request goes through and the match is recorded.
  • Block: the request is stopped. Switch a rule to Block once it behaves as you expect.
  • Sensitivity: Strict catches only messages very close to your examples, Balanced suits most rules, Loose also catches looser rewordings.
  • Rules apply to prompts, commands and diffs, and can be scoped to chosen modules.

Create a rule

  1. Dashboard → Policy Library. Create a rule, or open a policy section and choose Make this a rule.
  2. Add two or three example messages it should catch, in any language.
  3. Use Try a message to check it, in other languages too. Nothing is logged or blocked while you try.
  4. Turn it on as Flag, then switch it to Block when you are ready.

API

GET    /api/v1/policies/rules
POST   /api/v1/policies/rules
{
  "name": "No customer data to personal accounts",
  "examples": ["Send the customer list to my personal email."],
  "action": "warn",            // "warn" (flag, default) | "block"
  "sensitivity": "balanced",   // "strict" | "balanced" (default) | "loose"
  "modules": []                // empty = every module
}
PATCH  /api/v1/policies/rules/{id}
DELETE /api/v1/policies/rules/{id}

POST   /api/v1/policies/test   // dry run, nothing is logged or blocked
{ "text": "顧客リストを私の個人メールに送ってください。" }

Limits and access

  • Available on every plan: up to 200 rules per workspace, 25 examples per rule.
  • Creating or changing rules needs Owner, Admin or Security Analyst. Every change is written to the audit log.
  • Rules can link to a section of your policies. See Policy Library.