Sentinel
Triage agent with real tool calling

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.

01

Validation

Filter spam & invalid input

02

Categorization

Classify into 9 domains

03

Sentiment

Score emotion -1 to +1

04

Priority

Critical / High / Med / Low

05

Response

Draft empathetic reply

06

HITL Escalation

Route ambiguous cases