https://retellai.com/?utm_source=discord&utm_medium=seo logo
I have this error : Edge destination node id canno...
# ❓・ai-evy-support
a
@AI Evy I have this error : Edge destination node id cannot be the same as the source node id: conversation-1761138985037-edge-1761140261706 Can you tell me what's wrong ?
a
Thanks for tagging me @adrien_12039. I'll look through relevant sources and get back to you shortly.
### Answer This error means you have an edge (transition) where the
destination_node_id
points back to the same node the edge originates from—essentially creating a self-loop. [(1) ]() How to fix it: When you configure edges on a node, each edge's
destination_node_id
must point to a different node, not the source node itself. For example, in a valid configuration:
Copy code
json
{
  "id": "start",
  "type": "conversation",
  "instruction": {
    "type": "prompt",
    "text": "Greet the customer and ask how you can help them."
  },
  "edges": [
    {
      "id": "edge_1",
      "transition_condition": {
        "type": "prompt",
        "prompt": "Customer wants to book appointment"
      },
      "destination_node_id": "book_appointment"
    }
  ]
}
[(2) ]() , [(3) ]() Notice
destination_node_id
is
"book_appointment"
, which is a different node from
"start"
. What to check: 1. Open your conversation flow and find the node with ID containing
conversation-1761138985037
2. Look at the edge with ID
edge-1761140261706
3. Change its
destination_node_id
to point to a different node in your flow If you need a node to loop back on itself for retries, consider creating a separate intermediate node instead.
​ To learn more, see the sources I considered: [[1] Node Overview](https://docs.retellai.com/build/conversation-flow/node) [[2] Update Conversation Flow](https://docs.retellai.com/api-references/update-conversation-flow) [[3] Create Conversation Flow](https://docs.retellai.com/api-references/create-conversation-flow) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.