Inspiration
A small service business loses time on every job before any work starts. A customer asks for a price, the owner replies by hand, and the customer can still cancel at no cost. When a customer does not show up, the owner has no deposit to cover the lost slot. After the job, the owner must chase the balance.
What it does
QuoteFlow gives each business one booking link.
- The customer describes the job in plain words. Claude fills in the quote, and the customer can change every option.
- The customer can also book the whole visit by chat. The booking agent asks for what is missing, prices the job, and opens a PayPal order.
- The customer pays a deposit of 25% of the total (minimum $10) through PayPal.
- The owner sees the booking arrive without a page reload, requests the balance after the job, and refunds a cancelled booking with one button.
- The owner edits the price list and sees a live preview of the customer page.
How I built it
React, TypeScript, Vite, and Tailwind in the browser. Express on Node.js 24 on Render. Supabase for the database and owner sign-in.
PayPal is the center of the money flow. The app uses the Orders API to create, check, and capture deposit and balance orders, and the Payments API to refund a capture.
Claude Haiku 5.5 reads the customer's sentence with structured output. The booking agent is a tool loop on the server with two tools: quote_job and prepare_booking.
Challenges I ran into
An AI agent that touches money must not be able to set the amount. So the roles are split:
- The server calculates every price again from the owner's saved settings. The browser and the model never decide the amount.
- Each order carries a fingerprint of the selected options. Before capture, the server gets the order from PayPal and compares it.
- The agent can open an order, but it cannot approve or capture one. Only the customer can approve.
The model also stated wrong weekdays, so the server now calculates the weekday and gives it to the model.
Accomplishments that I'm proud of
- A message such as "make it $1" cannot change the price.
- The server rejects a changed price, an order for different options, and an order the buyer did not approve.
- The whole path works in the PayPal sandbox: quote, deposit, balance, and refund on cancellation.
What I learned
Agentic commerce works when the agent has a limited role. Give the model tools that ask the server, and keep the amount and the approval outside the model.
What's next
- PayPal webhooks, so that the server also receives payment events from PayPal.
- Live PayPal accounts for real businesses.
Try it
Live demo: https://quoteflow-2vql.onrender.com (PayPal sandbox, no real money). The sandbox buyer account and the test steps are in the README, under "Testing with the PayPal sandbox".
Built With
- claude
- express.js
- node.js
- paypal
- react
- render
- supabase
- tailwindcss
- typescript
- vite