Skip to content

AgoraIO-Community/agent-quickstart-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Agora Conversational AI Web Demo

Real-time voice conversation with AI agents, featuring live transcription and log monitoring.

Prerequisites

  • Bun (package manager & script runner)
  • Python 3.8+
  • Agora Account with App ID & App Certificate
  • Agora project with Conversational AI managed provider support enabled

Quick Start

# 1. Install dependencies
bun install

# 2. Configure backend
cd server-python
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:

Configuration

Edit server-python/.env.local:

# Agora Credentials (required)
APP_ID=your_agora_app_id
APP_CERTIFICATE=your_agora_app_certificate

PORT=8000

Authentication uses Token007 (AccessToken2), generated automatically from APP_ID and APP_CERTIFICATE. Vendor credentials are no longer required in local setup; the backend defaults to the same DeepgramSTT + OpenAI + MiniMaxTTS managed configuration used by the current Next.js quickstart.

Frontend gets all configuration from the backend API — no environment variables required on the frontend side.

Commands

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-client/       # Frontend — Next.js 16 + React 19 + TypeScript + Agora Web SDK
├── server-python/    # 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 Confirm Agora managed provider access is enabled for this project, then check logs at http://localhost:8000/docs
Frontend can't reach backend Proxy config in web-client/proxy.ts

Documentation

License

See LICENSE.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors