Guardrails Configuration
Learn how to configure and apply Guardrails to protect your agents with intelligent content filtering. This guide covers everything from understanding the default guardrail to creating and managing custom guardrails.Prerequisites
Before configuring Guardrails, ensure you have:Agent Created: You need an existing agent to apply guardrails to
Admin Access: Only project Admins and Owners can configure guardrails
Requirements Identified: Know what content needs protection
Guardrails are managed in the Guardrails section of the agent dashboard.
Understanding the Default Guardrail
Every agent in PLai Framework comes with a default INPUT guardrail automatically active:Default Guardrail Coverage
Sexual Content
Blocks explicit sexual material, inappropriate content, or sexual advances
Hate Speech
Blocks discrimination, prejudice, hateful content, or targeted harassment
Insults & Abuse
Blocks personal attacks, abusive language, or aggressive insults
Politics & Religion
Blocks political debates, partisan content, religious disputes, or divisive topics
Important: Default guardrail is optional enabled. It provides baseline protection for all agents without requiring any configuration.
Guardrail Types
Guardrails can be configured with different directions and actions:1. Direction: INPUT vs OUTPUT
- INPUT Guardrails
- OUTPUT Guardrails
- Both (INPUT + OUTPUT)
Applied to user messages before AI processingPurpose:
- Protect AI model from harmful inputs
- Filter malicious prompts
- Mask sensitive user data
- Block prohibited topics
- User-facing chatbots
- Public interfaces
- Customer service applications
- Community platforms
INPUT guardrails run before the AI model sees the content, providing first-line defense against inappropriate inputs.
2. Action: Block vs Mask
- Block
- Mask (Anonymize)
Completely prevent content from passingWhen to use:Example Configuration:User Experience:
- Harmful content (hate speech, violence)
- Prohibited topics (politics, religion)
- Policy violations
- Security threats
- Inappropriate requests
- Request is not processed
- Polite safety message displayed
- User prompted to rephrase
- Interaction logged for monitoring
Creating Custom Guardrails
Custom guardrails are created on-demand through Amazon Bedrock Guardrails service to meet your specific requirements.When to Create Custom Guardrails
Industry-Specific Compliance
Industry-Specific Compliance
Healthcare (HIPAA):
- Mask protected health information (PHI)
- Block medical advice outside scope
- Prevent patient data disclosure
- Mask financial account details
- Block unauthorized financial advice
- Protect transaction information
- Prevent unauthorized legal advice
- Protect privileged information
- Maintain confidentiality
Organization-Specific Policies
Organization-Specific Policies
- Custom prohibited topics
- Brand-specific content rules
- Internal data protection
- Proprietary information safeguards
- Employee information protection
Advanced PII Protection
Advanced PII Protection
- Custom PII types (employee IDs, patient numbers)
- Industry-specific identifiers
- Regional data protection (EU vs US)
- Multi-language PII detection
Special Use Cases
Special Use Cases
- Content generation safety
- Academic integrity
- Child safety protections
- Community guidelines enforcement
- Custom safety categories
Custom Guardrail Creation Process
Define Requirements
Document your specific needs:Required Information:
- Purpose: What should this guardrail protect?
- Direction: INPUT, OUTPUT, or both?
- Action: Block or Mask?
- Content Categories: What to filter?
- PII Types: What to mask (if applicable)?
- Scope: General or organization-only?
Request Creation
Contact your PLai Framework administrator or account manager:Provide:
- Requirements document
- Use case description
- Compliance regulations
- Timeline needs
- Testing requirements
- Support ticket
- Account manager email
- Admin dashboard request
- API (for enterprise customers)
Guardrail creation typically takes 2-5 business days depending on complexity and testing requirements.
Review and Testing
Once created, thoroughly test the guardrail:Test Scenarios:
- Positive cases (should trigger)
- Negative cases (should not trigger)
- Edge cases
- Performance impact
- False positives
- False negatives
Apply to Agents
Add the guardrail to your agents through:
- Agent dashboard UI
- API endpoint
- Bulk application (multiple agents)
Applying Guardrails to Agents
Via Dashboard UI
Navigate to Guardrails Section
- Open your Agent Dashboard
- Select the Guardrails tab
- Select the guardrail(s) you want to apply.
Next Steps
Best Practices
Learn expert tips for optimal guardrail implementation
API Reference
Explore the complete Guardrails API documentation
Overview
Review Guardrails concepts and capabilities
Analytics
Monitor guardrail effectiveness and performance
Additional Resources
Amazon Bedrock Guardrails Documentation
Amazon Bedrock Guardrails Documentation
Guardrails in PLai Framework are powered by Amazon Bedrock Guardrails. For technical details on the underlying service:
- AWS Bedrock Guardrails Overview
- Detection capabilities and models
- PII types supported
- Language support
- Technical specifications
Compliance Resources
Compliance Resources
GDPR Compliance:
- PII masking for EU users
- Data protection requirements
- Right to be forgotten
- PHI protection requirements
- HIPAA Security Rule
- HIPAA Privacy Rule
- Payment card data protection
- Cardholder data environment
- Security assessment procedures
Support and Assistance
Support and Assistance
For custom guardrail creation:
- Contact your account manager
- Submit detailed requirements document
- Expected turnaround: 2-5 business days