# conversational-ai-quickstart **Repository Path**: agoraio-community/conversational-ai-quickstart ## Basic Information - **Project Name**: conversational-ai-quickstart - **Description**: 对话式 AI 引擎示例代码 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-03-12 - **Last Updated**: 2026-03-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Agora Conversational AI Web Demo Real-time voice conversation with AI agents, featuring live transcription and log monitoring. ## Prerequisites - [Bun](https://bun.sh/) (package manager & script runner) - Python 3.8+ - [Agora Account](https://console.agora.io/) with App ID & App Certificate - API keys for: [DeepSeek](https://platform.deepseek.com/), [MiniMax](https://platform.minimaxi.com/), [Microsoft Azure Speech](https://azure.microsoft.com/en-us/products/ai-services/speech-to-text) ## Quick Start ```bash # 1. Install dependencies bun install # 2. Configure backend cd server cp .env.example .env.local # Edit .env.local with your credentials (see Configuration below) # 3. Start services cd .. bun run dev ``` Services will be available at: - Frontend: http://localhost:3000 - Backend: http://localhost:8000 - API Docs: http://localhost:8000/docs ## Configuration Edit `server/.env.local`: ```bash # Agora Credentials (required) APP_ID=your_agora_app_id APP_CERTIFICATE=your_agora_app_certificate # AI Service Providers (required) LLM_API_KEY=your_llm_api_key LLM_URL=your_llm_url LLM_MODEL=your_llm_model STT_MICROSOFT_KEY=your_microsoft_key STT_MICROSOFT_REGION=chinaeast2 TTS_MINIMAX_KEY=your_minimax_key TTS_MINIMAX_MODEL=speech-01-turbo TTS_MINIMAX_VOICE_ID=male-qn-qingse TTS_MINIMAX_GROUP_ID=your_minimax_group_id # Optional PORT=8000 ``` Authentication uses Token007 (AccessToken2), generated automatically from `APP_ID` and `APP_CERTIFICATE`. No separate API_KEY/API_SECRET needed. Frontend gets all configuration from the backend API — no environment variables required on the frontend side. ## Commands ```bash bun run dev # Start both frontend and backend bun run backend # Backend only (port 8000) bun run frontend # Frontend only (port 3000) bun run build # Build frontend for production bun run clean # Clean build artifacts and venvs ``` ## Project Structure ``` . ├── web/ # Frontend — Next.js 16 + React 19 + TypeScript + Agora Web SDK ├── server/ # Backend — Python FastAPI + Agora Agent SDK ├── ARCHITECTURE.md # System architecture and data flow └── AGENTS.md # AI agent development guide ``` ## Troubleshooting | Problem | Check | |---------|-------| | Connection issues | Backend running on port 8000? | | Auth errors | `APP_ID` and `APP_CERTIFICATE` correct in `.env.local`? | | Agent fails to start | AI provider API keys valid? Check logs at http://localhost:8000/docs | | Frontend can't reach backend | Proxy config in `web/proxy.ts` | ## Documentation - [ARCHITECTURE.md](./ARCHITECTURE.md) — System architecture and data flow - [AGENTS.md](./AGENTS.md) — AI agent development guide - [web/](./web/) — Frontend details - [server/](./server/) — Backend details ## License See [LICENSE](./LICENSE).