Simple Chatbot Full Stack
A full-stack implementation of an AI chatbot with real-time audio/video interaction.
Structure
server/- Python-based bot server using FastAPIclient/- JavaScript client using RTVI and Daily.co for WebRTC
Setup
Server Setup
- Navigate to the server directory:
cd server - Create and activate a virtual environment:
python3 -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate - Install requirements:
pip install -r requirements.txt - Copy env.example to .env and add your credentials
- Start the server:
python server.py
Client Setup
- Navigate to the client directory:
cd client - Install dependencies:
npm install - Start the development server:
npm run dev - Open the URL shown in the terminal (usually http://localhost:5173)
Usage
- Start the server (it will run on port 7860)
- Start the client server (it will run on port 5173)
- Open http://localhost:5173 in your browser
- Click "Connect" to start a session with the bot
Requirements
- Python 3.10+
- Node.js 14+
- Modern web browser with WebRTC support