AI Architecture Hub › Industry blueprints › Banking & payments
INDUSTRY BLUEPRINT · BANKING & PAYMENTS

UPI dispute resolution assistant

How a bank or payment app can use AI to handle failed and disputed UPI payments faster, without letting a language model decide anyone’s money.

Complexity: MediumPattern: Agentic workflow + RAGHuman-in-the-loop: YesUpdated: Dec 2026
Architect’s summary: the assistant listens, checks the real transaction status through the bank’s systems and NPCI’s dispute APIs, explains the rules in plain language and drafts the next action. Deterministic rules calculate timelines and compensation; the LLM only explains and drafts; a human approves anything outside the standard path. That split is what makes it safe enough for payments.
Architecture diagram: UPI dispute resolution assistant with channels, orchestrator, UPI switch, core banking, NPCI UDIR, rules engine, policy RAG, disputes team and guardrails
Reference architecture. Solid arrows show the request path; the rules engine, not the model, decides timelines and compensation.

1Business problem & KPIs

A customer pays ₹2,400 at a pharmacy. The app shows “pending”, money leaves the account, the merchant says it never arrived. The customer calls the bank, gets transferred twice and is told to “wait 2–3 days”. Multiply that by thousands of cases a day and you have a cost problem, a trust problem and a regulatory problem.

Most of these cases are not complex. They need the same three things: the true status of the transaction, the rule that applies, and a clear next step. That is exactly the work an AI assistant can take off human agents, while people handle the genuinely disputed cases.

KPIs to track

KPIWhy it matters
Share of “where is my money?” queries resolved without an agentThe main cost lever
Average handling time for agent-handled disputesAgents start from a prepared case, not from scratch
Cases breaching the regulatory turnaround timeBreaches mean compensation and regulator attention
Escalations to the RBI OmbudsmanA lagging signal of failed redressal
Wrong-answer rate on audited conversationsTrust: an AI that misstates rules is worse than none
Customer satisfaction after resolutionConfirms speed did not come at the cost of clarity

2Users & channels

  • Customers: in the bank or UPI app chat, WhatsApp, and IVR with speech, in English and major Indian languages.
  • Customer-care agents: a copilot panel inside the existing CRM, showing status, applicable rule, draft reply and recommended action.
  • Disputes / operations team: queues for cases that need investigation, chargeback or merchant follow-up.
  • Compliance & audit: read-only access to decisions, explanations and evidence trails.

3Data, sensitivity & regulation

DataSourceSensitivity
Transaction details and statusBank UPI switch, core banking, NPCI dispute APIsHigh: financial + personal
Customer identity and contactCRM / customer masterHigh: personal data
Complaint historyCase management systemMedium–high
Rules, timelines, SOPsRBI/NPCI circulars, internal policyLow (but must be current)

Rules the design must respect

  • Turnaround time and compensation: RBI’s 2019 circular on harmonised TAT sets outer limits for failed transactions. For UPI, where the account is debited but the beneficiary is not credited, the beneficiary bank must reverse by T+1, with ₹100 per day compensation beyond that, credited without the customer having to claim it.
  • Online dispute resolution: RBI’s August 2020 circular asked payment system operators and participants to offer online dispute resolution for digital payments.
  • NPCI UDIR: NPCI’s Unified Dispute and Issue Resolution lets banks and apps check transaction status and raise or track disputes through APIs; this is the assistant’s main integration point.
  • Escalation: customers not redressed within the TAT can complain under the RBI Integrated Ombudsman Scheme, 2021.
  • Personal data: design for India’s Digital Personal Data Protection Act, 2023: collect only what each step needs, keep data in approved locations, and log access.
Architect’s rule: regulations change. Store rules as versioned, dated configuration owned by compliance, not inside prompts, and cite the rule version in every decision record.

4Capability view (Architecture Building Blocks)

CapabilityWhat it does
Omnichannel conversationChat, WhatsApp and voice in multiple languages, one conversation state
Identity & consentAuthenticate the customer, confirm consent to look up transactions
Conversation orchestrationUnderstand intent, collect missing details, call tools in the right order
Transaction status integrationQuery switch, core banking and UDIR for the real status
Policy knowledge (RAG)Retrieve the applicable rule and SOP text with citations
Decision rules engineCompute TAT, eligibility and compensation deterministically
Case managementCreate, update and route cases; human approval queue
NotificationsProactive updates by SMS, push or WhatsApp
Guardrails & privacyPII masking, topic limits, prompt-injection defence, output checks
Observability, evaluation & auditTraces, quality scoring, decision logs for compliance

5Solution view (Solution Building Blocks)

One open-source and one managed option per capability. Pick per your bank’s platform standards; the architecture does not depend on any single vendor.

CapabilityOpen-source optionManaged option
OrchestrationLangGraph or a similar state-machine agent frameworkYour cloud provider’s agent / workflow service
Language modelOpen-weight model hosted in an approved regionHosted LLM API with India data residency and enterprise terms
Policy retrievalPostgreSQL + pgvector with hybrid searchManaged search / vector service
Rules engineDrools or a versioned rules table in the bank’s own serviceCommercial business-rules management system
PII protectionMicrosoft Presidio for detection and maskingCloud data loss prevention service
GuardrailsNVIDIA NeMo Guardrails or Guardrails AICloud content-safety / guardrail service
ObservabilityOpenTelemetry + LangfuseManaged LLM observability platform
Speech (IVR)Open speech models fine-tuned for Indian languagesCloud speech-to-text / text-to-speech with Indian language support

6End-to-end flow

CustomerApp chat, WhatsApp or IVR: “₹2,400 debited, merchant didn’t get it”
OrchestratorAuthenticates, identifies the transaction (UTR / RRN, date, amount)
Status toolsSwitch + core banking + NPCI UDIR status check
Rules + policyRules engine computes TAT and compensation; RAG fetches the rule text
ActionExplain, raise or track dispute, notify; exceptions go to a human queue
Across every step: PII masking · prompt-injection defence · rule-versioned decision log · traces & quality scoring

Request path in detail

  1. Customer authenticates in the channel; the assistant confirms consent to look up their transactions.
  2. The orchestrator extracts the transaction reference, or lists recent UPI transactions for the customer to pick from.
  3. Status tools return the authoritative state: success, failed, pending, reversed, or already in dispute.
  4. The rules engine decides what applies: within TAT (inform and set a reminder), auto-reversal due (track), or breached (compensation and escalation).
  5. The LLM writes a short, plain-language explanation using only the tool results and the retrieved rule text, with the rule cited.
  6. If a dispute is needed, the assistant raises it through UDIR with the customer’s confirmation and shares the reference number.
  7. Anything outside standard paths (fraud claims, merchant disputes, mismatched data) becomes a prepared case for a human agent.
  8. Every step writes to the decision log: inputs, tool results, rule version, output and who approved.
Design choice: the LLM never sees a “refund” tool. Money-moving actions stay in core systems, triggered by rules or by a human, never by a model’s judgement.

7Non-functional design

  • Latency: status lookups in parallel; target a first useful reply within a few seconds in chat and stream the explanation. Voice needs tighter budgets and short answers.
  • Scale: UPI volumes spike at month-end, salary days and festival sales. Autoscale the orchestrator, cache policy retrieval, and protect core systems with rate limits.
  • Availability: if the LLM is down, fall back to a menu-driven status flow; status checks and dispute raising must still work.
  • Security: least-privilege service accounts per tool, read-only by default; secrets in a vault; no customer data in prompts beyond what the step needs.
  • Audit: immutable decision records retained per the bank’s record-keeping policy, searchable by case and by rule version.
  • Languages: test each supported language with real customer phrasing, including Hinglish and code-mixed speech.

8Risks & failure modes

RiskHow it shows upMitigation & detection
Wrong rule statedAssistant quotes an outdated timelineRules as dated config; answers must cite rule version; weekly audit sample
Hallucinated status“Your refund is processed” when it is notStatus text only from tool results; output check blocks status claims without a tool call
Prompt injectionMerchant name or remarks field contains instructionsTreat transaction text as data; strip and escape; no write tools exposed to the model
Social engineeringFraudster tries to get details of someone else’s paymentStrong authentication; only the customer’s own transactions; refuse and log
Over-automationGenuine fraud claims handled as routine failuresFraud keywords and patterns route to humans; never auto-close fraud
Core-system overloadSpikes cause timeouts and retriesCaching, circuit breakers, queue-based retries, status of the status service on a dashboard

9Phased rollout

Phase 1 · Agent copilot (6–8 weeks)Inside the CRM only. Status lookup, rule explanation, draft replies. Agents send everything. Build the evaluation set from real cases.
Phase 2 · Customer self-serviceChat in the app for status and “where is my money” queries, in English and 2–3 languages. Disputes raised with confirmation. Human hand-off one tap away.
Phase 3 · Proactive & voiceNotify customers before they ask when a failure is detected; IVR in more languages; analytics on root causes shared with operations and partner banks.

Gate each phase on measured quality: wrong-answer rate, escalation accuracy and TAT breaches must stay at or better than the human-only baseline.

10Build vs buy

  • Buy the commodity layers: speech, channel connectors, observability, and possibly the LLM API under enterprise terms.
  • Build what is specific to you: the rules configuration, integrations with your switch and core banking, the evaluation set, and the agent’s tool layer. This is where your compliance knowledge lives.
  • Watch out for “dispute bot” products that bundle their own rules: you still own regulatory accuracy, so insist on configurable, auditable rules and full decision logs.

Sources for the regulatory facts

  • RBI circular RBI/2019-20/67, “Harmonisation of Turn Around Time (TAT) and customer compensation for failed transactions using authorised Payment Systems”, Sept 20, 2019 (rbi.org.in).
  • RBI circular on Online Dispute Resolution (ODR) System for Digital Payments, Aug 6, 2020, as referenced in NPCI circulars (npci.org.in).
  • NPCI Unified Dispute and Issue Resolution (UDIR) circulars and API documentation (npci.org.in).
  • The Reserve Bank – Integrated Ombudsman Scheme, 2021 (rbi.org.in).
  • Digital Personal Data Protection Act, 2023 (meity.gov.in).

This blueprint is an educational reference architecture, not legal or compliance advice. Always confirm current rules with your compliance team.

← Back to the AI Architecture Hub