The hosted demo is on Render free tier. Thus my request to the judges to wait for the 30-50 seconds it takes to load.
Inspiration
**Every year, freelancers lose billions in unpaid invoices, delayed reviews, and clients ghosting after work is submitted. More often than not, freelancers don't get their work's worth clients ghost them during payment.
Similarly, clients are scared to pay the full money upfront because they are scared that freelancers might ghost them after taking the money. They are scared that they might be left with half finished project and then pay extra to get some other person to start the project from scratch.**
Traditional freelance platforms charge punitive 10% to 20% fees and trap both parties in multi-week manual dispute queues. When we saw the theme for the PayPal AI Hackathon—asking what happens when you put AI behind the wheel of payments—I asked myself:
What if escrow wasn’t a bureaucratic middleman, but an autonomous, symmetrically fair system powered by PayPal and AI agents?
That was the spark for Trustflow: a freelance milestone escrow platform where nobody gets burned.
What it does
Trustflow creates an automated, bilaterally protected project delivery and payment workflow:
- AI Scope & Milestone Clarification: Clients paste an unstructured brief (e.g., "Build an AI subscription billing portal in Next.js"). Our AI decomposes it into discrete, transparent milestone tranches with objective, verifiable criteria. Both sides can customize the number of days and the stipulated amounts before signing.
- Upfront PayPal Escrow Lock: The client funds the full project budget upfront into PayPal escrow . Funds are held safely so the freelancer knows the money is real and guaranteed.
- Interactive Bryntum Gantt Timeline: Milestones render on an interactive Gantt board with payment tranches as dependencies—Phase 2 is locked until Phase 1 clears.
- Autonomous AI Verification & Payouts: When the freelancer delivers work (live URL or GitHub repo), an AI Deliverable Inspector audits the criteria (HTTP 200 checks, responsive DOM elements). Upon passing, the PayPal Payouts API immediately disburses the milestone payment directly to the freelancer's PayPal email!
- Symmetrical Ghosting Protection:
- If the client goes silent: Our 72-Hour "Silence Means Yes" guarantee auto-releases the funds so the freelancer is never held hostage.
- If the freelancer goes inactive: If a milestone deadline passes by 72h with zero activity, the client triggers "Claim Inactivity Refund"—unreleased escrow is instantly refunded via PayPal, and our AI Continuity Agent generates a turnkey Takeover Brief so a replacement developer can pick up the project in minutes without starting over.
How we built it
- Payments & Escrow: PayPal Developer Platform (REST APIs):
- Orders API (
v2/checkout/orders): Captures the upfront client budget into escrow. - Payouts API (
v1/payments/payouts): Disburses milestone earnings autonomously to the freelancer's PayPal email in real time. - Payments Refund API: Executes instant clawbacks of unworked escrow funds on contractor abandonment.
- Orders API (
- Timeline & Resource Engine: Bryntum Gantt (
@bryntum/gantt-react), modeling payment tranches as interactive project dependencies with dynamic deadline rescheduling. - AI & Agentic Logic: Google Gemini API for structured JSON milestone decomposition, objective acceptance auditing, and AI Takeover Brief synthesis.
- Frontend & Architecture: Next.js 14+ (App Router), TypeScript, and Tailwind CSS styled with strict anti-slop visual tokens.
- Hosting & Deployment: Live production instance deployed on Render (
trustflow-yq0h.onrender.com).
Challenges we ran into
- Cross-Border PayPal Sandbox Nuances: Navigating foreign currency regulations and region-specific restrictions (such as Reserve Bank of India foreign exchange compliance in sandbox accounts) taught me the intricacies of multi-regional merchant setups in PayPal's developer ecosystem.
- Preventing AI Scope Creep: Early LLM prompts tended to invent unrequested criteria (like demanding 100% test coverage or WCAG AAA on simple landing pages). I engineered strict "de-scoper" system prompts that strictly distinguish automated objective tests from subjective human-review items.
- Synchronizing State with Bryntum Gantt: Linking PayPal webhook triggers and AI verification states to dynamically unlock locked dependency bars and shift downstream Gantt dates in real time.
Accomplishments that I am proud of
- End-to-End Real Sandbox Money Movement: A functioning full-lifecycle flow—from PayPal order capture, to live sandbox popups, to automated single-item disbursements via the Payouts API.
- True Bilateral Fairness: Solving both sides of the freelance trust equation (protecting the freelancer against ghosting with the 72h timer, and protecting the client against abandonment with the AI Continuity Brief and refund).
- Enterprise-Grade UI: Seamlessly embedding the Bryntum Gantt engine inside a clean, dark-mode fintech interface.
- Live Deployment: Shipping a working, publicly accessible build on Render.
What we learned
- Deep hands-on experience with the PayPal Developer Platform, particularly the power of combining the Orders API with the Payouts API for marketplace architectures.
- How to use AI not merely as a conversational chatbot, but as an objective state machine and mediator that enforces financial policies safely.
- Designing project timeline dependencies with the Bryntum Gantt suite.
What's next for Trustflow
- Multi-Currency Global Settlements: Enabling cross-border auto-conversions so clients and freelancers can transact in their preferred local fiat currencies.
- Automated CI/CD Integration: Connecting GitHub Actions webhooks directly into the milestone verification pipeline to run unit test suites automatically before payout triggers.
- 1-Click Talent Re-matching: Allowing clients to post their AI Takeover Brief directly to developer networks with one click when abandonment occurs.
Built With
- ai-agents
- bryntum
- bryntum-gantt
- escrow
- fintech
- google-gemini
- next.js
- paypal
- prisma
- render
- sqlite
- typescript