A Next.js frontend application that provides a web interface for customers to interact with Big Tony, the enthusiastic car dealer AI agent. Features both a marketing landing page and a LiveKit-powered voice call interface.
You will need to have a running LiveKit server and agent. See ../agent/README.md for instructions.
npm installThis frontend connects to your LiveKit server and agent.
Copy the sample environment file and fill in your LiveKit server credentials. These can be found in your LiveKit project dashboard. See ../agent/README.md for more information.
cp .ENV_VARS.frontend.sample .envEdit .env and add your LiveKit server credentials and, optionally, your Vapi phone number.
LIVEKIT_URL=
LIVEKIT_API_KEY=
LIVEKIT_API_SECRET=
VAPI_PHONE_NUMBER=npm run devThe application will be available at http://localhost:3000.
npm run devnpm run build
npm run start# Format code
npm run format
# Check formatting
npm run format:check
# Lint and fix issues
npm run lint- Navigate to
http://localhost:3000to see Big Tony's Auto Emporium marketing page - Features phone number for traditional calls and "Web call" button for browser-based calls
- Click "Web call" or navigate to
/callto start a browser-based conversation with Big Tony - Requires microphone permissions
- Make sure the LiveKit agent is running (see ../agent/README.md)
For production deployment:
-
Build the application:
npm run build
-
Deploy to your hosting platform (Vercel, Netlify, etc.)
-
Ensure your LiveKit server and agent are accessible from your production domain
- Microphone access denied: Check browser permissions and ensure HTTPS in production
- Connection issues: Verify the LiveKit agent is running and accessible
- Audio problems: Check browser compatibility and audio device settings
- Build errors: Ensure all dependencies are installed with
npm install