brief-vase-33757
02/25/2025, 12:27 PMgray-monkey-83525
02/25/2025, 12:27 PMexport LIVEKIT_URL="wss://your-livekit-cloud-url"
export LIVEKIT_API_KEY="your-api-key"
export LIVEKIT_API_SECRET="your-api-secret"
2. Run the Agent: Start your agent with these environment variables. The agent will open a WebSocket connection to the LiveKit server using the provided URL and credentials. When a room is created, the server will notify the agent to join the room as a participant.
3. Join a Room: Use the agent's code to join a specific room on the LiveKit Cloud. This involves using the connect
command with the room name.
If you need more detailed guidance, please let me know.
Sources:
- LiveKit Agents Overview
- LiveKit Agents for Node.js 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.brief-vase-33757
02/25/2025, 12:28 PMgray-monkey-83525
02/25/2025, 12:28 PMbrief-vase-33757
02/25/2025, 12:30 PMgray-monkey-83525
02/25/2025, 12:30 PM0.12.15
and RTC version 0.20.1
. This means the agent is ready to handle jobs assigned by the LiveKit server.
2. Inference Executor: The agent is starting an inference executor, which is responsible for running inference tasks such as speech-to-text (STT) or other AI model processing.
3. Inference Process: The inference process is initialized, indicating that the agent is ready to perform inference tasks. The process ID (PID) is 51548
.
4. Worker Registration: The agent successfully registers as a worker with the LiveKit server, with an ID of AW_vU2vdiE5YPV4
, in the "India" region. This registration allows the agent to receive job requests from the server.
If you have any specific issues or questions about this process, please let me know.
Sources:
- https://docs.livekit.io/agents/overview/
- https://livekit-users.slack.com/archives/C07FY8WHGPM/p1731772038.705719 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.brief-vase-33757
02/25/2025, 12:37 PMgray-monkey-83525
02/25/2025, 12:37 PM{
"trunk": {
"name": "Twilio Inbound Trunk",
"numbers": [
"+your_twilio_number"
],
"auth_username": "your_username",
"auth_password": "your_password"
}
}
Use the command:
lk sip inbound create inbound-trunk.json
2. Create a Dispatch Rule: This rule will route incoming calls to a specific LiveKit room. Create a dispatch-rule.json
file:
{
"name": "My Dispatch Rule",
"trunk_ids": [
"<livekit_trunk_id>"
],
"rule": {
"dispatchRuleIndividual": {
"roomPrefix": "call"
}
}
}
Apply the dispatch rule using:
lk sip dispatch create dispatch-rule.json
Ensure that the <livekit_trunk_id>
in the dispatch rule is replaced with the actual trunk ID you receive after creating the SIP trunk.
If you need more detailed guidance, please let me know.
Sources:
- Accepting Incoming Calls
- SIP Inbound Trunk 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.