Alerting
Foil’s alerting system detects AI quality issues in real-time and notifies you via email or SMS.Alert Types
Foil detects two categories of issues:Threshold-Based Alerts
Triggered when metrics exceed configured limits:LLM-Analyzed Alerts
Foil uses AI to detect quality issues:How It Works
Per-Agent Configuration
Configure alerts in the dashboard or via API:Configuration Options
Alert Severity
Alert Lifecycle
Rate Limiting
To prevent alert fatigue, Foil implements rate limiting:- Cooldown period: Minimum time between notifications for the same alert type
- Default: 5 minutes
- Configurable: Per alert type in agent settings
Best Practices
Start with conservative thresholds
Start with conservative thresholds
Begin with higher confidence thresholds (0.8+) and lower as you understand your baseline.
Use cooldowns appropriately
Use cooldowns appropriately
Set longer cooldowns for non-critical alerts to reduce noise.
Prioritize critical alerts
Prioritize critical alerts
Only use ‘critical’ severity for safety issues that need immediate attention.
Configure per-agent
Configure per-agent
Different agents may need different thresholds. A creative writing agent might tolerate more “hallucination” than a factual Q&A bot.
Next Steps
Analytics
View alert trends
Agents
Configure per-agent settings