QasperAI
QasperAI helped people find local businesses and book appointments through AI chat, with business profiles and tools for managing customer interactions.
- My role
- Co-founder & Product Engineer
- Period
- Apr–Sep 2026
- Adoption
- 130+ businesses onboarded
Local preview of the business dashboard with synthetic business records, bookings, and metrics. View full image
From zero, alongside a full-time role
I co-founded QasperAI and built it alongside my full-time role, owning the work beyond code: customer discovery calls, outreach and sales, content, roadmap, architecture and full-stack engineering. I onboarded 130+ businesses through outreach and pilots, and worked directly with owners to turn their problems into product decisions.
From discovery to an accurate action
A business needed more than a chat window: customers had to find useful information and take an action. I built structured profiles, hybrid search, and customer-facing chat and MCP integrations around the same business data.
In booking flows, a network error could leave the interface unsure whether an action had succeeded. I refreshed booking state after each outcome and kept pending, confirmed, and uncertain results distinct, so the UI could offer the right next action.
What shipped
The product shipped with business profiles, AI discovery, booking workflows, and external integrations. My involvement as co-founder ended in September 2026, and the product is no longer online.
Engineering deep dive: Keeping bookings consistent across services
Keeping bookings consistent across services
I coordinated PostgreSQL, external calendars, and a notification queue so the system can recover when a calendar request has an unclear result.
Booking service
Booking coordinator
Give the request a stable ID. Recognize repeated attempts.
business + request ID
PostgreSQL · first save
Save pending booking
Save the pending booking and its first audit record.
first PostgreSQL transaction
Booking service · business lock
Availability recheck
Lock the recheck, calendar call, and final save.
business lock through final save
External calendar
Calendar provider
Create the appointment in the external calendar.
response can be missing or unclear
PostgreSQL · final save
Save result and queue
Save calendar IDs, booking state, and notification work together.
one PostgreSQL transaction
Send notifications later
Notification worker
Take queued work, retry failures, and recover abandoned tasks.
small batches · recoverable work
From calendar · unclear result
Recovery check
Retry only when safe. Check unclear provider results.
track unresolved results
Engineering decisions
Reuse the request ID
I give each booking request a stable ID. A database uniqueness rule uses the business and request ID together to recognize retries, including simultaneous requests.
Hold the lock until saved
I keep the business lock through the availability recheck, calendar call, and final save. Other booking attempts for that business wait until it is released.
Save notification work with the result
I save the booking result and notification work in one PostgreSQL transaction. Both commit together or neither does. Workers send the queued notifications afterward.
When the calendar response is lost
Save the pending request
The original request ID is recorded.
Calendar response is lost
The appointment may already exist.
Check retry support
Repeat the call only if the provider supports safe retries.
Save or check the result
Save a confirmed result, or flag it for a follow-up check.
How I checked it
Server tests cover calendar timeouts and unclear results. Dashboard tests cover lost responses and overlapping actions.
Tradeoff
Bookings for the same business wait for each other while the calendar call runs. The lock uses a database connection until the final save. I accept that cost to keep the availability check and calendar write coordinated.
Further engineering details
What the MCP activity shows
A reported 30-day snapshot recorded 60,583 MCP requests, including protocol traffic, and 2,131 tool invocations. These figures describe endpoint activity; they do not establish a count of people or completed bookings.
Preventing duplicate catalog syncs
Two WooCommerce sync requests can arrive before either has created a job. I added a partial unique PostgreSQL index that applies while a job is queued or running.
If another request has already created that job, the service returns the existing run. Once the job finishes, a later refresh can use the same request key again.
The database handles this race across callers. A regression test checks that a repeated request reuses the active job.
Giving AI clients accurate action results
MCP tools let AI clients call business actions. I return separate outcomes for inquiries waiting to be sent, confirmed delivery, failures, and bookings needing a follow-up check. I also distinguish saved availability from a live calendar check, so the AI can describe what actually happened.
I separated the tools available through older and newer MCP endpoints and added tests that start the server and call those tools over HTTP. Public chat also filters out privileged message roles supplied by callers.
A request ID identifies an attempt. Whether that attempt can be repeated safely depends on the external service.
Keeping embedded chat and public pages usable
I use a versioned postMessage handshake so the chat and the page embedding it agree on who controls its height. Before accepting control messages, I check the sending window, expected origin, and message format.
On mobile, the chat controls its own height until a trusted host takes over. This prevents competing resize handlers when the keyboard opens and keeps the iframe usable on its own.
Tests cover untrusted messages, outdated layout state, and viewport scaling. Chat keeps its own layout behavior when host coordination is unavailable.
For public pages, I added explicit GET and HEAD routes that return ready-made HTML to browsers and crawlers. Interactive routes keep a separate application-shell fallback.
The service worker treats trailing-slash URL variants as the same cache entry. If saving to the cache fails, it still returns the successful network response. Offline navigation uses the saved page or app shell.
HTTP and service-worker tests cover these paths. The tradeoff is maintaining the public-route list alongside the client router.
