Use Case Overview
Seven real-world scenarios showing how GuardRails solves common enterprise workflow problems. Each case identifies the risk, the guards involved, and the outcome.
Choose Your Scenario
PII Protection
Prevent customer PII from entering AI models or appearing in workflow outputs. Compliance-critical.
Guards: PiiDetectionGuard + PiiRedactionGuard
Rate Limiting
Isolate tenant traffic, prevent credit exhaustion from runaway automations, protect downstream APIs.
Guards: RateLimitingGuard
Timeout & Resilience
Enforce execution time limits, implement circuit breaking, and provide graceful degradation under load.
Guards: TimeoutGuard + CircuitBreakerGuard
Input Validation
Validate workflow inputs at the gate before any node processes them. Prevent malformed data propagation.
Guards: InputValidationGuard
Audit & Compliance
Build an auditable trail of every violation with TenantId, UserId, TraceId — without capturing PII.
Guards: All guards + AuditLogger
Email Redaction
Redact PII from email node outputs before the body or subject reaches the caller or is logged.
Guards: PiiRedactionGuard (Post)
Guard-to-Use-Case Matrix
| Guard | PII | Rate Limit | Timeout | Validation | Audit | |
|---|---|---|---|---|---|---|
| TimeoutGuard | ✓ | ✓ | ||||
| InputValidationGuard | ✓ | ✓ | ||||
| RateLimitingGuard | ✓ | ✓ | ||||
| CircuitBreakerGuard | ✓ | ✓ | ✓ | |||
| PiiDetectionGuard | ✓ | ✓ | ✓ | |||
| PiiRedactionGuard | ✓ | ✓ | ✓ | |||
| PiiAnonymizationGuard | ✓ |
Risk Coverage by Industry
| Industry | Primary Risk | Recommended Guards |
|---|---|---|
| Financial Services | SSN, credit card leakage; runaway transactions | PiiDetection, PiiRedaction, RateLimiting, InputValidation |
| Healthcare | PHI exposure in AI model calls or API responses | PiiDetection, PiiRedaction, PiiAnonymization |
| SaaS / Multi-Tenant | One tenant degrading others; credit exhaustion | RateLimiting (scope=tenant), CircuitBreaker, Timeout |
| E-Commerce | Order data containing PII sent to third-party integrations | PiiDetection + PiiRedaction, InputValidation |
| Legal / Compliance | Audit trail for regulatory review | All guards, AuditLogger, InputValidation (strictMode) |