Custom Task Builder
No-code task builder for managers to define custom monitoring rules, verification tasks, and alerts.
Task Types
| Type | Description | Example |
|---|---|---|
| Time-Based | Verify actions at intervals | "Check lobby cleaned every 30 min" |
| Location-Based | Monitor zone presence | "Alert if host stand empty at lunch" |
| Action Verification | Confirm task completion | "Ensure trash out by 10 PM" |
| Threshold Alert | Monitor metric limits | "Alert if line >8 cars" |
| Sequence Check | Verify multi-step process | "Verify opening checklist complete" |
Creating a Custom Task
┌─────────────────────────────────────────────────────────────────┐
│ CUSTOM TASK BUILDER Vision AI Tasks │
├─────────────────────────────────────────────────────────────────┤
│ │
│ TASK NAME: Lobby Cleaning Verification │
│ ───────────────────────────────────────────── │
│ │
│ TYPE: [Time-Based ▼] │
│ │
│ SCHEDULE │
│ ┌───────────────────────────────────────────────────────────┐ │
│ │ Run every: [30] minutes │ │
│ │ Active hours: [06:00] to [22:00] │ │
│ │ Days: [Mon] [Tue] [Wed] [Thu] [Fri] [Sat] [Sun] │ │
│ └───────────────────────────────────────────────────────────┘ │
│ │
│ ZONE: [Lobby ▼] │
│ │
│ VERIFICATION │
│ ┌───────────────────────────────────────────────────────────┐ │
│ │ Detect: [Cleaning Activity ▼] │ │
│ │ Within: [35] minutes of scheduled time │ │
│ │ Confidence threshold: [85%] │ │
│ └───────────────────────────────────────────────────────────┘ │
│ │
│ ALERTS │
│ ┌───────────────────────────────────────────────────────────┐ │
│ │ ☑ Alert if verification missed │ │
│ │ Send to: [On-duty Manager ▼] │ │
│ │ Channel: [☑ Push] [☑ Olympus Chat] [☐ SMS] │ │
│ └───────────────────────────────────────────────────────────┘ │
│ │
│ [Cancel] [Save Draft] [Activate] │
└─────────────────────────────────────────────────────────────────┘
Task Configuration Examples
Time-Based Verification
task:
name: lobby_cleaning_check
type: time_based
schedule: "*/30 * * * *" # Every 30 minutes
zone: lobby
verification:
action: cleaning_detected
within_minutes: 35
alert_on_miss: true
assignee: on_duty_staff
Location-Based Trigger
task:
name: host_stand_coverage
type: location_trigger
zone: host_stand
condition: presence_count == 0
time_range: "11:00-14:00"
grace_period_seconds: 60
alert_to: [manager, host_role]
Threshold Alert
task:
name: drive_thru_backup
type: threshold
zone: drive_thru_lane
metric: car_count
condition: "> 8"
duration_seconds: 120 # Must exceed for 2 min
alert_to: [manager]
suggested_action: "Add second window staff"
Detection Actions Available
| Action | Zone | What AI Detects |
|---|---|---|
| cleaning_detected | Any | Mopping, wiping, sweeping activity |
| presence_count | Any | Number of people in zone |
| staff_present | Stations | Staff at specific station |
| door_open | Doors | Door state (open/closed) |
| car_count | Drive-thru | Vehicles in lane |
| table_cleared | Dining | Table reset after guest leaves |
| food_ready | Expo | Items waiting for pickup |
| handwash_complete | Kitchen | Handwashing activity |
API: Create Custom Task
POST /api/v1/vision/tasks
Authorization: Bearer {access_token}
Content-Type: application/json
{
"name": "Lobby Cleaning Check",
"type": "time_based",
"schedule": "*/30 * * * *",
"zone_id": "zone-lobby",
"verification": {
"action": "cleaning_detected",
"within_minutes": 35,
"confidence_threshold": 0.85
},
"alert_config": {
"on_miss": true,
"channels": ["push", "olympus_chat"],
"assignees": ["role:manager"]
},
"active": true
}
API: List Tasks
GET /api/v1/vision/tasks?location_id=loc-xyz789
Authorization: Bearer {access_token}
API: Get Task Results
GET /api/v1/vision/tasks/{task_id}/results?date=2026-01-23
Authorization: Bearer {access_token}
{
"task_id": "task-lobby-clean",
"date": "2026-01-23",
"results": [
{
"scheduled_time": "2026-01-23T10:00:00Z",
"verified_at": "2026-01-23T10:12:45Z",
"status": "verified",
"detected_by": "cam-lobby-01",
"confidence": 0.92
},
{
"scheduled_time": "2026-01-23T10:30:00Z",
"verified_at": null,
"status": "missed",
"alert_sent_at": "2026-01-23T11:05:00Z"
}
],
"compliance_rate": 0.85
}
Compliance Dashboard
Track task compliance across locations:
| Task | Today | This Week | This Month |
|---|---|---|---|
| Lobby Cleaning | 95% | 92% | 94% |
| Host Coverage | 100% | 98% | 97% |
| Trash Removal | 85% | 88% | 90% |
| Handwashing | 78% | 82% | 85% |