We will create 2 assistants, 1 for the receptionist, and the other for the transfer. When the AI receptionist decides to transfer a call, the original caller gets put on hold. The AI receptionist then dials out to the intended recipient as a second assistant, referred to as the transfer assistant (a squad thingy).
The transfer assistant get the recorded conversation text and provides a classified brief (for example, "John is on the line to discuss a legal matter"). You then provide instructions where the callee can respond with a "yes" to accept the call, or a "no" to send the call to voicemail. You can then use your trigger to fire
transferSuccessful()
to finish the call merge, or
transferCancel()
to redirect the call somewhere else. It’s entirely a matter of how you frame your prompts to your assistants and how you set the logic. The only requirement is that the assistants are properly set up. Everything else should run seamlessly.