proud-lawyer-39815
09/07/2025, 6:57 PMtall-airline-16756
09/07/2025, 6:57 PMtall-airline-16756
09/07/2025, 6:58 PMproud-lawyer-39815
09/07/2025, 7:00 PMconsole keyword from the cli. The idea is to connect the two agents, so they can talk to each other.tall-airline-16756
09/07/2025, 7:00 PMconsole mode in the LiveKit CLI—it’s mainly meant for testing a single agent’s audio and behavior locally, all on its own. It runs in a sort of bubble, without connecting to a LiveKit server or other participants. So, if you were hoping to connect two agents using the console keyword, that won’t quite work.
But no worries! If you want two agents to interact, here’s a simple way to do it:
1. Run both agents in dev mode:
uv run agent1.py dev
uv run agent2.py dev
2. Then, use the LiveKit CLI to send both agents into the same room:
lk dispatch create --agent-name agent1 --room myroom
lk dispatch create --agent-name agent2 --room myroom
This setup will get both agents connected to a shared room on a LiveKit server, so they can chat and interact in real-time.
If you hit any snags or want to chat more about this, just give me a shout—I’m here to help!
Sources: Voice AI quickstart | LiveKit Docs | evaluating-agents/README.md | examples/README.mdproud-lawyer-39815
09/07/2025, 7:01 PMdev keyword do again?tall-airline-16756
09/07/2025, 7:02 PMdev keyword in the LiveKit CLI is a handy shortcut to make development and testing easier. It uses some predefined developer credentials—specifically, the API key devkey and the API secret `secret`—to connect to a local LiveKit server, usually at http://localhost:7880. This way, you don’t have to worry about manually entering credentials when you’re working locally.
Just a heads-up, it’s meant for non-production environments and is super helpful for quick testing and debugging. If you want me to explain anything else or have questions, feel free to ask!
Sources: cmd/lk/utils.go | README.md | Voice AI quickstart | LiveKit Docsproud-lawyer-39815
09/07/2025, 7:06 PMtall-airline-16756
09/07/2025, 7:06 PMproud-lawyer-39815
09/07/2025, 7:08 PMtall-airline-16756
09/07/2025, 7:09 PMlktest-sip-outbound to check the call flow and make sure everything’s working smoothly. If you want, I’m here to help with detailed examples or any other questions you have!
Sources: test/lktest-sip-outbound/README.md | Making calls using SIP | LiveKit Docs | examples/warm-transfer/README.mdproud-lawyer-39815
09/07/2025, 7:12 PMdev command. The other agent, makes a phone call to a number that lands in the first project.tall-airline-16756
09/07/2025, 7:12 PMlk sip inbound create inbound-trunk.json
2. Create a dispatch rule: Next, define a rule that routes incoming calls to a room and assigns an agent to handle them:
lk sip dispatch create dispatch-rule.json
3. Set up an outbound SIP trunk: Now, configure a trunk so your agent can make outbound calls. Just use the CLI with your SIP provider details to get this going.
4. Simulate an outbound call: Ready to test? Dispatch your outbound agent to call the inbound number like this:
lk dispatch create --new-room --agent-name outbound-caller --metadata '+15105550100'
5. Run locally: Finally, run the LiveKit SIP service with a local setup to test everything out. Make sure your agents are running in dev mode for smooth testing.
With this setup, your outbound agent can call the inbound number, which gets routed to a room where the inbound agent is ready to assist. If you want me to walk you through any part or share more examples, just let me know—I’m here to help!
Sources: test/integration/sip_test.go | SIP overview | LiveKit Docs | Accepting incoming calls | LiveKit Docs | Agents telephony integration | LiveKit Docs | Making calls using SIP | LiveKit Docs