https://retellai.com/?utm_source=discord&utm_medium=seo logo
state transitioning not working in retell multipro...
# ❓・ai-evy-support
p
state transitioning not working in retell multiprompt @AI Evy
a
Thanks for tagging me @prism_09. I'll look through relevant sources and get back to you shortly.
### Answer State transitions in multi-prompt agents require proper configuration of edges and transition logic [(1) ]() . For state transitions to work correctly, you need to define clear transition conditions in your state prompts . In multi-prompt agents, the
states
array contains objects with
edges
that define transitions [(2) ]() [(3) ]() [(4) ]() . Each edge should have a
destination_state_name
and
description
:
Copy code
javascript
"states": [
  {
    "name": "information_collection",
    "state_prompt": "You will follow the steps below to collect information...",
    "edges": [
      {
        "destination_state_name": "appointment_booking",
        "description": "Transition to book an appointment."
      }
    ]
  }
]
The transition logic should be defined in your state prompt with clear conditions, such as "if yes, transition to schedule_tour" or "if no or hesitant, call function end_call" [(1) ]() . Common issues with state transitions include: - Each state should have clear transition conditions [(5) ]() - Use correct syntax and double-check that destination state names actually exist - Break down the conversation into clear steps If transitions aren't working, verify that your
starting_state
matches an existing state name and that your edge definitions are properly formatted [(2) ]() [(3) ]() [(4) ]() .
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.