Inspiration

A $29 late fee is the most-contested charge in retail banking, and the rule that decides it is three conditions buried in a policy page: charged within 90 days, no waiver in the last 12 months, no more than 30 days past due. Customers cannot self-serve that, so they call, wait about forty minutes, and explain the same facts twice. We wanted the agent to do the reading, run the three checks in the open, and then actually file the request instead of handing the customer a form.

What it does

FeeWaive is a published eGain AI Agent for Eight Bank cardholders.

Ask "why was I charged a late fee" and it answers from the published fee policy, with the source article listed under the message. Ask whether the fee can be waived and it collects five facts, then shows a Screening Summary that states the result of each of the three conditions and is marked NOT SUBMITTED. Nothing is filed at that point, and a vague "looks right" does not file anything either: filing needs the one sentence printed at the bottom of that card.

When the customer says that sentence, the agent files a real request through an eGain action and returns a reference in the form FW-####-####. A public lookup page shows the same reference and the same status to anyone, without a login; asking about the same fee again returns the same reference instead of a second request.

When a condition fails, the agent names the condition that fails and files nothing. When an answer is missing, it says it will not guess and points to phone and email instead. A charge reported as fraudulent is not pushed through the fee flow. Overdraft and annual fees are explained, never submitted.

How we built it

The agent is built on eGain: three published policy articles trained as the knowledge source, one pre-chat workflow that collects the fee type, the charge age and the waiver history (published, but not switched on for the public demo), one process workflow (Overdraft Cause Check) bound to the overdraft intent, and one action that creates the waiver request. Escalation offers two contact options, phone and email.

Around the agent we put a small review service — Python standard library plus SQLite, no framework — that does the arithmetic the model should not be trusted with. It screens the three conditions server-side, prints the summary the customer reads, mints a short-lived token bound to those exact facts, and refuses to file if the submitted facts differ from the ones the token was issued for. That last part matters: the customer authorises one summary, so the record may only be the one they saw. Deduplication is on the business case rather than on a caller-supplied key, so a retry returns the existing reference instead of a second request.

The one-minute video was cut from real captures of the published agent and the public lookup page; narration is edge-tts, assembly is FFmpeg.

Challenges we ran into

Three, in order of how long they took.

Grounding. An early version paraphrased the policy and quietly widened a condition. We moved every decision number into the server and made the agent print a block it is given rather than a block it composes.

The confirmation. Our first card told the customer to reply "I confirm", and on the public page the agent answered that with a capability disclaimer instead of filing. The card was teaching a sentence the agent would not act on. Printing the exact sentence that files fixed it; we re-tested it on fresh sessions rather than trusting one run.

Authorisation. The token only proved the summary came from us, not that it was the summary the customer had just read. Changing the charge date and resubmitting with a valid token created a second case. We now compare a fingerprint of the facts and return a 422 when they differ.

What we learned and what is next

What we learned: an authorisation has to name the content, not just the identity. A receipt that says "you agreed" without saying "to this" is not consent, and no downstream check can repair it.

What's next: enable the pre-chat workflow on the public page once it has an intent exit, so a customer who asks for a human mid-intake is not read as a slot answer; replace the demonstration inbox with a monitored one; give reviewers a queue view instead of a reference lookup.

Built With

Share this project:

Updates

Submission history