! AetherMind
05/28/2025, 9:20 AMVapi Support Bot
05/28/2025, 9:21 AMjs
// Place customer on hold in a conference
app.post("/conference", (req, res) => {
const VoiceResponse = twilio.twiml.VoiceResponse;
const twiml = new VoiceResponse();
twiml.dial().conference({ startConferenceOnEnter: true, endConferenceOnExit: true }, "my_conference_room");
return res.type("text/xml").send(twiml.toString());
});
1. Put the customer in a conference (/conference
).
2. Dial the agency and add them to the same conference.
3. If the agency answers, both are merged; if not, play a fallback message.
See the [official guide](https://docs.vapi.ai/calls/call-handling-with-vapi-and-twilio) for a full example and more details.
Source:
- [Call Handling with Vapi and Twilio](https://docs.vapi.ai/calls/call-handling-with-vapi-and-twilio)Nir S (CEO/Founder @Cloudonix)
05/28/2025, 10:21 AMVapi Support Bot
05/28/2025, 10:21 AM! AetherMind
05/28/2025, 10:36 AMVapi Support Bot
05/28/2025, 10:37 AM! AetherMind
05/28/2025, 11:25 AMVapi Support Bot
05/28/2025, 11:27 AMtransferCall
tool to transfer the call directly to the agency, but this will not allow the AI agent to speak to the agency before merging. For more details, see the [Vapi Default Tools documentation](https://docs.vapi.ai/tools/default-tools).
Sources:
- [Call Handling with Vapi and Twilio](https://docs.vapi.ai/calls/call-handling-with-vapi-and-twilio)
- [Vapi Default Tools](https://docs.vapi.ai/tools/default-tools)Nir S (CEO/Founder @Cloudonix)
05/28/2025, 11:27 AMNir S (CEO/Founder @Cloudonix)
05/28/2025, 11:28 AM! AetherMind
05/28/2025, 11:28 AMVapi Support Bot
05/28/2025, 11:29 AMtransferCall
tool for a direct transfer, but this doesn't allow the AI agent to speak to the agency before merging the calls.
Sources:
- [Call Handling with Vapi and Twilio](https://docs.vapi.ai/calls/call-handling-with-vapi-and-twilio)
- [Vapi Default Tools](https://docs.vapi.ai/tools/default-tools)Vapi Support Bot
05/28/2025, 11:29 AMtransferCall
tool to directly transfer the call, but the AI agent cannot speak to the agency before merging.
Reference:
- [Vapi Default Tools](https://docs.vapi.ai/tools/default-tools)
- [Call Handling with Vapi and Twilio](https://docs.vapi.ai/calls/call-handling-with-vapi-and-twilio)
Sources:
- [Vapi Default Tools](https://docs.vapi.ai/tools/default-tools)
- [Call Handling with Vapi and Twilio](https://docs.vapi.ai/calls/call-handling-with-vapi-and-twilio)Vapi Support Bot
05/28/2025, 11:29 AMtransferCall
tool, but it does not support attended transfers.
Sources:
- [Call Handling with Vapi and Twilio](https://docs.vapi.ai/calls/call-handling-with-vapi-and-twilio)
- [Vapi Default Tools](https://docs.vapi.ai/tools/default-tools)Vapi Support Bot
05/28/2025, 11:47 AMKyle Brunker
05/29/2025, 4:33 AMNir S (CEO/Founder @Cloudonix)
06/12/2025, 9:34 PM