AI-Powered Incident Investigation for Payment Infrastructure

razorpay · Finance · 2026 · source Agentic: yes · promotional bias: med · summary-only (no fetched source) · extracted with prompt 0.5.4 (schema v2)

Generated from extraction.json — do not edit by hand. Every claim cites verbatim source evidence; stated means the quote directly asserts the claim, implied means it supports it indirectly.

Problem

Domain: Payment infrastructure incident response

Razorpay needed to reduce the investigation phase of production incidents, where on-call engineers manually correlated evidence across disconnected observability and infrastructure systems before knowing what to fix.

Constraints:

Architecture

Razorpay built the Oncall Agent as a LangGraph multi-agent incident-investigation workflow. Zenduty alerts go to a Supervisor Agent, which queries two RAG stores for service architecture/dependencies and alert-specific runbooks. The supervisor creates an investigation plan and dispatches specialist agents in parallel across Kubernetes, Coralogix logs, PromQL metrics, AWS infrastructure, deployments, and database health. Specialist findings are written as structured evidence with confidence and supporting data. The supervisor correlates evidence into an incident timeline, scores hypotheses, and sends Slack output with citations, confidence, root-cause assessment, and recommended actions for the human on-call engineer.

Diagram confidence: reconstructed (reconstructed from prose).

flowchart LR
  zenduty-alert-source["zenduty-alert-source"] --> supervisor-agent["supervisor-agent"]
  supervisor-agent --> architecture-rag["architecture-rag"]
  supervisor-agent --> runbook-rag["runbook-rag"]
  supervisor-agent --> kubernetes-agent["kubernetes-agent"]
  supervisor-agent --> coralogix-agent["coralogix-agent"]
  supervisor-agent --> promql-agent["promql-agent"]
  supervisor-agent --> aws-agent["aws-agent"]
  supervisor-agent --> deployment-history-agent["deployment-history-agent"]
  supervisor-agent --> database-health-agent["database-health-agent"]
  kubernetes-agent --> evidence-memory["evidence-memory"]
  coralogix-agent --> evidence-memory
  promql-agent --> evidence-memory
  aws-agent --> evidence-memory
  deployment-history-agent --> evidence-memory
  database-health-agent --> evidence-memory
  evidence-memory --> supervisor-agent
  supervisor-agent --> slack-output["slack-output"]
  slack-output --> on-call-engineer["on-call-engineer"]
  evidence-memory --> continuous-learning-loop["continuous-learning-loop"]
  continuous-learning-loop --> architecture-rag
  continuous-learning-loop --> runbook-rag
Drag to pan · scroll or use +/− to zoom · reconstructed from the source's described component topology

Components

Component Role Interacts with
zenduty-alert-source Incident alerting system that triggers the AI investigation workflow. supervisor-agent
supervisor-agent Incident-commander agent that retrieves context, plans the investigation, dispatches specialists, correlates evidence, and posts results. zenduty-alert-source, architecture-rag, runbook-rag, kubernetes-agent, coralogix-agent, promql-agent, aws-agent, deployment-history-agent, database-health-agent, evidence-memory, slack-output
architecture-rag Retrieval store for application architecture and service dependencies. supervisor-agent, continuous-learning-loop
runbook-rag Retrieval store for alert-specific diagnostic runbooks and known failure patterns. supervisor-agent, continuous-learning-loop
kubernetes-agent Specialist agent for pod health and Kubernetes-related deployment checks. supervisor-agent, evidence-memory
coralogix-agent Specialist agent for log analysis and error evidence. supervisor-agent, evidence-memory
promql-agent Specialist agent for PromQL performance metric queries. supervisor-agent, evidence-memory
aws-agent Specialist agent for AWS infrastructure health validation. supervisor-agent, evidence-memory
deployment-history-agent Specialist check for recent deployments that may explain incident timing. supervisor-agent, evidence-memory
database-health-agent Specialist check for database health signals relevant to the incident. supervisor-agent, evidence-memory
evidence-memory Structured evidence store for checked items, findings, confidence, timestamps, and supporting data. supervisor-agent, continuous-learning-loop
slack-output Human-facing incident report channel with citations, confidence scores, and recommended actions. supervisor-agent, on-call-engineer
on-call-engineer Human operator who reviews AI investigation output and decides remediation actions. slack-output
continuous-learning-loop Stores investigated cases back into RAG systems so institutional incident knowledge compounds over time. architecture-rag, runbook-rag, evidence-memory

Data flow

An alert from Zenduty triggers the supervisor. The supervisor retrieves architecture/dependency context and alert-specific runbook context from separate RAG systems, then sends parallel tasks to specialist agents for Kubernetes health, logs, metrics, cloud infrastructure, deployment history, and database checks. Each specialist returns evidence, confidence, and supporting observations into memory. The supervisor orders evidence by timestamp, scores root-cause hypotheses, selects the most likely cause, and posts the completed investigation to Slack for human review. Investigated cases are written back into RAG knowledge stores to improve future investigations.

4 supporting quotes
“When it receives an alert from Zenduty (their alerting system), it creates an investigation strategy by querying two separate RAG”summary, stated
“The Supervisor then dispatches tasks to Specialist Agents that operate in parallel rather than sequentially.”summary, stated
“findings are stored in a Memory component as structured evidence. This includes what was checked, what was found, confidence levels, and supporting data.”summary, implied
“The system integrates with Razorpay's existing incident response workflow through Slack.”summary, implied

Why this architecture

The architecture mirrors an expert incident room: a supervisor forms the plan, specialist agents inspect separate systems in parallel, evidence is stored with confidence and citations, and a human engineer keeps remediation authority. Dual RAG grounds the workflow in Razorpay's specific services and runbooks instead of generic LLM advice, while shadow mode lets Razorpay validate accuracy before production reliance.

4 supporting quotes
“The Oncall Agent is built as a multi-agent AI system using LangGraph, described as a framework for creating stateful workflows with conditional logic.”summary, stated
“This dual RAG approach is particularly noteworthy from an LLMOps perspective because it ensures investigations are grounded in Razorpay's specific infrastructure”summary, stated
“This design choice preserves human oversight while eliminating the most time-consuming repetitive work.”summary, stated
“the system was running in "shadow mode" as of April 2026, meaning it performs investigations in parallel with human engineers”summary, stated

Models used: large language models · LangGraph

Scale

Alternatives considered (roads not taken)

Manual cross-tool investigation by on-call engineers

Rejected because: It consumed 20-40 minutes per incident, varied by engineer experience, and repeated the same pattern-based evidence gathering.

“The investigation process required manually connecting dots across multiple disconnected tools”summary, stated
“The company recognized that this investigative work was largely repetitive and pattern-based”summary, stated

One general-purpose incident agent

Rejected because: Razorpay used a supervisor plus specialist agents to mirror how expert teams divide investigative work across domains.

“The specialization approach using multiple focused agents rather than one general-purpose agent mirrors how expert teams operate”summary, stated
“The specialist agents include a Kubernetes Agent checking pod health and recent deployments, a Coralogix Agent analyzing error logs, a PromQL Agent querying performance metrics”summary, stated

Sequential specialist checks

Rejected because: Parallel specialist execution better matches team investigation and supports the 90-second target.

“The Supervisor then dispatches tasks to Specialist Agents that operate in parallel rather than sequentially.”summary, stated
“This design choice is significant for performance and mirrors how expert human teams actually divide investigative work.”summary, stated

Immediate production authority for the AI

Rejected because: The system stayed in shadow mode while Razorpay validated accuracy across hundreds of incidents before full rollout.

“The deployment strategy is notably cautious and appropriate for a critical production system.”summary, stated
“plan to roll out to production only after validating across hundreds of incident cases.”summary, stated

Patterns

multi-agent-orchestration (architecture)

A supervisor agent plans the investigation and dispatches domain specialist agents in parallel for Kubernetes, logs, metrics, cloud infrastructure, deployment history, and database health.

“The Oncall Agent is built as a multi-agent AI system using LangGraph”summary, stated
“The Supervisor then dispatches tasks to Specialist Agents that operate in parallel rather than sequentially.”summary, stated

rag-retrieval (retrieval)

The supervisor retrieves application/dependency knowledge and alert-specific diagnostic runbooks before deciding what specialists should inspect.

“One RAG stores application architecture and service dependencies, while another stores alert-specific diagnostic runbooks.”summary, stated

tool-use-orchestration (operations)

Specialists query operational systems including Grafana, Coralogix, Kubernetes, AWS, deployment history, and database health, then synthesize results for Slack.

“six disconnected observability and infrastructure systems (Grafana for metrics, Coralogix for logs, Kubernetes for pod health, AWS for infrastructure, deployment history, and database health)”summary, stated
“The system integrates with Razorpay's existing incident response workflow through Slack.”summary, stated

human-in-the-loop-gate (control)

The AI performs investigation and recommends actions, but the on-call engineer reviews the analysis and decides remediation.

“The engineer can review the AI's analysis and decide on remediation actions rather than spending 30 minutes gathering information.”summary, stated

confidence-thresholding (evidence)

Specialist findings include confidence levels, and the supervisor scores multiple hypotheses before choosing a likely root cause.

“This includes what was checked, what was found, confidence levels, and supporting data.”summary, stated
“scores multiple hypotheses based on temporal correlation and evidence strength, and selects the most likely root cause.”summary, stated

agent-memory (state)

The Memory component stores structured investigation evidence, timestamps, confidence, and supporting data for correlation.

“findings are stored in a Memory component as structured evidence.”summary, stated

data-quality-loop (learning)

Investigated cases are stored back into RAG systems so future investigations benefit from accumulated incident patterns.

“Every investigated case gets stored back into the RAG systems, enriching future investigations with institutional knowledge.”summary, stated
“This creates a compounding effect where the system becomes more accurate over time as it encounters more incident patterns.”summary, stated

Tradeoffs

Automate investigation rather than remediation

Chose AI evidence gathering and root-cause recommendation over AI-driven production fixes.

Rationale: The repetitive, pattern-based investigation work was the bottleneck, while remediation still requires human judgment in payment infrastructure.

“augmentation over replacement, focusing on automating the most time-consuming investigative work while preserving human judgment for complex decisions.”summary, stated
“The engineer can review the AI's analysis and decide on remediation actions”summary, stated

Use parallel specialist agents

Chose domain-focused agents running concurrently over one sequential general investigator.

Rationale: Parallel checks improve latency and mirror how expert teams divide incident work.

“Specialist Agents that operate in parallel rather than sequentially.”summary, stated
“This design choice is significant for performance and mirrors how expert human teams actually divide investigative work.”summary, stated

Use dual RAG stores

Chose separate architecture/dependency and alert-runbook knowledge bases over generic LLM incident reasoning.

Rationale: Grounding the supervisor in Razorpay-specific infrastructure and known diagnostic playbooks reduces generic or irrelevant investigation paths.

“querying two separate RAG (Retrieval-Augmented Generation) systems.”summary, stated
“ensures investigations are grounded in Razorpay's specific infrastructure and institutional knowledge rather than relying on generic LLM responses.”summary, stated

Gotchas (what bit them)

Shadow-mode metrics do not prove full production reliability.

Root cause: As of the source, the agent investigates alongside humans and has not yet become the primary incident-response tool.

Resolution: Razorpay targets 80%+ accuracy and plans production rollout only after validation across hundreds of incidents.

“The system is still in shadow mode as of the publication date (April 2026), meaning it hasn't yet proven itself as the primary investigation tool”summary, stated
“plan to roll out to production only after validating across hundreds of incident cases.”summary, stated

Continuous-learning RAG can accumulate bad knowledge if not curated.

Root cause: Writing every investigated case back to RAG improves recall but can also preserve incorrect analyses or outdated infrastructure assumptions.

Resolution: The source identifies knowledge-base pollution and maintenance as an operational challenge, but does not describe the concrete mitigation.

“the case study doesn't address how they prevent knowledge base pollution from incorrect analyses or how they handle evolving infrastructure”summary, stated
“Knowledge base maintenance and curation in production LLM systems is a significant operational challenge.”summary, stated

AI incident summaries can be dangerous if confidently wrong.

Root cause: False positives or misleading root-cause claims can delay remediation in payment infrastructure.

Resolution: The design keeps human review and shadow-mode validation before production authority.

“false positives or confident but wrong analyses could potentially delay resolution rather than accelerate it.”summary, stated
“This design choice preserves human oversight”summary, stated

Evaluation

Razorpay evaluated the agent in shadow mode over three months, tracking MTTI, MTTR, engineering hours saved, consistency across engineer experience levels, and a target of 80%+ accuracy before production rollout.

Metrics: Mean Time to Investigate · Mean Time to Resolve · weekly engineering hours saved · investigation accuracy target · specialist-agent execution time · investigation consistency

4 supporting quotes
“After three months in shadow mode, Razorpay reports several quantified impacts.”summary, implied
“The MTTI reduction of 80% represents investigations completing in 90 seconds instead of 30 minutes”summary, implied
“The 50-60% improvement in MTTR (Mean Time to Resolve) indicates that faster investigation directly accelerates resolution”summary, implied
“targeting 80%+ accuracy and plan to roll out to production only after validating across hundreds of incident cases.”summary, implied

Outcomes

The source reports 15-20 incidents per week, 20-40 minutes of prior investigation time per incident, a 32-minute example investigation, specialist checks in 5-8 seconds, three months of shadow mode, 80% MTTI reduction to 90 seconds, 50-60% MTTR improvement, and 6-8 engineering hours saved weekly.

4 supporting quotes
“saving 25 minutes per incident.”summary, stated
“With 15-20 incidents weekly, this translates to the reported 6-8 hours of engineering time saved weekly.”summary, stated
“Junior engineers now receive the same quality analysis as senior engineers, democratizing expertise.”summary, stated
“The time savings allow the SRE team to shift focus from reactive investigation to proactive prevention work”summary, stated