https://retellai.com/?utm_source=discord&utm_medium=seo logo
On hold, transfer to correct person
# ❓・bug-report
g
If we are calling businesses and the AI asks to speak to the contact, the person who answers is not that person, and needs to transfer or put on hold to get the contact, how do you handle this?
r
@gregb5117 Via prompting. Often this is a good scenario to use multiple states. but for example, "You must ask if you are speaking with {{first_name}}. If you are talking to the correct person, transition to state book_appointment, otherwise transition to state arrange_callback."
g
can you share some info about multiple states?
for us, the state doesn't change per se, i just want to change the greeting and then if the receptionist transfers me the AI doens't hang up
the script/call itself does not change from book_appointment or arrange_callback per se
@Reece - Integration @ Retell AI
r
I guess my point is you should consider making the script/call itself like that. 🙂 When you start getting into kind of "nested conditionals" like that, it helps to be using a multi-prompt agent. It makes it easier to think about and prompt accurately. So you could for example have an "introduction" task where they greet and ask if they are speaking with {{first_name}}. Based on that, they would transition into book_appointment or arrange_callback, for example. Maybe I'm missing what you're asking, lol. The how I handle it, is like that. If the agent asks for a specific person, and it's not that person, the agent is prompted to ask if they're available. If they're not, it will arrange a callback (e.g. what time would be good to try again?). Sometimes it's just someone else answering the phone and they'll indicate they'll get the caller. The agents tend to handle that well...
g
@Reece - Integration @ Retell AI ok what about just ID'ing if it's an IVR, do i have ot do post call analysis of that or is that in the disconnection_reason?
r
oh I misunderstood -- you're doing OUTBOUND. I thought this was inbound.
I still think this needs to be done by your prompting... you should try to identify key things that would suggest it's an IVR. like the conversation saying "press 1 for... press 2 for..." you could still do multiple states for this imo