β
Live
Sarah
Classifier (Haiku)
Email Detection & Client Lookup
Client emails support@ven.com.au
Stage 1
Click to expand details
What Happens
- Gmail Pub/Sub detects email (~5 second latency)
- Webhook fires [GMAIL_ALERT] to Sarah
- Sarah spawns Classifier sub-agent (Haiku)
- Classifies as SUPPORT_TICKET / SPAM / NOT_SUPPORT
- If support: CRM lookup to match sender to client record
- Creates state file for tracking
β
Live
Sarah β Steve (Telegram)
Notification & Approval
Email classified as support ticket
Stage 2
Steve approves via Telegram buttons
Click to expand details
Human-in-the-Loop Checkpoint
- Sarah formats Telegram message for Steve
- Includes: client name + tier, sender, subject, issue summary
- Inline buttons: β Approve | βΈοΈ Hold | π¨ Escalate
- Steve taps a button β proceeds accordingly
β
Live
Sarah
Triage (Haiku)
Task Creation & Ticket Assignment
Steve tapped Approve or Escalate
Stage 3
Click to expand details
What Happens
- Sarah spawns Triage sub-agent (Haiku)
- Creates ClickUp task in client's maintenance list
- Generates sequential VEN-XXXXX ticket number
- Links to central Support Tickets list (multi-list)
- Sets priority based on client tier + escalation
- Posts confirmation to Steve
π§ In Progress
Sarah
Diagnosis (Sonnet)
Codebase Search (Haiku)
Auto-Diagnosis
Task created successfully
Stage 4
Steve approves fix with β
Fix or βοΈ Skip buttons
Click to expand details
Automated Investigation
- Sarah spawns Diagnosis sub-agent (Sonnet)
- Automated checks: HTTP status, SSL, DNS, page speed, error logs
- SSH into server to check PHP/server errors
- If needed: spawns Codebase Search sub-agent (Haiku) to find relevant files
- Returns structured report: root cause, affected files, recommended fix, severity
- Posts diagnosis as ClickUp comment
- Sends Steve summary with: β Fix button | βοΈ Skip button
π To Do
Sarah
Fix (Sonnet, 10 min timeout)
Fix Implementation & Staging
Steve tapped Fix
Stage 5
Steve approves with π Deploy or β Reject buttons
Click to expand details
Code Implementation
- Sarah spawns Fix sub-agent (Sonnet, 10 min timeout)
- SSHs into client server via RunCloud API
- Implements code fix based on diagnosis
- Creates git commit with descriptive message
- Deploys to staging environment
- Runs smoke tests (page loads, key functionality)
- Posts ClickUp comment with: files changed, staging URL, test results
- Sends Steve: what changed, staging URL, π Deploy button | β Reject button
π To Do
Sarah
Deploy (Haiku)
Comms (Sonnet)
Production Deploy & Client Resolution
Steve tapped Deploy
Stage 6
Steve approves email with π§ Send or βοΈ Skip buttons
Click to expand details
Go Live & Client Communication
- Sarah spawns Deploy sub-agent (Haiku) β pushes to production, monitors 5 mins
- Sarah spawns Comms sub-agent (Sonnet) β drafts resolution email (3-4 sentences, British English)
- Sends Steve email preview with: π§ Send button | βοΈ Skip button
- 15-minute minimum delay before client email sent
- Updates ClickUp task to Complete
- Ticket closed β