https://retellai.com/?utm_source=discord&utm_medium=seo logo
Agent Stuck if Speak After Execution is Off for Fu...
# ❓・bug-report
s
No matter what I prompt, the agent will not continue after using he webhook/function if "Speak After Execution" is off. I've tried so many different prompts for hours with different webhooks/functions and the result is the same. Here is my prompt: # Schedule new appointment 1. Ask the future date and time they want. 2. Use function "get_all_bookable_slots" with these instructions: 2.1 set "eventTypeId" to (XXXXX) and timeZone to America/Los_Angeles 2.2 adjust the time range to start at 00:00 UTC on the day before the preferred date and end at 23:59 UTC on the day after the preferred date to cover a 3-day range. 3. By this step you have finished executing the function ""get_all_bookable_slots" and have the data of available time slots. This is where the agent is getting stuck, it won't say anything after this 4. Look at the available time slots and present the following to the user/caller: 4.1 IF their appointment time is available, THEN confirm that they want this appointment. Example: 'Cool, just to confirm you want the 5th at 2:30pm.' 4.2. IF their appointment time is not available, THEN say what appointments are available and wait for response. Example: 'On December 5th, we've got {list times}.' I've tried so many different variations and have tried very simple prompts such as: After you use the function "get_all_bookable_slots", list the results. After you use the function "get_all_bookable_slots", ask them "how is the weather today?" Why am I doing this? When you check the box speak after execution, no matter how you prompt the system it still has it's own robotic one liner first before it uses your prompted tone. For example it will respond: "On December 9th, we have availability at 2 PM. Cool, just to confirm you want the 9th at 2 PM." (the last sentence of that is the instructed style/tone to respond) I hate this and want it to sound as human like as possible. Could really use a hand here if you've got the time! 🙏
Hi @eviewang_ & @retellai , I realize this is a long post and you're busy so I'll keep it short: The agent won't move on to the next state if "Speak After Execution" is off, no matter all the various ways I've told it to move onto the next state or by changing/splitting up the prompting in multiple states. Solving this would solve my problem. Any suggestions? Thank you! - Steven
e
thanks for the report. we will check on it. Can you toggle speak after duration first?
s
Hi @eviewang_ ! Thanks for getting back to me. When I toggle speak after execution, it does successfully respond: "On December 9th, we have availability at 2 PM" ----------------------------------------------------------------------------------------- I don't like how robotic that sounds, so if you give it example responses and instruct a tone it simply adds that to it's own robotic one liner and will respond: "On December 9th, we have availability at 2 PM. Cool, just to confirm you want the 9th at 2 PM." My goal is to great the most human sounding AI receptionist possible, so I really hate those subtle AI ques (like always saying the full date) adds up to a reduced user experience. I want it to not respond at all, then I'll instruct it to respond after, or move on to the next state and start responding there. Kind of like in Bland.Ai where upon webhook/function completion it moves to the next path/edge.