Asia/Kolkata
ProjectsJuly 10, 2025

Willow Agentic Sales Representative

AI Voice Agent - Quick Start Guide

πŸš€ Quick Start

Option 1: One-Click Install & Run (Windows)

Double-click install_and_run.bat to automatically install dependencies and start the server.

Option 2: Manual Installation

🌐 Access the Application

Once running, the AI voice agent will be available at:
  • Backend API: http://localhost:8000
  • Frontend UI: http://localhost:8000 (React app served by FastAPI)
  • API Documentation: http://localhost:8000/docs

πŸ”‘ Environment Variables

The following environment variables are already configured in .env:
  • GROQ_API_KEY : For Groq AI STT/TTS services
  • TURSO_DATABASE_URL : Cloud database URL
  • TURSO_AUTH_TOKEN : Database authentication token

πŸ“± How to Use

  1. Start a session: Open http://localhost:8000 in your browser
  2. Voice interaction: Click the microphone button to speak
  3. Text interaction: Type messages in the chat interface
  4. Lead qualification: The AI will ask for:
    • Company name
    • Domain/Industry
    • Problem statement
    • Budget information
  5. Media display: Images/videos will appear based on conversation context
  6. Session management: All interactions are saved to the cloud database

πŸ”§ API Endpoints

  • POST /api/chat/text - Text-based conversation
  • POST /api/chat/audio - Audio-based conversation (STT/TTS)
  • GET /api/sessions - List all sessions
  • GET /api/session/session_id/summary - Get session summary
  • POST /api/session/session_id/start - Start a new session
  • POST /api/session/session_id/close - Close a session

🎯 Features

βœ… Real-time voice interaction with Groq AI Whisper (STT) and PlayAI (TTS)
βœ… Lead qualification workflow with structured data collection
βœ… Dynamic media display based on conversation context
βœ… Session persistence with Turso cloud database
βœ… Comprehensive logging of all interactions
βœ… React frontend with shadcn UI components
βœ… FastAPI backend with automatic API documentation
βœ… Multi-session support with unique session IDs

πŸ› οΈ Technology Stack

  • Frontend: React + Vite + shadcn UI
  • Backend: FastAPI + Python
  • Database: Turso (libSQL) - Cloud database
  • AI Services: Groq AI (Whisper STT + PlayAI TTS)
  • Audio Processing: Web Audio API + aiofiles

πŸ“Š Database Schema

The application uses three main tables:
  • sessions - Session information and lead data
  • chat_history - All conversation messages
  • media_interactions - Logged media display events
All data is automatically synchronized with the cloud database for persistence and analytics.

Recent projects

HomeLab Controller

HomeLab Controller

gnome
Desktop
C
Avatar
Sep 2026 Β· 1 min read
A Controller software for my homelab written for Gnome based desktop environments.
The Eden Project
Avatar
Nov 2025 Β· 4 min read
What if music wasn't so inaccessible..
Run over a Deer
Avatar
Nov 2025 Β· 1 min read
A Silly little game based on the hit movie Over The Hedge