Skip to content

filtercodes/conversational_ai_agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Conversational AI Agent

This project demonstrates how to create a conversational AI agent.

Setup

1. Prerequisites

  • Python 3.7+
  • An Eleven Labs account with an API Key and an Agent ID.

2. Create a Virtual Environment

It is recommended to use a virtual environment to manage the project's dependencies.

python -m venv venv
source venv/bin/activate  # On Windows use `venv\Scripts\activate`

3. Install Dependencies

Install the required Python packages using pip:

pip install -r requirements.txt

4. Configure Environment Variables

Copy the example environment file .env.example to a new file named .env:

cp .env.example .env

Open the .env file and add your Eleven Labs API Key and Agent ID:

ELEVENLABS_API_KEY="YOUR_API_KEY_HERE"
ELEVENLABS_AGENT_ID="YOUR_AGENT_ID_HERE"

Usage

Once the setup is complete, you can run the conversational agent:

python main.py

The script will start an interactive session with your Eleven Labs agent. Speak into your microphone when prompted, and the agent will respond. The conversation will be transcribed in your terminal.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages