AI Agent: Sentinel - Automated Monitoring & Alerting
Sentinel is an AI-powered monitoring and alerting agent that continuously evaluates business rules against real-time workforce data. Define conditions across scheduling, attendance, overtime, leave, and service desk domains, and Sentinel automatically triggers notifications, AI analysis, emails, webhooks, or task creation when thresholds are breached.
What is Sentinel?
Sentinel is the automated monitoring and alerting system inside MangoApps Workforce. It lets administrators define rules that watch key workforce metrics β unfilled shifts, late arrivals, overtime hours, pending leave requests, open service desk tickets β and take action when conditions are met. Actions range from in-app notifications and email alerts to AI-powered analysis that provides severity assessments and recommended next steps.
Sentinel operates through the Workflow Automation Rules engine with a dedicated sentinel trigger type, evaluated on a recurring schedule by a background job. Each rule evaluation is logged as an Autonomous Action for full audit traceability.
Core Value Proposition:
- Rule-Based Monitoring β Define conditions with domain, metric, operator, and threshold (e.g., βunfilled shifts next 7 days > 5β)
- Multi-Domain Coverage β Monitor scheduling coverage gaps, attendance (late arrivals), overtime hours, leave request backlogs, and service desk ticket queues
- AI-Powered Analysis β Optionally trigger LLM analysis that provides severity assessment, root cause analysis, and actionable recommendations
- Priority-Based Alerting β Critical, high, medium, and low priority levels with configurable recipient targeting (admins, managers, or specific users)
At a Glance
| Rule Engine | Real-Time Metrics | AI Analysis | Notification Actions |
|---|---|---|---|
| Domain + metric + operator + threshold | Scheduling, attendance, overtime, leave, service desk | LLM-generated severity & recommendations | In-app, email, webhook, task creation |
Perfect For:
- Administrators β Set up proactive monitoring rules that catch workforce issues before they escalate
- Managers β Receive targeted alerts about team-level metrics like coverage gaps or overtime spikes
- HR Teams β Monitor leave request backlogs and compliance-sensitive metrics automatically
How It Works
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β SENTINEL MONITORING FLOW β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β β
β ββββββββββββ βββββββββββββ βββββββββββββ β
β β DEFINE βββββΆβ EVALUATE βββββΆβ TRIGGER β β
β β Rules β β Metrics β β Actions β β
β ββββββββββββ βββββββββββββ βββββββββββββ β
β β β β β
β Admin creates Background job Conditions met: β
β rule with gathers live execute configured β
β domain/metric/ metric data action chain β
β threshold from database β
β β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β AVAILABLE ACTIONS β β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€ β
β β notify_alert β ai_analyze β send_email β β
β β send_webhook β create_task β β β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β β
β βΌ β
β ββββββββββββββββββββ β
β β AUDIT LOG β β
β β AutonomousActionβ β
β β with full β β
β β context data β β
β ββββββββββββββββββββ β
β β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Monitored Domains & Metrics
| Domain | Metric | What It Measures |
|---|---|---|
| Scheduling | coverage_gap_count |
Unfilled shifts (no user assigned) in the next 7 days |
| Attendance | late_count |
Employees who clocked in after their scheduled start time today |
| Time & Attendance | overtime_hours |
Total overtime hours across all timesheets for the current week |
| Leave | pending_requests |
Leave requests in pending status awaiting approval |
| Service Desk | open_tickets |
Service desk tickets in open or in-progress status |
Key Features
Rule Configuration
| Capability | Description |
|---|---|
| Domain & Metric Selection | Choose from scheduling, attendance, overtime, leave, or service desk domains |
| Condition Operators | Greater than, less than, equals, and threshold-based comparisons |
| Priority Levels | Assign critical (4), high (3), medium (2), or low (1) priority to each rule |
| Enable/Disable Toggle | Activate or pause individual rules without deleting them |
| Dry Run Mode | Preview what actions would execute without actually triggering them |
Action Types
| Action | Description |
|---|---|
| Notify Alert | Send in-app notifications to admins, managers, or specific users with deduplication (one alert per rule per day) |
| AI Analyze | Trigger an LLM analysis that provides severity assessment, situation analysis, recommended actions, and urgency evaluation |
| Send Email | Dispatch email notifications to configured recipients |
| Send Webhook | POST alert data to external systems for integration |
| Create Task | Automatically create a task in the Tasks app for follow-up |
Audit & Traceability
| Capability | Description |
|---|---|
| Autonomous Action Logging | Every rule evaluation that triggers an action is logged with full context |
| Idempotency Protection | Duplicate alerts for the same rule on the same day are suppressed automatically |
| Recent Alerts Dashboard | View the last 7 days of sentinel alerts on the admin index page |
| Per-Rule Alert History | Drill into a specific rule to see all historical alerts it has generated |
User Roles & Permissions
| Action | Employee | Manager | HR / Admin | Super Admin |
|---|---|---|---|---|
| Receive sentinel alert notifications | β | β | β | β |
| View sentinel alerts dashboard | β | β | β | β |
| Create and edit sentinel rules | β | β | β | β |
| Enable/disable rules | β | β | β | β |
| Run dry-run evaluations | β | β | β | β |
| Delete sentinel rules | β | β | β | β |
Getting Started
For Administrators
- Navigate to Sentinel β Go to Admin β Sentinel Rules to see the rules dashboard and recent alerts
- Create a rule β Click New Rule, select a domain and metric, set the threshold and operator, and choose a priority level
- Configure actions β Add one or more actions: notify admins, trigger AI analysis, send email, or create a follow-up task
- Test with dry run β Use dry-run mode to preview what would trigger without actually sending notifications
- Enable the rule β Toggle the rule to active; the background evaluation job will check it on its next scheduled run
- Monitor alerts β Review recent alerts on the dashboard and drill into individual rules for history
Best Practices
- Start with high-impact, low-noise rules β monitor critical metrics like unfilled shifts and overtime before adding lower-priority alerts
- Use AI analysis for complex situations where the metric alone does not tell the full story
- Set appropriate priority levels β critical alerts require immediate human attention, while medium/low can be batched for review
- Review and tune thresholds regularly as your workforce patterns change with seasons or growth
- Use dry-run mode when creating new rules to verify they trigger at the right frequency before going live
Related Resources
- Workforce Bots Overview β AI-powered bots for workforce communication and automation
- Apps Overview β Browse all available marketplace apps
Sentinel β Proactive AI monitoring that catches workforce issues before they escalate.