Inspiration

Making an online payment takes seconds. Resolving a problem with that payment can be far more complicated.

When a buyer reports a missing item, a merchant may have tracking records showing that it was delivered. Both sides may be acting in good faith, yet neither has enough evidence to confidently resolve the disagreement.

The result is often a frustrating cycle of messages, uncertainty, and potentially a formal payment dispute.

I asked myself:

What if payment disputes could be resolved before they escalate, with AI representing both sides fairly and PayPal handling the final settlement?

That question inspired ResolveOS — an agentic, AI-powered pre-dispute resolution platform built around the principle of "Two sides. One resolution."

Rather than replacing PayPal's existing dispute process, ResolveOS introduces an intelligent step before formal escalation, helping buyers and merchants find mutually acceptable outcomes.

What it does

ResolveOS transforms payment resolution into a structured, AI-assisted process.

1. Report a problem

A buyer reports an issue with a PayPal payment. ResolveOS retrieves the transaction information and verifies the payment through PayPal's Sandbox APIs.

2. Gather evidence

Buyers and merchants submit relevant information, including transaction records, delivery tracking, statements, and refund policies. Evidence is clearly distinguished between PayPal-verified records and claims provided by either party.

3. Let AI agents negotiate

Two specialised AI agents independently represent the buyer and merchant.

Each agent evaluates available evidence, identifies uncertainties, and proposes potential resolutions while respecting its party's private negotiation limits.

A deterministic orchestrator validates every proposal to ensure the agents follow the rules.

4. Approve the agreement

Once the agents reach an agreement, both the buyer and merchant must explicitly approve the same settlement terms.

AI can recommend a resolution, but it cannot independently authorise a payment.

5. Settle through PayPal

After both approvals, ResolveOS executes the supported refund through PayPal's Sandbox Payments API.

6. Verify the result

ResolveOS generates a settlement receipt containing the refund status, PayPal transaction identifiers, and an auditable record of the resolution process.

Importantly, ResolveOS does not force an agreement. When evidence is insufficient or the parties cannot reach acceptable terms, the system can stop negotiations or escalate the case.

How I built it

ResolveOS combines a modern web application, multi-agent AI orchestration, deterministic business rules, and PayPal payment infrastructure.

Frontend

  • Vue 3, TypeScript, Vite, and Tailwind CSS
  • Responsive dashboards, case-management interfaces, and negotiation workflows
  • Live case updates using Server-Sent Events

Backend

  • Node.js and Express
  • PostgreSQL with Drizzle ORM
  • Server-side validation, authorisation, settlement management, and audit records

Artificial Intelligence

ResolveOS uses two AI negotiation agents powered by an OpenAI-compatible language model through Groq.

Each agent produces structured responses containing proposed actions, evidence references, uncertainties, and negotiation reasoning.

Rather than allowing AI to directly control financial transactions, a deterministic server validates its outputs against established constraints.

PayPal integration

ResolveOS meaningfully integrates PayPal's Sandbox APIs, including:

  • Orders API for creating and capturing payments
  • Payments API for retrieving captures and executing refunds
  • Refund status retrieval for verification and reconciliation
  • Webhook handling for payment-related events

Refund execution incorporates idempotency protection to prevent duplicate payments, even when requests are retried.

Security and reliability

Financial actions are separated from AI-generated recommendations. The system requires approval from both parties, checks settlement terms, enforces server-side permissions, and maintains an audit trail.

The project also includes automated testing and a deterministic demo engine for clearly labelled offline demonstrations.

Challenges I ran into

Balancing AI autonomy with financial safety

My greatest challenge was deciding how much authority AI agents should have.

Allowing an LLM to negotiate freely is relatively straightforward. Allowing it to influence financial decisions safely is much harder.

I addressed this by separating AI-generated recommendations from deterministic validation, human approvals, and PayPal payment execution.

Handling uncertainty and conflicting evidence

Real disputes rarely have perfect information.

The system needed to distinguish verified information from unverified claims and recognise when there was insufficient evidence to justify a particular outcome.

Preventing duplicate refunds

Payment requests can time out or be retried. I implemented idempotent refund handling and reconciliation to prevent repeated actions from creating duplicate refunds.

Making agentic AI understandable

I also faced the challenge of making complex AI negotiation workflows accessible to ordinary users.

The interface was designed to show case progress, evidence, settlement terms, approval requirements, and verified payment outcomes without overwhelming users with technical details.

Accomplishments that I'm proud of

1. Built a functioning end-to-end resolution prototype

ResolveOS connects transaction capture, evidence collection, AI negotiation, settlement approval, PayPal refund execution, and verified receipts into a single workflow.

2. Made AI negotiation meaningful

Instead of simply summarising complaints, the agents actively exchange structured proposals, evaluate evidence, and consider alternative remedies.

3. Kept control of money outside the AI

Agents cannot directly execute refunds. Financial outcomes are governed by server-side constraints and explicit approval requirements.

4. Demonstrated early evaluation results

In a limited evaluation across five scripted scenarios, the AI agents produced acceptable outcomes in all 15 recorded runs. A simple rules-based baseline produced acceptable outcomes in four of five scenarios.

These results are preliminary and do not establish real-world fairness, but they provide an initial demonstration of the system's potential.

5. Connected settlements to PayPal

ResolveOS goes beyond making AI recommendations by linking approved outcomes to PayPal Sandbox refund execution and verification.

What I learnt

Building ResolveOS changed how I think about agentic AI.

I learnt that effective automation is not about giving AI unrestricted control. It is about designing a system where AI reasoning, deterministic safeguards, and human judgement work together.

I also learnt that explainability matters especially in financial applications.

A useful AI system must do more than recommend an outcome. It should help users understand the evidence behind that recommendation, acknowledge uncertainty, and clearly distinguish proposals from completed financial actions.

Most importantly, we discovered that combining AI with a real payment workflow requires careful coordination between product design, security, reliability, and user trust.

What's next for ResolveOS

My long-term vision is to develop ResolveOS into a more comprehensive, intelligent payment-resolution platform.

Future improvements include:

  • Automated evidence gathering: Integrating shipping and merchant systems to retrieve supporting records with less manual input.
  • Multimodal evidence analysis: Supporting images, documents, and other evidence formats.
  • Expanded PayPal integration: Supporting formal dispute handoffs where early resolution is unsuccessful.
  • Merchant integrations: Enabling online businesses to incorporate ResolveOS into their existing workflows.
  • Smarter resolution intelligence: Improving negotiation strategies through broader evaluation and real-world user testing.

Ultimately, my vision is simple:

Make payment resolution faster, clearer, and fairer for both buyers and merchants — without sacrificing security or human control.

ResolveOS. Two sides. One resolution.

Built With

Share this project:

Updates

Submission history