Livekit Voice Agent Guide
Learn how to connect and run your Livekit Voice Agent
Before connecting your Livekit voice agent, ensure you have an active Livekit account and access to your API credentials. You will also need to create a Hamming voice test agent. For a detailed guide on creating scenarios and configuring your voice agent, refer to the Voice Agent Tutorial.
Important: Make sure your agent is able to respond to other rtc.ParticipantKind.PARTICIPANT_KIND_AGENT
participants.
Before You Get Started
To set up and run a Livekit voice agent, you’ll need:
- Your Livekit WebSocket URL
- Your Livekit API Key and Secret
Step-by-Step Setup
Configure Livekit Credentials
Navigate to the Settings page in your Hamming dashboard and locate the Livekit Configuration tab. Enter your Livekit credentials:
- WebSocket URL
- API Key
- API Secret
These credentials will be used to authenticate your Livekit integration.
Set Up Livekit Webhook
To enable call monitoring and scoring, you need to set up a webhook.
- Log in to your Livekit dashboard
- Navigate to Webhook settings
- Add a new webhook with the following URL:
Start a Livekit Call
- Open the New Test Run dialog in your voice agent page
- Switch to the Livekit tab
- Your Livekit configuration will be pre-filled
- Click “Run Scenarios” to initiate a Livekit session
Your call will be automatically monitored and scored.