Can we make calls with an agent joining in?
# ask-ai
p
Can we make calls with an agent joining in?
t
Thanks for reaching out, GODGIFT. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Absolutely! LiveKit makes it easy for agents to join calls as participants, whether through WebRTC or by using telephony with SIP integration. This way, agents can connect with users in real time via voice, text, or data channels—just like having a friendly conversation. When someone calls in, a SIP participant is created automatically, and an agent can hop into the room to assist. For outgoing calls, agents can start a call through SIP, which opens up a LiveKit room on the fly for a smooth connection. Plus, agents can take advantage of cool features like speech-to-text (STT), text-to-speech (TTS), and natural language processing. These tools help with things like handing off calls between agents and providing voice-powered customer support, making the whole experience even better for everyone involved. Sources: examples/warm-transfer/warm_transfer.py | Sources/LiveKit/Protos/livekit_models.pb.swift | complex-agents/medical_office_triage/README.md | LiveKit Docs | Accepting inbound calls | LiveKit Docs
p
Can we make calls without an agent joining in
t
Absolutely! LiveKit can handle calls even without a human agent stepping in. Instead, AI voice agents take the lead, managing both inbound and outbound calls all on their own. These AI agents join LiveKit rooms just like regular participants and chat with callers in real time through WebRTC. For inbound calls, the system can automatically send an AI agent to pick up and manage the conversation. When it comes to outbound calls, the AI agent can start the call and carry on the talk without needing any human help. This way, you get smooth, fully automated voice interactions. Sources: SIP troubleshooting guide | LiveKit Docs | SIP overview | LiveKit Docs | SIP participant | LiveKit Docs | README.md | LiveKit Docs
p
I don’t want an agent to join the outbound call
t
Hey there! You can totally make outbound calls without needing a human agent to jump in, thanks to LiveKit’s SIP functionality and AI voice agents. Here’s a simple rundown: 1. Set Up a SIP Outbound Trunk: Just configure an outbound trunk with your SIP provider (like Twilio) to handle the call routing. 2. Create an AI Agent: Build an AI voice agent that can take care of calls on its own. This agent will join the LiveKit room automatically. 3. Dispatch the Agent Automatically: Use the Agent Dispatch Service to set up a job that connects the AI agent to a room and gives it the phone number to call. 4. Initiate the SIP Call: The AI agent will use the
CreateSIPParticipant
API to dial the number through your SIP trunk. 5. Monitor Call Status: Keep an eye on how the call’s going (like dialing or active) via the SIP participant attributes. This way, your AI agent handles everything smoothly, no human needed. If you want to dive deeper, check out the outbound calls quickstart guide. Happy calling! Sources: SIP participant | LiveKit Docs | Making outbound calls | LiveKit Docs | Making calls using SIP | LiveKit Docs | examples/src/outbound.ts | packages/sip--make-a-call/README.md