Skip to main content

Custom Task Builder

No-code task builder for managers to define custom monitoring rules, verification tasks, and alerts.

Task Types

TypeDescriptionExample
Time-BasedVerify actions at intervals"Check lobby cleaned every 30 min"
Location-BasedMonitor zone presence"Alert if host stand empty at lunch"
Action VerificationConfirm task completion"Ensure trash out by 10 PM"
Threshold AlertMonitor metric limits"Alert if line >8 cars"
Sequence CheckVerify 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

ActionZoneWhat AI Detects
cleaning_detectedAnyMopping, wiping, sweeping activity
presence_countAnyNumber of people in zone
staff_presentStationsStaff at specific station
door_openDoorsDoor state (open/closed)
car_countDrive-thruVehicles in lane
table_clearedDiningTable reset after guest leaves
food_readyExpoItems waiting for pickup
handwash_completeKitchenHandwashing 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:

TaskTodayThis WeekThis Month
Lobby Cleaning95%92%94%
Host Coverage100%98%97%
Trash Removal85%88%90%
Handwashing78%82%85%