What it does
A plain-language sale becomes structured invoice details through Gemini, then a real PayPal sandbox invoice draft. The dashboard shows the amount, due date and draft status.
How it works
A Cloudflare Worker serves the chat interface and routes requests. Gemini parses the sale details, the PayPal Invoicing API creates the draft, and Workers KV stores the ledger. Supported requests use a visibly labeled deterministic fallback when the AI is unavailable.
Demonstrated result
One cake at $1, due in fourteen days, became sandbox draft INV-1009 due November 23, created through the live Gemini path without the offline fallback. Earlier intermittent free-tier AI failures remain an availability limit; the fallback visibly labels itself "[Offline mode - AI parser unavailable]".
Scope
Send and status controls are implemented; delivery, payment collection, status-sync correctness, reminders and recurring billing are not demonstrated. Sandbox only - no live payments, and no payment data stored in the app.
Built With
- cloudflare-workers
- google-gemini
- javascript
- paypal-invoicing-api
- workers-kv