// Headersconst headers = { authorization: "YOUR-API-KEY-HERE",};// Dataconst data = { phone_number: "+11233456789", transfer_phone_number: "+19876543210", task: "If the caller requests to speak with a human, transfer the call to the representative.",};// API requestawait axios.post("https://api.bland.ai/v1/calls", data, { headers });
Live transfer
Copy
Ask AI
// Headersconst headers = { authorization: "YOUR-API-KEY-HERE",};// Dataconst data = { phone_number: "+11233456789", transfer_phone_number: "+19876543210", task: "If the caller requests to speak with a human, transfer the call to the representative.",};// API requestawait axios.post("https://api.bland.ai/v1/calls", data, { headers });
Implementing live transfer in your AI-powered phone calls enhances flexibility and customer experience. This guide will explain how to set up a live transfer during a call using Bland AI.
Live transfer allows the AI agent to transfer the call to a human representative under certain conditions. This is crucial for scenarios where human intervention is preferred.
Include the transfer_phone_number parameter in your call data. This is the number the AI will transfer to. Additionally, define the conditions for transfer in the task parameter.Example:
Copy
Ask AI
{ "phone_number": "+11233456789", "transfer_phone_number": "+19876543210", "task": "If the caller requests to speak with a human, transfer the call to the representative."}
After setting up the live transfer, test the functionality to ensure it works as expected. Monitor the calls to adjust the transfer conditions as necessary.
Setting up a live transfer offers a seamless experience for situations where AI needs to hand over to a human. You’re now ready to integrate this feature into your AI-powered calls with Bland AI.Maintain a balance between automated and human interactions to optimize customer satisfaction. Happy calling!
Copy
Ask AI
// Headersconst headers = { authorization: "YOUR-API-KEY-HERE",};// Dataconst data = { phone_number: "+11233456789", transfer_phone_number: "+19876543210", task: "If the caller requests to speak with a human, transfer the call to the representative.",};// API requestawait axios.post("https://api.bland.ai/v1/calls", data, { headers });