A React-based voice assistant application built with Retell AI, featuring an interactive voice interface with modern UI components.
- ποΈ Real-time voice conversations with AI
- π¨ Beautiful, modern UI with Tailwind CSS
- β‘ Built with Vite for fast development
- π Framer Motion animations
- π± Responsive design
- Node.js (v18 or higher recommended)
- npm or yarn
- Retell AI API credentials
- Clone the repository:
git clone <repository-url>
cd retell_voice_bot- Install dependencies:
npm install- Set up environment variables:
cp .env.example .env- Edit the
.envfile with your Retell AI credentials:
VITE_RETELL_API_KEY=Bearer your_api_key_here
VITE_RETELL_AGENT_ID=your_agent_id_here
VITE_RETELL_LLM_ID=your_llm_id_here- Sign up for a Retell AI account at retell.ai
- Create an agent in your Retell AI dashboard
- Generate an API key
- Copy your Agent ID, LLM ID, and API Key
- Paste them into your
.envfile
Start the development server:
npm run devThe application will be available at http://localhost:5173
Build for production:
npm run buildPreview the production build:
npm previewretell_voice_bot/
βββ src/
β βββ App.tsx # Main application component
β βββ main.tsx # Application entry point
β βββ lib/
β β βββ retell.ts # Retell SDK integration
β β βββ utils.ts # Utility functions
β βββ components/
β βββ ui/
β βββ lamp.tsx # Lamp UI component
βββ .env # Environment variables (not committed)
βββ .env.example # Environment variables template
βββ package.json # Dependencies and scripts
All sensitive credentials are stored in environment variables to protect your API keys. Never commit .env to version control.
Required environment variables:
VITE_RETELL_API_KEY: Your Retell AI API key with Bearer prefixVITE_RETELL_AGENT_ID: Your Retell agent IDVITE_RETELL_LLM_ID: Your LLM configuration ID
β Security Best Practices Implemented:
- All API keys are stored in
.envfiles .envfiles are excluded from git via.gitignore- No hardcoded credentials in source code
- Environment variables prefixed with
VITE_for client-side exposure
- React - UI framework
- TypeScript/JavaScript - Programming languages
- Vite - Build tool and dev server
- Tailwind CSS - Styling
- Framer Motion - Animations
- Retell AI SDK - Voice AI integration
- Lucide React - Icons
npm run dev- Start development servernpm run build- Build for productionnpm run preview- Preview production buildnpm run lint- Run ESLint
- Fork the repository
- Create a feature branch
- Make your changes
- Submit a pull request
MIT License - see LICENSE file for details
retell-voice-assistant
ποΈ Modern voice assistant built with React and Retell AI. Features real-time voice conversations, beautiful UI with Tailwind CSS, and smooth animations with Framer Motion. Perfect for building conversational AI interfaces with clean, production-ready code.
voice-assistant, react, retell-ai, conversational-ai, voice-interface, tailwindcss, framer-motion, vite, typescript, react-typescript, ai-integration, web-voice-app, modern-ui, real-time-communication, voice-bot, ai-chat, interactive-ui, production-ready
For issues related to:
- This application: Open an issue on GitHub
- Retell AI: Visit retell.ai for documentation and support