LATAM Bank Dispute Agent: AI That Never Acts on a Guess by Diego A. QuindeLATAM Bank Dispute Agent: AI That Never Acts on a Guess by Diego A. Quinde

LATAM Bank Dispute Agent: AI That Never Acts on a Guess

Portfolio project
Diego A. Quinde
Built for the Factored AI & Data Hackathon. The bank ("LATAM Bank") and all its data are synthetic, provided by the organizers.
The problem
A bank wants to automate transaction-dispute intake in Spanish and Portuguese without the risk of an AI filing the wrong claim or promising something it can't do.
How it works
The agent is a finite-state machine: authenticate → identify the charge → classify → policy → confirm → act → verify.
The model only understands. A TF-IDF router and an LLM (Gemma 4) read the message. They never act, and they never write what the customer sees: replies are templates filled with facts read back from the bank's services.
A deterministic policy decides. Dispute rules live in a versioned YAML file, not in a prompt.
Checked writes. Every action needs an explicit "sí"/"sim" and is read back before the agent claims it happened.
Structured handoff. Anything outside policy goes to a human with the verified facts, the actions taken and the open questions.
When in doubt, it asks. If the router and the LLM disagree about the dispute reason, the agent asks the customer instead of guessing.
Results (offline evaluation)
Scored once on a fresh set of 230 scripted conversations, sealed in git before it was run:
0 unsafe outcomes out of 230
100% safe automated resolution (104/104) and 100% escalation when required (74/74)
$0.00055 of LLM cost per resolution
This is an offline simulation on synthetic data, not a production measurement. The first version filed 6 disputes with the wrong reason. The fixes, including one that made things worse, are documented in the repository.
Try the live demo (free instance: it takes about a minute to wake up)

0 likes · 1 view · Nov 16, 2026

A customer-service agent for card and account disputes in Spanish and Portuguese, where the model only understands and a deterministic policy decides. Built for the Factored AI & Data Hackathon.

Timeline

Sep 26, 2026 - Ongoing

Tags