Project 07

Rivyn AI Website

The marketing site for Rivyn AI, built to explain the service to independent insurance agency owners and get them onto a call.

Who uses it

Independent insurance agency owners in Dallas Fort Worth who are busy, not technical, and deciding whether Rivyn is worth thirty minutes. It is also the site people land on when they scan the QR code on my business card.

Why it was built

Rivyn sells a growth engine to agency owners, and those owners will not read a long pitch. They need to see what it does, check that it is real, and book a call without friction. I also wanted the site to do some selling on its own: a free audit, a live assistant, and a contact card a prospect can save in one tap.

What it does

The home page walks through the engine, why it works for agencies, a 30 day launch timeline and pricing, and each of the thirteen services has its own page generated from one data file. Every Book a Call button goes to an on site booking page with an inline Cal.com calendar themed to match the site. A free Growth Audit looks the agency up on Google, asks three yes or no questions, and has Claude write a graded scoreboard with no dollar figures. A live AI Assistant page answers questions in a phone mockup and offers a lead card, and every form feeds one lead endpoint. A /card page serves my digital business card with a Save Contact button for the QR code.

What it serves

It is the front door for Rivyn: the place a prospect checks after an email or a card scan. Success is an agency owner understanding the offer in a minute and booking a call, or leaving a lead through the audit or assistant that lands in the portal for follow up.

Under the hood

Next.js 16 with the App Router, React 19, TypeScript and Tailwind CSS v4, with motion for animation, deployed on Vercel. Route handlers call Claude through the Anthropic SDK with structured JSON outputs and a cached system prompt, call the Google Places API (New) for the audit lookup, and store leads in Supabase over its REST API before forwarding them to the Rivyn portal through a signed webhook. Every paid route is capped per IP and per day through Upstash Redis, and each AI route falls back to a canned or deterministic answer so a page never breaks. PostHog runs cookieless for page views, session replay and named events.

Flow

  1. Visit or QR scan
  2. Engine and pricing pages
  3. Growth Audit or Assistant
  4. Lead endpoint
  5. Booking calendar

Built with

  • Next.js 16
  • React 19
  • TypeScript
  • Tailwind CSS v4
  • Motion
  • Cal.com embed
  • Claude API
  • Google Places API
  • Supabase
  • Upstash Redis
  • PostHog
  • Vercel

How I built it

  1. I wrote a build spec first: one scrollable landing page with one conversion action, Book a Call, and a hard rule of no em dashes in the copy.
  2. I built the first version as a static marketing page with Next.js, Tailwind and Aceternity style components, with every call to action pointing at one booking URL in a config file.
  3. When I narrowed Rivyn to insurance agencies, I retired the other industry pages, swept the copy into agency language, and moved every service list into one registry so names could not drift between pages.
  4. I added the pages that do work on their own: per service engine pages, pricing, process, the Book of Business Audit, the Growth Audit with Google lookup and Claude scoring, and the AI Assistant.
  5. I added /card and /api/vcard for the QR code on my business card, and spent a run of commits getting the contact photo to survive the trip into iOS and Android Contacts.
  6. Before the AI and Places routes went public I put hard caps on every paid route, then wired leads into Supabase and the Rivyn portal webhook and added PostHog events.

Key decisions

  • I routed every booking button through one BOOKING_URL constant pointing at an on site /booking page with the Cal.com inline embed, so the call action never leaves the site and changing it is a one line edit.
  • Every route that spends money calls one rate limit helper that counts per IP per minute, per IP per day and a global daily ceiling in Upstash Redis over plain fetch, so worst case daily spend is a known number. The per IP check runs first so one noisy visitor cannot burn the global budget.
  • The Assistant and Growth Audit ask Claude for structured JSON against a schema and fall back to a canned reply or a deterministic scoreboard when the key is missing, the call fails or the cap is hit, so the page always renders.
  • For the vCard I stopped assembling the file by hand and serve the exact bytes Contacts.app exported, flattened for Android, with inline disposition for iOS and no-store caching, because every hand built version lost the photo somewhere along the way.
  • I strip em and en dashes from model output on the server, so the house style holds no matter what the model writes.
  • The card page and private demo paths get noindex headers in next.config rather than robots.txt entries, so the paths stay unlisted without being advertised.
The home page
The home page