Guardrails

Stop unsafe or out-of-scope questions before they hit your database or the AI model.

When to use this

  • Before inviting a wide audience or enabling embed
  • After off-topic or abusive prompts
  • To cap cost with per-user rate limits

You need Manage Apps. Open Platform → Apps → the App → Guardrails.

Guardrails run before every query—no LLM or database is touched until the checks pass.

What to configure

SectionWhat it does
Scope GuardBlock questions outside the App’s domain and set the out-of-scope reply
SQL SafetyKeep queries read-only, cap max rows, set query timeout
Prompt Injection GuardBlock adversarial prompts; set sensitivity, max length, patterns, and embedded code blocking
Rate LimitingCap max queries per minute and per hour per user; when the limit is hit, Block or Queue until the window resets

Save with Save Guardrails.

Worked example: For a public embed HR App, enable Scope Guard with a short refusal message, keep SQL read-only, set injection sensitivity to Strict, and rate-limit to a modest per-user minute/hour cap with Block.

Related pages