https://retellai.com/?utm_source=discord&utm_medium=seo logo
Multi prompt agent not always transitioning to the...
# ❓・bug-report
n
Hi @AI Evy and @Omar Ashraf | Community Lead i can not go to a greeting state to a availability check state even through i write a correct prompt for that to transition between to state here i just send my greeting state for example- Style Guardrails Be warm and polite. Speak concisely: keep greeting brief while offering options. Ask one question at a time to avoid overwhelming the user. Task Greet the caller: “Hello, welcome to Studios!” Ask how you can help, then present clear options: If the caller wants to check studio availability, transition to availability_check. If the caller wants to learn about the studios, transition to studio_information. If the caller wants to confirm an existing booking, transition to confirm_booking. Wait for the user’s response before proceeding. Example Script Flow Agent: “Hello, welcome to Studios! Would you like to check studio availability, learn about our studios, or confirm an existing booking?” (wait for user response) If user says something like “check availability”, “is a studio free?”, or “I’d like to book”, go to availability_check. If user says “tell me about your studios”, “what studios do you have?”, or “learn about studios”, go to studio_information. If user says “I have a booking”, “confirm my booking”, or “I booked already”, go to confirm_booking.
a
Thanks for tagging me @noble_badger_16849. I'll look through relevant sources and get back to you shortly.
### Answer For multi-prompt agents, you need to define state transition logic in your prompt [(1) ]() . The issue is likely that your transition instructions need to be more explicit. Based on the documentation, you should structure your state transition like this :
Copy code
7. Ask if user is interested in an in person tour.
 - if yes, transition to schedule_tour.
 - if no or hesitant, call function end_call to hang up politely and say will reach out if any other interesting properties pop up.
For your greeting state, try this format instead: 1. Present the three options clearly 2. Listen for user response 3. Based on response: - if user mentions availability, checking studios, or booking, transition to availability_check - if user asks about studio information or learning about studios, transition to studio_information - if user mentions existing booking or confirmation, transition to confirm_booking The key is being very explicit about the transition conditions . Make sure your state names match exactly what you've defined in your agent configuration [(2) ]() . Also ensure you've properly configured the edges between states in your multi-prompt setup, as the system needs to know which states can transition to which other states .
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
​ To learn more, see the sources I considered: [[1] Build a multi-prompt agent](https://docs.retellai.com/build/single-multi-prompt/write-multi-prompt) [[2] Update Retell LLM](https://docs.retellai.com/api-references/update-retell-llm) ​
o
Hello @noble_badger_16849 , What type of agent you are using ?
n
multi state prompt agent
If you need i send a JSON of that also?
o
You can't jump to the node using the prompt, you have to use the edges.
n
Yes i use a edge path condition into that but still it look like showing a error like state_transfer here is some path condition for going to greeting to availibility check state Transition if the user wants to check availability, make a booking, reserve a studio, or asks if a studio is free. Examples: - "I want to check availability" - "Can I book a studio?" - "Is Studio 1 free tomorrow?" - "I'd like to make a reservation" - "Book a studio"
o
Can you show me a screen shot and what model are you using ?
Hi @Omar Ashraf | Community Lead Ok the main issue i found is when i found a voice test in test audio it successfully go to a transition check photo but when i use a test chat and do a same prompt so it not go to a any transition, can you tell me a exact reason do it in for that , https://cdn.discordapp.com/attachments/1412769473227657329/1413024541101527070/image.png?ex=68ba6d27&is=68b91ba7&hm=29279ab46370f12480994c60e935993cd0beaec49ad9c98e7e915434fdf2aac7&
And just tell me what is the simple process for going one state to another state with any condition just going to one state to another state in transition between state how we can do it?
c
putting it in the state prompt, simply just tell it “transition to state ‘classify_caller’” for example
o
Hello @noble_badger_16849, this is bug in testing chat , and it will be fixed soon
n
HI @Omar Ashraf | Community Lead Thanks for the update.
o
This Should be fixed @noble_badger_16849 , let me know if you still face it.