Inspiration
We don't want freelancers to work on promises, or clients to pay based on blind trust. We want both sides to agree on what success looks like before the work begins — and then let evidence guide the outcome.
What it does
PactPay is a freelancing platform that converts a client's project brief into measurable acceptance criteria, which the freelancer reviews and agrees to before work begins. Both parties approve a locked agreement, and the client authorizes payment through PayPal. Once the freelancer submits the completed website, PactPay automatically verifies it against the agreed requirements. After the client accepts the work, the payment is captured through PayPal. It brings transparency, accountability, and greater confidence to both sides of freelancing.
How we built it
We built PactPay using React, TypeScript, Node.js, Express and SQLite, integrating AI to convert client briefs into measurable acceptance criteria and PayPal for payment authorization and capture. We used Playwright and Chromium to automatically verify submitted websites against the mutually approved agreement, with deterministic code making the final pass/fail decision.
Challenges we ran into
We faced challenges in generating project-specific acceptance criteria from client briefs using LLMs, implementing schema validation, retries and deterministic fallbacks to handle invalid outputs. We also developed a browser-based AI agent with tool calling for website exploration, element interaction and form testing, incorporating human-in-the-loop oversight (Admin) while keeping final pass/fail evaluation deterministic and evidence-based.
Accomplishments that we're proud of
We are proud of building a tool-using AI agent with human-in-the-loop oversight, grounded AI-generated requirements, and version-locked agreements secured with SHA-256 hashing. Integrating PayPal Sandbox with evidence-based, deterministic evaluation allowed us to bring agreement, verification, and payment into one cohesive workflow.
What we learned
We learned to build a tool-using browser agent with human oversight, grounding, structured LLM validation, retries and deterministic fallbacks. We also gained practical experience with PayPal authorization and capture workflows, Sandbox testing, and evidence-based website verification where deterministic checks—not AI judgement—determine the outcome.
What's next for PactPay
AI Freelancer Discovery: Match clients with skilled freelancers using project requirements, verified work, portfolios and trust scores. Scope Change Management: Allow both parties to revise project scope, budgets and deadlines through mutually approved, versioned agreements.
Built With
- api
- express.js
- gemini
- node.js
- paypal
- react
- restapi