1. Features
  • HMS Sovereign API
  • Get started
    • Authentication
    • Introduction
    • Quickstart
  • Core concepts
    • Assistants
    • Calls
    • Phone Numbers
    • Webhooks
  • Platform
    • Billing & Credits
    • EU Data Sovereignty
    • Voice Selection
    • Whitelabel Portal
  • 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
  • Integrations
    • BYOK Setup
    • Provider Pricing
    • xAI Grok Integration
  • Reference
    • Error Codes
    • Rate Limits
    • Troubleshooting
Documentation
API Reference
Documentation
API Reference
Book a meeting
Linkedin
Github
  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": "Je bent een klantenservice medewerker. Je kunt de meeste vragen zelf beantwoorden, maar verbind door naar:\n- Sales: bij vragen over prijzen, offertes, of nieuwe producten\n- Technical support: bij technische problemen die je niet kunt oplossen\n- Billing: bij specifieke facturatievragen\n\nProbeer altijd eerst zelf te helpen voordat je doorverbindt."
    }
  ]
}

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": "Welkom bij Acme support, waarmee kan ik u helpen?",
  "llm_config": {
    "provider": "openai",
    "model": "gpt-4o-mini",
    "messages": [
      {
        "role": "system",
        "content": "Je bent een support medewerker voor Acme. Help klanten met vragen over producten en diensten. Verbind alleen door als:\n1. De klant expliciet vraagt om een mens\n2. Je een vraag niet kunt beantwoorden na 2 pogingen\n3. Er een klacht is die escalatie vereist"
      }
    ],
    "tools": [
      {
        "type": "transfer_call",
        "destinations": [
          {
            "type": "number",
            "number": "+31612345678",
            "description": "Human support assistant for complex issues or when customer explicitly requests a human",
            "message": "Ik verbind u door met een van mijn collega's, een moment alstublieft."
          }
        ]
      },
      {
        "type": "end_call"
      }
    ]
  }
}
See Call Control API and SIP Trunks API for complete details.
Modified at 2026-03-17 10:59:50
Previous
Call Analysis
Next
Campaigns Setup
Built with