Inspiration
The last item is available, but you can't buy it. An agent got there first—and keeps renewing its hold without purchasing.
Agents can move faster than people. Businesses need a way to welcome them while giving other buyers a chance. Resaf connects temporary exclusivity to a PayPal-backed financial commitment and a deadline.
Agents can reserve faster than people and keep inventory blocked without buying. Resaf makes those holds financially accountable while giving other buyers a chance.
What it does
Resaf is an AI reservation agent for businesses and the developers building for them. A business sets the commitment fee, reservation duration and refund conditions. Resaf manages access under those terms.
The demo follows two AI shoppers competing for one parking space. One obtains a short approval claim while the other waits. A verified $2 PayPal commitment activates the reservation. When the buyer completes the separate $25 booking, the business's policy returns the $2 commitment through PayPal. The confirmation shows the payment and refund separately.
If an unpaid claim expires, another buyer can try. Future commitment fees can increase or decrease within business-defined limits, while accepted prices and refund promises stay fixed.
The opportunity extends to rooms, appointments, services and scarce products. In a projected scenario, ten additional completed $25 bookings daily could generate $7,500 in monthly booking revenue over 30 days
How we built it
Gemini chooses tools, with Groq fallback. AG Grid displays competing requests. React, Node.js and PostgreSQL run on Render, while Cloudflare triggers expiration cleanup.
Challenges we ran into
The hardest part was coordinating payments, competing requests and expiration safely. AI chooses actions; server-enforced rules and verified PayPal results determine outcomes.
Accomplishments that we're proud of
Two real AI agents competing for one resource, with verified PayPal commitments, purchase completion and automatic policy-based refunds.
What we learned
Fast agents need clear boundaries. Separating reservation state from payment state makes failures recoverable and outcomes easier to verify.
What's next for Resaf
Pilot with a business, connect its inventory system, and measure completed bookings and buyer experience. Expand to rooms, appointments and other reservable services.
Built With
- ag-grid
- baseui
- cloudflare-workers
- gemini
- groq
- javascript
- node.js
- paypal
- postgresql
- react
- render
- typescript