Contact Centres

Dispute a card transaction through AI chat

Workflow purpose

This guide demonstrates how to use Proto's AI agent to take card disputes from cardholders – from a payment they don't recognise to a merchant that charged twice – and hand your card disputes team a case they can act on straight away.

The workflow verifies the cardholder, finds the transaction through your card system's API and asks one question that decides everything after it: did the customer make this payment or not? A payment they didn't make is treated as possible fraud – the card can be blocked in the chat and the case goes to your fraud team as urgent. A payment they did make, but with a problem, becomes a merchant dispute, with the reason, the evidence and a clear, factual summary collected in a form that fits a chargeback.

Disputes that arrive by phone or email often miss the transaction ID, the reason or the receipts, and every missing detail adds days to a process with strict scheme deadlines.

Who can benefit from this guide:

  • Banks and credit unions that issue debit or credit cards
  • Card disputes and chargeback teams
  • Fraud operations teams
  • Digital banks and prepaid card providers
  • Microfinance institutions offering card products

Dispute a card transaction

This workflow verifies the cardholder, separates fraud from merchant disputes and opens a complete dispute case 24/7. See how to build a card dispute workflow.

Just starting with the platform?
For initial setup of your AI agent – including workspace setup, agent training, and channel deployment – please start here. This workflow guide assumes your AI agent is set up and ready for more advanced configurations.

1. Create a trigger

Start the flow when a cardholder questions a payment on their card.

  • Navigate to the Workflows tab in the AI agent settings.
  • Click New workflow and select Message received as the Workflow type.
  • Name the trigger (e.g. “Card Dispute”) and add a short description (e.g. “Triggers if the customer wants to dispute, query or report a card payment – a charge they don’t recognise, a double charge, a wrong amount or goods they never received.”).
  • Add training phrases (e.g. “I don’t recognise this payment”, “I was charged twice”, “Dispute a transaction”, “The shop charged the wrong amount”, “I paid but never got my order”).

Keep this trigger separate from a lost or stolen card trigger – a customer who has lost their card needs it blocked first, not a list of transactions.

2. Verify the cardholder

Confirm the customer owns the card before showing any transactions.

Add an Ask survey action. Action title: Cardholder check

Field Variable Type Invalid reply
Last 4 digits of your card card_last4 Number Please enter the last 4 digits printed on your card
Registered mobile number mobile Phone Please enter the mobile number registered on your account

Keep Enable skip off for both fields. Never ask for the full card number, the expiry date or the security code in a chat.

Add a Send API action (HTTP method: POST) to your OTP service, sending card_last4 and mobile, then an Ask survey for the one-time PIN (otp_code, Number) and a second Send API action that checks it. Resulting variable: otp_result. Add a Branch: if otp_result["verified"] == true, continue; Else, let the customer try again, and after three failed attempts hand over to a live agent as in Step 5.

3. Find the transaction

Let the customer pick the payment from their recent card activity rather than typing it out.

Add a Send API action:

  • HTTP method: GET
  • URL endpoint: your card management system’s transactions endpoint, passing the card reference returned by the OTP check
  • Headers: the authorisation key your system requires
  • Resulting variable: transactions

Add a Send message listing the last five card payments, numbered:

“Here are your latest card payments:

  1. {transactions[0][“date”]} – {transactions[0][“merchant”]} – {transactions[0][“amount”]}
  2. {transactions[1][“date”]} – {transactions[1][“merchant”]} – {transactions[1][“amount”]} … Which one is it?“

Add quick replies 1 to 5 and Not listed. Under each number, add a Set variable action that stores the chosen transaction as disputed_txn, e.g. transactions[0] for 1.

Under a Message received sub-trigger for Not listed, add an Ask survey for the payment date (txn_date, Text), amount (txn_amount, Number) and merchant name (txn_merchant, Text), then a Send API action that searches the card’s history with those values and stores the match as disputed_txn. If nothing matches, hand over to a live agent rather than opening a dispute against a payment the system can’t find.

4. Ask whether the customer made the payment

Separate possible fraud from a disagreement with a merchant – the two follow different rules and go to different teams.

Add a Send message action:

“You’ve chosen {disputed_txn[“merchant”]} – {disputed_txn[“amount”]} on {disputed_txn[“date”]}. Did you make this payment?“

Add quick replies: I didn’t make this payment | I made it, but there’s a problem.

  • Under a Message received sub-trigger for I didn’t make this payment (training phrases: not me, I don’t recognise it, fraud, someone used my card), continue to Step 5.
  • Under I made it, but there’s a problem (training phrases: wrong amount, charged twice, never arrived), continue to Step 6.

A payment the customer doesn’t recognise is sometimes a merchant trading under a different name. Before the fraud path, you can add a Send message showing {disputed_txn["merchant_descriptor"]} and its location, with quick replies I still don’t recognise it | Now I recognise it.

5. Handle suspected fraud

Protect the account first, then get the case to your fraud team.

Add a Send message with quick replies Block my card | Not now:

“If you didn’t make this payment, someone may have your card details. I can block your card now so no more payments go through. A replacement card will be sent to you.”

Under Block my card, add a Send API action (HTTP method: POST) to your card management system’s block endpoint, passing the card reference. Resulting variable: block_result. Under Success, confirm the block in a Send message. Under Error and Timed out, tell the customer the card couldn’t be blocked in the chat and give your 24-hour card line.

Then add a Create ticket action:

  • Assignee: your fraud operations team
  • Subject: Suspected fraud – {disputed_txn[“merchant”]} – {disputed_txn[“amount”]}
  • Description: transaction ID, date, merchant, amount, whether the card was blocked, and the customer’s own words
  • Full name and Email: the cardholder’s details, from the verification response
  • Auto-apply tags: card-dispute, suspected-fraud, plus card-blocked or card-not-blocked
  • Email template: a confirmation sent to the cardholder with the ticket reference

Finally, add a Live agent handoff action assigned to the fraud team, with Live agent availability check turned on. Under the branch If there is no live agent online, add a Send message telling the customer the case is logged as urgent and the fraud team will contact them.

6. Collect the merchant dispute

Ask for the reason and the evidence a chargeback needs.

Add an Ask survey action. Action title: Dispute details

Field Variable Type Invalid reply
What went wrong? dispute_reason Text, with quick replies: Goods or service not received, Charged twice, Wrong amount, Cancelled but still charged, Item faulty or not as described Please choose the option closest to what happened
Have you contacted the merchant? merchant_contacted Text, with quick replies: Yes, No Please answer yes or no
Tell us what happened dispute_story Text Please describe what happened in a few sentences
The amount you expected to pay expected_amount Number Please enter the amount as a number
Upload receipts, emails or cancellation confirmations evidence Attachment (multiple files) Please upload the files as attachments

Turn on Enable skip for the expected amount and the evidence fields. The expected amount only matters for a wrong-amount dispute, and a customer without files to hand can still log the case.

Add a Branch action for the cases that shouldn’t become a chargeback yet:

Condition Send message
dispute_reason == "Charged twice" and disputed_txn["status"] == "pending" “One of these payments is still pending. Duplicate pending payments are often released automatically within a few days – if both are still on your account after they settle, come back and I’ll log a dispute.”
disputed_txn["days_since"] > 120 “This payment is older than the time allowed for a card dispute. I’ll pass it to our team to see what we can do.” Continues to Step 8, tagged out-of-time.
merchant_contacted == "No" “Card schemes usually expect you to ask the merchant for a refund first. I’ll still log your dispute, and it helps if you contact them too.” Continues to Step 7.

Set the time limit from your own card scheme rules – the figure above is only an example.

7. Write a chargeback-ready summary

Turn the customer’s account into the short, factual description your disputes team files with the card scheme.

Add an LLM Processing action:

  • Input: the transaction details, dispute_reason, merchant_contacted, expected_amount and dispute_story
  • Model: the model your team uses
  • Temperature: low, so the summary stays close to what the customer said
  • System prompt: “Write a neutral, factual dispute summary of no more than 80 words for a card chargeback. State the transaction, the dispute reason, what the customer expected, what happened and whether the merchant was contacted. Do not add facts the customer did not give. Do not include card numbers.”
  • Knowledge: off
  • Resulting variable: dispute_summary

8. Open the dispute ticket

Give the disputes team the whole case in one place.

Add a Create ticket action:

  • Assignee: your card disputes team
  • Subject: Card dispute – {dispute_reason} – {disputed_txn[“merchant”]}
  • Description: {dispute_summary}, followed by the transaction ID, date, amount, expected amount and merchant descriptor
  • Full name and Email: the cardholder’s details
  • Auto-apply tags: card-dispute, plus a tag for the reason (e.g. not-received, duplicate, wrong-amount)
  • Custom fields: transaction ID, amount and dispute reason, so the team can filter and report on them
  • Email template: a confirmation sent to the cardholder with the ticket reference, and a notification sent to the assignee

The uploaded evidence stays with the conversation, so the team sees it alongside the ticket in the Inbox.

Then add a Send message:

“Your dispute is logged. Our team will review it and may contact the merchant’s bank on your behalf. This can take several weeks – we’ll email you if we need anything else, and with the outcome.”

9. Keep disputes inside scheme deadlines

Stop a case sitting unanswered while the chargeback window closes.

Proto has one overdue rule per teamspace, in Settings › Tickets › Overdue rules, and it applies to every ticket – so it’s a backstop, not the scheme deadline. Carry the deadline on the dispute ticket itself:

  • Set a variable review_due to the first-review date your disputes policy sets, and add it to the ticket as a Due date custom field
  • Add a tag such as deadline-2-days to the ticket, and have the disputes team keep an Inbox view filtered on it
  • Put the chargeback deadline in the ticket description, so it’s the first thing the team reads
  • In the overdue rule, use Reassign ticket to live agent to send any ticket still open after the Apply overdue status after timeframe to your disputes team lead

The disputes team replies to the cardholder from the ticket in the Inbox and sets it to Pending while waiting for the merchant’s bank, then Resolved once a decision is made.

10. Test the flow

Validate every path before going live using the AI agent tester side panel.

  • Choose I didn’t make this payment, block the card and confirm the urgent ticket and fraud handoff.
  • Make the block call fail and check the customer is given the card line.
  • Dispute a pending duplicate and confirm no ticket is opened.
  • Log a wrong-amount dispute with evidence and check the summary, tags, custom fields and due date on the ticket.
  • Pick Not listed with details that match nothing and confirm the handoff to a live agent.

Finalise the AI agent deployment by configuring your preferred channels and languages.