Shmoged
03/10/2026, 2:13 AMAI Evy
03/10/2026, 2:14 AMAI Evy
03/10/2026, 2:14 AMmodel_choice (object with model and type properties)
- nodes (array of node objects, each with id, type, and instruction properties)
- start_speaker (enum: "user" or "agent")
The error "cannot read properties of undefined (reading 'type') " suggests the import parser is trying to access a type property on an undefined object. This commonly occurs when:
1. **Node structure issues**: Each node must have a type field (e.g., "conversation", "function", etc.)
2. **Model choice configuration**: The model_choice object must include a type field (e.g., "cascading")
3. **Tool definitions**: If you have tools, each must have a type field (e.g., "custom")
To troubleshoot, verify that every node in your nodes array has a properly defined type field, and that your model_choice object includes both model and type properties .
If the issue persists after validation, I recommend reaching out to support through the [Documentation]() or [hiring a certified Retell partner]() for assistance with the specific JSON structure causing the error.AI Evy
03/10/2026, 2:14 AMAI Evy
03/10/2026, 2:14 AMShmoged
03/10/2026, 2:18 AMShmoged
03/10/2026, 2:20 AMAI Evy
03/10/2026, 2:20 AMAI Evy
03/10/2026, 2:21 AMmodel_choice - must include both model and type properties
- start_speaker - must be either "user" or "agent"
- nodes - array of node objects
For each node in your nodes array, ensure:
- id field is present
- type field is present (e.g., "conversation", "function", "extract_dynamic_variables", "end_call")
- instruction object with type and appropriate content
For function nodes specifically:
- Each edge must have a transition_condition with a type field
- Tools referenced must have a type field (e.g., "custom")
For your extract_dynamic_variables node:
- Ensure the node structure includes the required type field
Since you mentioned using Cal.com tools, verify each tool definition in your tools array has :
- type field (typically "custom")
- name field
- description field
The error suggests the parser is encountering an undefined object when trying to access its type property. Double-check that every object that should have a type field actually has one defined, particularly in your nodes array, model_choice object, and tools array .
If you've verified all these fields and the issue persists, reach out through the [Documentation]() or [hire a certified Retell partner]() for direct assistance with your specific JSON structure.AI Evy
03/10/2026, 2:21 AMAI Evy
03/10/2026, 2:21 AM