This is an example of a Tavus avatar that uses the Pipecat SDK to create an AI agent that can be used in a Daily room.
python -m venv venv
source venv/bin/activate
pip install -r requirements.txtIn this project's directory, run the following command to copy the .env.example file to .env:
cp .env.example .envEdit the .env file with your own values.
Visit https://tavus.io to get your TAVUS_API_KEY and TAVUS_REPLICA_ID.
Visit https://platform.openai.com to get your OPENAI_API_KEY.
Visit https://cartesia.ai to get your CARTESIA_API_KEY.
Visit https://deepgram.com to get your DEEPGRAM_API_KEY.
Run the following command to start the agent:
python tavus_agent.pyThen, from the logs in above, find and copy the URL of the room and paste it into your browser. It should look something like: Joining https://tavus.daily.co/<room-id>. Follow that link in the browser to join the room and begin speaking with your avatar.