https://retellai.com/?utm_source=discord&utm_medium=seo logo
When I've converted a voice agent to a chat agent ...
# ❓・ai-evy-support
g
@AI Evy When I've converted a voice agent to a chat agent and attempt to edit any of the nodes, I'm given this error and am unable to change anything: Edge destination node id odes not exist
a
Thanks for tagging me @George ‼. I'll look through relevant sources and get back to you shortly.
​ To learn more, see the sources I considered: [[1] List Conversation Flows](https://docs.retellai.com/api-references/list-conversation-flows) [[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) ​
### Answer --- The error "Edge destination node id does not exist" indicates that one or more edges in your conversation flow reference a
destination_node_id
that no longer exists in the flow. [(1) ]() , [(2) ]() , [(3) ]() This can happen when converting between agent types if nodes were removed or renamed during the conversion process, but the edges still point to the old node IDs. To resolve this: 1. Export and inspect your conversation flow - Check the
edges
array within each node to identify which
destination_node_id
values are invalid. [(1) ]() , [(3) ]() 2. Update or remove broken edges - You'll need to either: - Update the
destination_node_id
to point to a valid existing node - Remove edges that reference non-existent nodes 3. Use the Update Conversation Flow API if you need to fix this programmatically. [(2) ]() The conversation flow structure expects each edge to have a valid
destination_node_id
that matches an existing node's
id
. [(1) ]() , [(3) ]() Check out these potentially useful sources for more details: - [Debug guide]() - [Update Conversation Flow]() - [Create Conversation Flow]()
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
g
@ai evy
@AI Evy i tried to import the new file and it gave me error 400, what does that mean
a
Thanks for the follow-up, @George ‼. I'll get back to you soon.
### Answer A 400 error typically means there's an issue with the request body or parameters you're sending. Based on community discussions, this often relates to malformed data in your import file. [(1) ]() [(2) ]() Here are some common causes and fixes: 1. Clear your browser cache and try again - this has resolved 400 errors for some users when saving or importing flows. [(1) ]() 2. Check your function parameters - If your file includes custom functions, ensure the parameters follow the correct function calling format. You can reference the guide at [(2) ]() 3. Validate your JSON structure - The error message from your previous issue ("Edge destination node id does not exist") suggests there may still be invalid node references in your file. Before importing, verify that all
destination_node_id
values in your edges point to existing nodes. If clearing cache and fixing the node references doesn't work, could you share the specific error message details? That would help identify the exact issue with your import file.
​ To learn more, see the sources I considered: [[1] 400 error](https://discord.com/channels/1186424376300679209/1379119377760260127) [[2] Status code 400](https://discord.com/channels/1186424376300679209/1441197468174782577) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.