Skip to content
Maxwell CollinsContact

Agency platform: booking, proposals and client dashboards

The platform behind his AI agency: booking, proposals, payment and a dashboard for each client's voice-agent calls.

What it achieved

Bills real clients: prospects book by web or AI phone agent, accept proposals and pay in one place.

The short version

This platform bills real clients of his AI agency, Code Rescue: prospects book by web or by phone with an AI agent, accept a proposal and pay, all in one place. One booking engine serves both the website and an AI voice agent on the phone, and the database makes a double booking impossible. Every booking creates a calendar event with a video-call link and a confirmation email. Clients sign in to a dashboard of every call, booking and lead their voice agent handled. It shows each call's transcript, call-quality scores and suggested fixes. Each client's data is walled off from every other client's at three separate layers.

The problem

An agency selling AI voice agents needs more than a website. Prospects have to be able to book at any hour, and the voice agent that answers the phone has to book into the same calendar without clashes. Every call has to be stored and shown to the right client, and nowhere else. Stitching that together from separate tools leaves double bookings, calls nobody sees, and client data that can leak between accounts.

In use

  1. A prospect reads the seven service pages and books a call from real open times in Google Calendar, or phones and books with the voice agent. Both go through the same booking code, so a time can't be taken twice.
  2. They get a private proposal page. The system notes when it is opened and accepted, and they pay through Stripe.
  3. After each call the voice agent's record arrives through a signed, verified message from the voice provider.
  4. The client opens their dashboard and sees calls, bookings, leads and call-quality insights. Their data is walled off from every other client at three separate layers.

What it achieved

  • Prospects book at any hour with nobody answering: on the website, or by phone with the AI voice agent while the caller is still on the line. Both go through one booking engine, and each booking makes its own calendar event, video-call link and confirmation email.
  • It bills real clients: prospects read the seven service pages, get a private proposal, accept it and pay through Stripe, all on the platform.
  • A time can never be booked twice, because the database itself refuses a double booking.
  • Each client sees every call, booking and lead their voice agent handled, with transcripts, call-quality scores and suggested fixes, and no client can see another's data, which is walled off at three separate layers.

The full record

On this page
In one sentence

Maxwell built code-rescue-new, the AI agency platform behind his business Code Rescue: a booking core that serves both a public web form and an ElevenLabs voice agent from the same code, signed post-call webhooks that flow into a multi-tenant client dashboard isolated in three layers, Google Calendar booking with Meet links, proposals, invoices and Stripe checkout, in 65,236 lines of application code across 560 files with 43 screens and 25 service routes, behind pre-commit hooks and an 80 percent coverage gate, and it bills real clients. He builds by directing AI agents, and he built this system that way.

lines of code
65,236
screens
43
service routes
25
coverage gate
80%

What it does

code-rescue-new is two applications that share one booking core: the public website where prospects learn, book and pay, and the dashboard where each client sees what its AI voice agent did.

The public site

  • Service pages and content. Seven service pages for the services Code Rescue sells, a blog, pricing, frequently asked questions, a contact page, search, a newsletter signup, RSS, sitemaps and an llms.txt file so AI assistants can read the site accurately.
  • Booking. A booking page that shows real open times from Google Calendar and books a call in one step, protected by Cloudflare Turnstile.
  • Order and pay. Stripe checkout with server-side payment verification.
  • Proposals portal. Each prospect gets a private proposal page. The system records when it is viewed and when it is accepted, and sends email notices through Resend.
  • Invoices. A route group for client invoices.
  • Digital business card. A card page with a downloadable vCard.

One booking core, two front doors

  • Shared code. A single createBooking function and a single availability function serve both the web form and the voice agent, so a booking made by phone and a booking made online follow exactly the same rules.
  • Web path. The calendar booking route checks Turnstile, checks availability and books.
  • Voice path. Two routes for the voice agent, check availability and book, authenticated with a bearer token, so the ElevenLabs agent can offer a caller real times and book one while the caller is on the line.
  • Calendar. Each booking creates a Google Calendar event with a Google Meet link, sends invitations and sets reminders. Availability is read through Google's free-busy service.
  • No double booking. A unique database index on the time slot makes two bookings for the same slot impossible, even if they arrive at the same instant.
  • Time zones. A dedicated conversion turns the caller's or visitor's local time into UTC correctly.
  • Confirmations. Resend sends a confirmation email for every booking.
  • Rate limiting that fails closed. If the rate limiter cannot decide, the request is refused, not waved through.

After the call

  • Signed webhooks. When a voice call ends, ElevenLabs sends a post-call webhook. The platform checks its HMAC signature, stores the call with its transcript and outcome, and emails the team a summary.

The client dashboard

Built on Next.js 16 with Clerk sign-in, each client organization gets its own workspace:

  • Overview: four headline figures, an activity feed that refreshes every 15 seconds, and charts of calls and bookings over time.
  • Calls: every call the agent took, with the full transcript in a side drawer.
  • Bookings: every booking, marked by where it came from, the website or the voice agent.
  • Leads: calls and bookings joined into one list of people by phone number and email, linked to an outreach database.
  • Intelligence: call scorecards, failure patterns and proposed prompt fixes from his voice-AI quality platform, helm-intelligence.
  • Workspaces and team: organization switching and team management, plus a profile page.
  • API routes for agents, bookings, calls, intelligence, leads, statistics and the ElevenLabs webhook.

Three layers of tenant isolation

  1. Middleware refuses any dashboard request without a signed-in user.
  2. requireTenantId resolves the organization from the session and returns 401 or 403 when it cannot, before any page or route runs.
  3. Every database function takes a tenant ID as a required argument. The tenant ID is never read from the request, so one client cannot ask for another client's data even by editing a URL.

What it achieved

  • It bills real clients. Prospects find the services, book calls by web or phone, receive proposals, accept them and pay through the platform.
  • 65,236 lines of application code in 560 files, with 43 screens and 25 service routes, across 144 commits.
  • One booking engine behind both a website and an AI phone agent.
  • Seven services sold through the site.
  • Client dashboards that show each business its calls, bookings, leads and call-quality intelligence, with data isolated three times over.

The problem it solves

An agency selling AI voice agents needs more than a website. Prospects must be able to book a call at any hour; the voice agent that answers the phone must book into the same calendar without conflicts; every call needs to be stored and shown to the client it belongs to; and proposals, payments and invoices need a home. Stitching those together from separate tools leaves gaps: double bookings, calls nobody sees, and client data that could leak between accounts. code-rescue-new puts them on one booking core and one database, with isolation enforced at three points so a mistake in one layer is caught by the next.

How he built it

Maxwell wrote a twelve-part blueprint for the platform and put it through two adversarial reviews before building. He then directed AI agents to build it against that blueprint, with every commit passing Husky pre-commit hooks and lint-staged, and pnpm gate as the single acceptance check. Both test configurations enforce 80 percent coverage of branches, functions, lines and statements, and a build that drops below it fails. He keeps an AI engineering index of 17 documents for the agents that work on the code, including a list of known traps and an incident playbook, so the lesson from every failure is written down where the next agent will read it.