• OUTBOUND
  • INBOUND
  • MANAGEMENT
  • HUMAN

How to automate SIP telephony calls with your AI

Connect LiveKit to your AI client to bridge the gap between voice telephony and intelligent agents. Your AI handles the dialing and routing while you manage the logic.

Ask AI about this page

Short answer

How can I automate SIP telephony calls with my AI?

You give your AI access to LiveKit tools that handle SIP trunking, number management, and call routing. This allows your agent to dial numbers, receive calls, and move participants between rooms. You'll see how the AI manages the telephony lifecycle below.

Telephony outcomes

Where calls land

The AI manages these specific telephony states.

OUTBOUND

Automated dialing

Your AI initiates calls to external SIP numbers. It handles the connection and starts the conversation immediately.

INBOUND

Smart call routing

Incoming calls hit your configured trunks and get routed to the right rooms. The AI decides where the audio should land.

MANAGEMENT

Number control

The AI can grab new phone numbers or list what you already own. It keeps your telephony inventory organized.

HUMAN

Manual intervention

When a call needs a person, the AI transfers the participant. You take over the audio stream when the AI hits a limit.

The workflow

What your AI does when a call arrives.

The AI acts as the bridge between the PSTN and your digital rooms.

  1. Set up the connection

    The AI prepares the infrastructure by setting up the necessary trunks for incoming and outgoing traffic.

    create_sip_inbound_trunkcreate_sip_outbound_trunk
  2. Provision numbers

    The AI manages your telephony identity by acquiring or checking available phone numbers.

    purchase_phone_numberlist_phone_numbers
  3. Route the call

    Once a call hits your number, the AI applies rules to send that caller to a specific room or participant.

    create_sip_dispatch_rulecreate_sip_participant
  4. Hand off to humans

    If the conversation requires a person, the AI moves the caller to a different destination.

    transfer_sip_participant

Try it

Copy these to start.

Use these prompts to trigger telephony actions.

Starting points

These are opening lines. Swap out the specific phone numbers or room names for your own.

LiveKit Connector

You're all set. Choose your MCP client and follow the setup instructions.

Connector linkhttps://edge.vinkius.com/vk_preview_4uxLOatgtvJyaigQtiYOMWFntnvDipZI6XFcq5Bo/mcp

Claude Desktop

Follow the steps below to connect in seconds.

  1. 1In Claude Desktop, open Settings → Connectors.
  2. 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
  3. 3Click Add and start a new chat — LiveKit capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "livekit-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_4uxLOatgtvJyaigQtiYOMWFntnvDipZI6XFcq5Bo/mcp"
    }
  }
}
Copy into chat04
  • Purchase a new phone number for my outbound calls.

  • Create an inbound SIP trunk and route calls to the 'Support' room.

  • Dial the number +15550123 and add them as a SIP participant.

  • Transfer the current SIP participant to the 'Manager' room.

  • Claude
  • ChatGPT
  • Cursor
  • VS Code
  • Windsurf
  • Claude Code
  • JetBrains
  • Cline

Start here

Connect LiveKit once, then ask.

Just link your account once. Your credentials stay encrypted, and you can start managing calls immediately through your AI client.

Connect LiveKit to your AI

FAQ

How this task behaves

  • 01

    Can the AI record the calls?

    No. The current tools only handle routing, dialing, and participant management.

  • 02

    Can the AI delete my existing phone numbers?

    No. The AI can list and purchase numbers, but it cannot delete them.

  • 03

    Does the AI handle the actual audio processing?

    No. The AI uses LiveKit to route the audio, but the actual voice processing happens in your application logic.

  • 04

    Can I use this to make bulk marketing calls?

    The AI can dial numbers, but it does not have built-in tools for bulk automated dialing or mass SMS.

  • 05

    How does the AI know where to send a call?

    The AI uses dispatch rules to match incoming calls to specific rooms or participants.

  • More questions about LiveKit? See everything the LiveKit Connector can do

Connect LiveKit to Claude, Cursor, ChatGPT & more