API Endpoint
/api/warm-transfer
Method
POST
Total Logs
-
🚀 Setup Instructions
Your API is ready! Follow these steps to connect it to ElevenLabs.
Step 1: Copy Your Webhook URL
https://your-deployment.pages.dev/api/warm-transfer
Step 2: Configure ElevenLabs
- Go to ElevenLabs Conversational AI
- Select your agent
- Go to Functions or Tools tab
- Click Add Function
- Configure as follows:
- Name: warm_transfer
- Description: Perform warm transfer to external number. AI first calls the person, briefs them, then connects if they accept.
- Type: Webhook
- Method: POST
- URL: [Paste your webhook URL from above]
Step 3: Add to Agent Prompt
## WARM TRANSFER If the customer wants to be transferred, use the warm_transfer function. First collect: 1. Customer's name 2. What it's about Then call warm_transfer with: - call_id: Current call ID - target_number: The mobile number (e.g., +31612345678) - target_name: Name of the person (e.g., "Jan") - context: Short summary (e.g., "Customer Jan Jansen asking about product X") - priority: "normal" or "urgent"
Step 4: Test It
Use the "Test API" tab to send a test request and verify everything works.