MIAVRO Systems
Developer Toolkitsv1.0.0

AI Chatbot + Lead Capture Kit (Next.js)

A chat widget that answers from your own info, saves the lead and emails you instantly.

Overview

A Next.js kit for service businesses, SaaS and B2B sites. Visitors chat with an assistant that answers only from the details you write in one config file. When they want to talk to a person, they leave their details, the lead is saved in your Supabase database and you get an email alert. Works without an AI key in basic FAQ mode, and with Google Gemini when you add a key. Includes an interactive demo with five sample businesses, full setup docs and tests. It is a code kit you deploy yourself: it does not promise any number of leads.

Features

  • Premium chat widget: mobile-ready, keyboard accessible, quick replies, typing animation
  • One config file (kit.config.ts) for business details, FAQ, colors and greeting
  • AI answers grounded in your config, with basic FAQ mode when no AI key is set
  • Lead form with consent tick, spam honeypot and rate limit
  • Leads saved to Supabase, instant owner alert email via Resend
  • Interactive demo with 5 sample niches
  • README, step-by-step SETUP guide, customization guide, tests

Requirements

  • Node.js 20 or newer
  • A free Supabase project
  • A Resend account with a verified domain (for emails)
  • Optional: Google Gemini API key

Installation

  1. Unzip the file and open the folder in your editor
  2. Run npm install, then copy .env.example to .env.local and fill it in
  3. Edit src/kit.config.ts with your business details
  4. Run the SQL in supabase/migrations/001_leads.sql in the Supabase SQL Editor
  5. Run npm run dev and send a test lead
  6. Deploy to Vercel and add the same environment variables

Included files

    License: Single Site License

    Use the product on one website or application you own or build for one client.

    You may

    • One production deployment
    • Unlimited staging/dev copies for that project
    • Modify the code freely

    You may not

    • Reselling or redistributing the source
    • Using on multiple client projects
    • Including in a template marketplace listing