Urgent.News

What's breaking now, across hundreds of outlets.

AI

I let an LLM write chargeback responses, but only by copying sentences it was given

I'm building RebutCase, a Shopify app that helps merchants answer chargebacks. When a customer disputes a payment, the merchant gets a deadline and a set of evidence fields. Someone at the cardholder's bank reads what they send. If a single date or amount in it is wrong, the merchant has sent the bank something false. So the hard rule from day one was: every sentence that goes to the bank must…

RebutCase is a Shopify app that assists merchants in responding to chargebacks. When a customer disputes a payment, the bank examines the provided evidence. If any date or amount in the dispute is inaccurate, the merchant provided false information to the bank. From the beginning, the strict rule has been that each sentence transmitted to the bank must reference a specific piece of evidence.

To achieve this, the pipeline collects data from Shopify and merchant uploads. The data is normalized, key-value pairs are created, and they are sourced. The system then assesses the case strength (Strong, Fair, Weak), determines the claim type, generates a draft response using an LLM, and finally verifies that every sentence in the draft is correctly linked to a claim or exhibit.

The verification process ensures that each sentence mentions at least one known claim or exhibit, contains only facts present in the original evidence, and excludes certain disallowed phrases. If the draft fails verification or the model times out, the app resorts to pre-written templates based on the claims. The LLM's involvement in the process is restricted, and the app remains fully functional without the LLM.

Merchants can still edit the response, and the app checks these edits sentence by sentence. The app does not submit evidence or overwrite pre-filled Shopify fields without displaying the differences. It also does not provide win probability estimates. The app's codebase is available on Shopify's App Store and includes free resources on Shopify's dispute evidence API.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in AI

AI’s Next Political Battle Is Being Fought at the Data Center

Quick take Journalist Paris Marx’s book Hyperscale examines generative AI infrastructure and the political conflicts surrounding its expansion.

  • Microsoft ends requirement for NDA in data-center discussions
  • Google reports 469 million gallons of water used at Oregon facility in 2025
  • AI data centers become focal point of local infrastructure debates

More from Monday 23 November →