extended-salmon
extended-salmon5w ago

VAPI Transfer call Issue

I am transferting to real human when user want to speak to real person during call with assistant. transfering call works correctly, but if human doesn't respond, it ended the call. i want come back to assistant if human doesn't respond, and say apologize, and suggest to leave voice mail to human. and send voicemail to human via SMS. Can we do this within vapi tool? or need n8n or twilio integration? Thank you very much
4 Replies
Vapi Support Bot
To achieve your fallback flow, use Twilio's statusCallback to detect if the human doesn't answer, then return control to your assistant and prompt for voicemail. Here’s a code snippet for the /participant-status endpoint:
app.post("/participant-status", async (req, res) => {
const callStatus = req.body.CallStatus;
if (["no-answer", "busy", "failed"].includes(callStatus)) {
// Logic: return to assistant, apologize, prompt for voicemail, send SMS
}
return res.sendStatus(200);
});
app.post("/participant-status", async (req, res) => {
const callStatus = req.body.CallStatus;
if (["no-answer", "busy", "failed"].includes(callStatus)) {
// Logic: return to assistant, apologize, prompt for voicemail, send SMS
}
return res.sendStatus(200);
});
You will need Twilio integration for this flow; Vapi alone does not handle all these steps natively. Source: - Call Handling with Vapi and Twilio
⤵️ Mention @Vapi Support Bot for follow-ups 🐥
extended-salmon
extended-salmonOP5w ago
so I am using n8n. you mean I should call webhook of n8n to detect twillo's callstatus and respond it, but I think once transfered call, then it is disconnected with assistant. so it couldn't get response from webhook.
Kyle Brunker
Kyle Brunker4w ago
Hey! To help track down this issue, could you share: - The call ID - When exactly this happened (the timestamp) - What response you expected to get - What response you actually got instead This would really help us figure out what went wrong!

Did you find this page helpful?