OpsPilot — Agentic Request Triage & Remediation System

Developed an end-to-end Agentic AI platform that automates customer support operations by understanding incoming emails, planning intelligent remediation workflows, validating decisions through policy guardrails, and providing transparent execution with human oversight and complete auditability.

Problem

Built OpsPilot, an AI-powered Agentic Operations platform that transforms incoming customer emails into intelligent, policy-aware workflows. The system leverages LLMs to classify requests, generate explainable multi-step remediation plans, execute automated actions with human-in-the-loop safeguards, and maintain a complete audit trail—demonstrating production-ready AI orchestration, governance, and operational transparency.

Solution

Built a custom, framework-free ~140-line agent loop (no LangChain/AutoGPT) with 7 stages: perceive (30-day sender-history recall), plan (one Gemini 2.5 call producing both classification and an ordered, justified tool-call plan), guard (a deterministic policy layer validates the plan against a per-request-type playbook — inserting missing mandatory steps, stripping forbidden ones, capping length), gate (confidence-based routing to a human review queue), act (executes the final plan through a 12-tool registry), reflect (a critic LLM call reviews and rewrites any customer-facing draft against a compliance checklist), and record (every classification, both plan versions, every guardrail repair, and every tool result persisted to SQLite for per-case replay).

Impact

Key features

Tech stack

System architecture

Trust boundary — Policy-constrained autonomous mail reply Agent. The agent composes its own remediation plan and justifies every step; a deterministic policy layer has final say over what actually executes. Nothing runs below the confidence threshold.

01 · Perceive — Intake and sender history

↓ Normalised request + 30-day sender context

02 · Agent 01 · Triage-Planner — One fused, schema-constrained Gemini call

↓ Classification + ordered, justified tool plan

03 · Guard — guardrails.py — the agent proposes, policy disposes

↓ Repaired plan + flagged repairs

04 · Gate — Confidence threshold, default 0.70

↓ Approved plan cleared for execution

05 · Act — Tool executor over a 12-tool catalog

↓ Drafts, routing records, alerts, SLA timers

↺ Draft rejected → revised against the checklist

06 · Agent 02 · Critic — Compliance review of anything customer-facing

↓ Approved or revised draft

07 · Record — Glass-box audit trail

Deliberately out of scope

Control loops

Architecture highlights

What K Laxman learned

← All 27 projects by K Laxman

Explore more

GitHub · LinkedIn · Email