Hi LiveKitters! I built an agent using agent-star...
# server-api
b
Hi LiveKitters! I built an agent using agent-starter-python (https://github.com/livekit-examples/agent-starter-python) and the frontend with https://github.com/livekit-examples/agent-starter-react, but unfortunately, it's not working. Do you know of a good YouTube tutorial that explains how to set everything up?
r
I am not sure if there are any YouTube or specific video tutorials, I can guide you on how to set up your LiveKit agent and frontend based on the documentation and examples provided in the repositories. Setting Up Your LiveKit Agent and Frontend 1. Agent Setup (Python): ◦ Clone the agent starter repository:`bash git clone https://github.com/livekit-examples/agent-starter-python.git cd agent-starter-python` ◦ Set up a virtual environment and install dependencies:`bash python3 -m venv venv source venv/bin/activate pip install -r requirements.txt` • Configure your environment variables by copying
.env.example
to
.env.local
and filling in the required values: ▪︎
LIVEKIT_URL
▪︎
LIVEKIT_API_KEY
▪︎
LIVEKIT_API_SECRET
▪︎
OPENAI_API_KEY
◦
DEEPGRAM_API_KEY
◦ Run the agent:
bash python3 main.py dev
2. Frontend Setup (React): ◦ Clone the frontend starter repository:`bash git clone https://github.com/livekit-examples/agent-starter-react.git cd agent-starter-react` ◦ Install the dependencies:
bash npm install
◦ Configure the frontend to connect to your LiveKit agent by updating the necessary environment variables or configuration files as specified in the README. 3. Running the Frontend: ◦ Start the React application:
bash npm start
Additional Resources • Documentation: Make sure to refer to the LiveKit Agents Documentation for detailed instructions on setting up and configuring your agents. • Example Projects: Check out the example projects in the LiveKit GitHub repositories for more insights on how to structure your code and configurations. Troubleshooting Tips • Ensure that both the agent and frontend are running and that they are correctly configured to communicate with each other. • Check the console for any errors in the frontend and the logs in the agent to identify any issues. • Verify that your API keys and URLs are correctly set in both the agent and frontend configurations. If you encounter specific issues, feel free to ask for help with error messages or behaviors you're experiencing!
b
Thank you so much. I'll do it again following your instructions.