Free text in. Structured decision out.
Sentinel's triage agent reads a customer complaint, picks from three real tools, and returns { category, priority, next_tool, reasoning } — with a full reasoning trace you can inspect step by step.
Powered by Google Gemini · AI SDK 6 · Supabase · Next.js 16
Example triage output
{
"category": "billing",
"priority": "P1",
"next_tool": "draft_acknowledgment",
"reasoning": "Duplicate charge confirmed…",
"why": "Double-billed for Pro plan.",
"confidence": 0.92
}Three real tools the LLM picks from
+ escalation as a tool call
lookup_customer_history
Query prior complaints by email to detect repeat issues and churn risk.
search_similar_past_complaints
Full-text search across resolved complaints to find known patterns.
draft_acknowledgment
Generate an empathetic, policy-compliant customer response via LLM.
escalate_to_human
Route low-confidence or safety cases to a human reviewer immediately.
Multi-Agent Orchestration
Five Gemini agents run in sequence, each with structured outputs validated by Zod. Every step is logged for auditability.
Human-in-the-Loop
Critical, ambiguous, or high-risk cases are auto-routed to a review queue. Humans approve, edit, or override the AI.
Operational Insights
Real-time dashboards track sentiment trends, category breakdown, priority mix, and pipeline throughput.
Production enrichment pipeline
5 specialized agents · 1 orchestrator
After triage, complaints can flow through the full 5-stage pipeline for operational processing — validation, categorization, sentiment scoring, priority assignment, and automated response drafting.
Validation
Filter spam & invalid input
Categorization
Classify into 9 domains
Sentiment
Score emotion -1 to +1
Priority
Critical / High / Med / Low
Response
Draft empathetic reply
HITL Escalation
Route ambiguous cases