A Next.js application that creates AI-powered conversational agents using the Tavus API.
- Clone and install:
git clone <repository-url>
cd tavus-demo
npm install- Set up environment variables:
cp .env.example .env
# Add your API keys to .env- Create a knowledge base:
npm run tavus-cli create- Start the app:
npm run dev# Required
TAVUS_API_KEY=your_tavus_api_key
TAVUS_REPLICA_ID=your_replica_id
FIRECRAWL_API_KEY=your_firecrawl_key
# Choose one
OPENAI_API_KEY=your_openai_key
# OR
GOOGLE_AI_API_KEY=your_google_ai_key
# Client-side
NEXT_PUBLIC_TAVUS_API_KEY=your_tavus_api_key
NEXT_PUBLIC_TAVUS_REPLICA_ID=your_replica_idvercelMIT