Inspiration

Freelancers and clients still waste time in endless chats: negotiating scope, price, and deliverables, then manually creating invoices. PayPal already powers global payments, and AI agents are moving from recommendations to actions. I built DealAgent to explore agent-to-agent commerce: two agents negotiate a gig deal, a human approves, and PayPal settles the agreement with a real sandbox invoice.

What it does

DealAgent is a web app for freelance and gig-style work:

  1. You submit a work brief, budget, and buyer email (PayPal sandbox).
  2. Buyer Agent and Seller Agent negotiate in a dual transcript until terms align.
  3. You review the deal and approve (human-in-the-loop before any payment action).
  4. Settlement uses PayPal Agent Toolkit to create and send a sandbox invoice, with visible tool trace (create_invoice, send_invoice) and invoice ID.

Repository and run steps: https://github.com/visshva-r/DealAgent

How we built it

  • Next.js (App Router) + React + TypeScript + Tailwind for the UI
  • Google Gemini (Vercel AI SDK, structured output) for agent negotiation
  • @paypal/agent-toolkit in sandbox mode for invoicing
  • API routes: negotiate, settle, health
  • Local demo via npm install, .env.local from .env.example, npm run dev

Challenges we ran into

Matching Vercel AI SDK v4 with PayPal’s toolkit dependencies. Updating Gemini model IDs when older models were deprecated. Making settlement reliable by calling PayPal toolkit tools directly after human approval, while keeping negotiation fully AI-driven. Tight deadline: ship a judge-runnable repo, docs, and a clear end-to-end demo path.

Accomplishments that we're proud of

A complete negotiate → approve → PayPal invoice flow with real sandbox invoices, not a mock payment button. Clear product story for agentic commerce and freelancer impact. Open-source repo with MIT license, judge README, and QA-verified mobile layout. Explicit safety model: agents negotiate autonomously; humans approve before money moves.

What we learned

PayPal’s Agent Toolkit fits naturally into agent workflows when invoices are first-class tools. Judges and users need visible proof: tool traces, invoice IDs, and sandbox links. For hackathon demos, depth on one killer flow beats many half-built features.

What's next for DealAgent

Multi-party deals (platform fee splits). Webhooks for paid/cancelled invoices. Optional MCP client for merchants. Hosted demo on Render. Stronger seller onboarding (catalog, templates). Explore subscriptions and recurring gigs via additional PayPal capabilities.

Built With

Share this project:

Updates

Submission history