1. ✨ Features
  • HMS Sovereign Introduction
  • 🚀 Get Started
    • Authentication
    • Quickstart
  • 🧩 Core Concepts
    • Assistants
    • Calls
    • Phone Numbers
    • Webhooks
  • 🏗️ Platform
    • Privacy policy
    • Dashboard Security
    • Data Processing Agreement (DPA)
    • Billing and Credits
    • EU Data Sovereignty
    • Voice Selection
    • Whitelabel Portal
  • 🛠️ SDKs
    • Node.js SDK
  • 🪝 Webhooks
    • Assistant Request
    • End of Call Report
    • Webhooks Overview
    • Webhook Security
    • Status Update
    • Tool Calls
  • ⚙️ Configuration
    • Analysis Templates
    • Custom Tools
    • SIP Trunks
    • Tool Templates
  • ✨ Features
    • AI Generation
    • Autonomous Silence Handling
    • Call Analysis
    • Call Transfers
    • Campaigns Setup
    • Outbound Campaigns
    • Voicemail Detection
    • Web Calls
    • Privacy & Compliance Features
  • 🔗 Integrations
    • MCP Server
    • BYOK Setup
    • Provider Pricing
    • xAI Grok Integration
  • 📖 Reference
    • Error Codes
    • Rate Limits
    • Troubleshooting
Book a meeting
Linkedin
Github
📄 Documentation
🔌 API Reference🤖 MCP🕐 Changelog📦 SDK🟢 Status
📄 Documentation
🔌 API Reference🤖 MCP🕐 Changelog📦 SDK🟢 Status
  1. ✨ Features

Call Transfers

Transfer calls from your AI assistant to human agents, other departments, or external numbers using SIP trunks or the built-in transfer tool.

Transfer Methods#

1. Assistant-Initiated Transfer (Transfer Tool)#

Let your AI assistant decide when to transfer based on the conversation.

2. API-Initiated Transfer (Call Control)#

Transfer calls programmatically via the API.

Setting Up Assistant Transfers#

Step 1: Add Transfer Tool#

Add the transfer tool to your assistant's configuration:

Step 2: Guide the Assistant#

Update your system prompt to guide when to transfer:
{
  "messages": [
    {
      "role": "system",
      "content": "You are a customer service agent. You can answer most questions yourself, but transfer to:\n- Sales: for questions about pricing, quotes, or new products\n- Technical support: for technical issues you cannot resolve\n- Billing: for specific billing questions\n\nAlways try to help first before transferring."
    }
  ]
}

Transfer Tool Schema#

FieldTypeRequiredDescription
typestringYestransfer_call
destinationsarrayYesList of transfer destinations
destinations[].typestringYesnumber
destinations[].numberstringYesPhone number in E.164 format
destinations[].descriptionstringYesWhen to use this destination (for LLM)
destinations[].messagestringNoMessage spoken before transfer

API-Initiated Transfers#

Transfer an active call via the Call Control API:

Transfer Command Fields#

FieldTypeRequiredDescription
typestringYestransfer
destinationstringYesPhone number or SIP URI
messagestringNoMessage before transfer

Using SIP Trunks#

For transfers via your own phone system, configure a SIP trunk.

Step 1: Create SIP Trunk#

Step 2: Assign to Phone Number#

Now transfers from this number will route through your SIP trunk.

Transfer Best Practices#

1.
Clear descriptions - Help the assistant know exactly when to transfer
2.
Informative messages - Tell callers where they're being transferred
3.
Avoid over-transferring - Train your assistant to handle common questions
4.
Test destinations - Verify all transfer numbers are working
5.
Monitor transfers - Track transfer rates to identify training opportunities

Example: Complete Transfer Setup#

{
  "name": "Support Assistant",
  "first_message": "Welcome to Acme support, how can I help you?",
  "llm_config": {
    "provider": "openai",
    "model": "gpt-4o-mini",
    "messages": [
      {
        "role": "system",
        "content": "You are a support agent for Acme. Help customers with questions about products and services. Transfer only if:\n1. The customer explicitly asks for a human\n2. You cannot answer a question after 2 attempts\n3. There is a complaint that requires escalation"
      }
    ],
    "tools": [
      {
        "type": "transfer_call",
        "destinations": [
          {
            "type": "number",
            "number": "+31612345678",
            "description": "Human support assistant for complex issues or when customer explicitly requests a human",
            "message": "I'm transferring you to one of my colleagues, one moment please."
          }
        ]
      },
      {
        "type": "end_call"
      }
    ]
  }
}
See Call Control API and SIP Trunks API for complete details.
Modified at 2026-03-28 09:24:30
Previous
Call Analysis
Next
Campaigns Setup
Built with