https://retellai.com/?utm_source=discord&utm_medium=seo logo
help me fix this
# ❓・ai-evy-support
a
Thanks for tagging me @smellygrandpa123. I'll look through relevant sources and get back to you shortly.
### Answer I need more context to help you effectively. Could you please provide: 1. What specific issue are you experiencing with Retell AI? 2. Any error messages you're seeing 3. What you were trying to accomplish when the issue occurred This will help me provide you with the most relevant troubleshooting steps. If you're experiencing issues with outbound calls, phone number configuration, or agent transfers, I can guide you through debugging based on Retell AI's documentation.
message has been deleted
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
s
when i tried to upload a json file it showed me this
@AI Evy when i tried to upload a json file it showed me this
a
Thanks for the follow-up, @smellygrandpa123. I'll get back to you soon.
### Answer I can help you troubleshoot your JSON file upload issue, but I need to see the error message you're receiving. Could you please share: 1. The specific error message that appeared when you tried to upload the JSON file 2. Where in Retell AI you were trying to upload it (e.g., custom function parameters, agent configuration, etc.) 3. A sample of the JSON structure you're trying to upload (if possible) If you're working with custom function parameters, a common issue is missing the required
"type": "object"
at the top level of the JSON schema [(1) ]() [(2) ]() . For example, a valid parameter schema should look like this:
Copy code
json
{
 "type": "object",
 "properties": {
 "city": {
 "type": "string",
 "description": "The city of the weather"
 }
 },
 "required": [
 "city"
 ]
}
[(1) ]() If you're still having trouble after checking this, please share the error message and I can provide more specific guidance.
​ To learn more, see the sources I considered: [[1] Integrate any system with custom function](https://docs.retellai.com/build/single-multi-prompt/custom-function) [[2] Custom Function](https://docs.retellai.com/build/conversation-flow/custom-function) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
Thanks for the follow-up, @smellygrandpa123. I'll get back to you soon.
a
### Answer I can see you're trying to import a JSON file as a call agent. However, I don't see the actual file or error message you're encountering in your latest message. Based on a similar issue reported in the community, when importing an outbound agent configuration, users have encountered errors like "Error Failed to import agent configuration Error in tool Wait: Parameters must be object" [(1) ]() . The resolution typically involves reviewing the JSON file and ensuring that any tool sections (like the "Wait" tool) have their parameters formatted as proper objects . To help you troubleshoot effectively, please share: 1. The complete error message you're seeing when trying to import 2. The JSON file content (or at least the relevant sections causing the error) 3. Whether you're importing an inbound or outbound agent Once I can see the actual error and JSON structure, I can provide specific guidance on what needs to be corrected. Common issues include: - Tool parameters not being formatted as objects - Missing required fields in the agent configuration - Incorrect structure in the
response_engine
section [(2) ]() [(3) ]() Please attach or paste the JSON file and error message so I can help you resolve this.
​ To learn more, see the sources I considered: [[1] Import Option does not work for outbound agents](https://discord.com/channels/1186424376300679209/1385302044956426451) [[2] Create Agent](https://docs.retellai.com/api-references/create-agent) [[3] Create Agent](https://docs.retellai.com/api-references/create-agent) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
s
Hi! Here’s the information you asked for: Complete Error Message: “Failed to import agent configuration. Cannot read properties of undefined (reading 'type')” JSON File Content: I was trying to import this JSON file for my phone agent: File name: black_forest_phone_agent.json Purpose: Phone agent for Black Forest Barbershop that answers questions, books appointments, shares hours, pricing, and collects the caller’s name and phone number. (If you’d like, I can share the full JSON file content here for review.) Inbound or Outbound Agent: It’s an inbound phone agent — it answers calls, not an outbound campaign. Could you please check why the importer rejects this JSON and confirm whether my workspace supports JSON imports for inbound Conversation Flow Agents? Thanks so much!
@AI Evy Hi! Here’s the information you asked for: Complete Error Message: “Failed to import agent configuration. Cannot read properties of undefined (reading 'type')” JSON File Content: I was trying to import this JSON file for my phone agent: File name: black_forest_phone_agent.json Purpose: Phone agent for Black Forest Barbershop that answers questions, books appointments, shares hours, pricing, and collects the caller’s name and phone number. (If you’d like, I can share the full JSON file content here for review.) Inbound or Outbound Agent: It’s an inbound phone agent — it answers calls, not an outbound campaign. Could you please check why the importer rejects this JSON and confirm whether my workspace supports JSON imports for inbound Conversation Flow Agents? Thanks so much!
a
Thanks for the follow-up, @smellygrandpa123. I'll get back to you soon.
### Answer The error "Cannot read properties of undefined (reading 'type') " indicates that your JSON file has a structural issue where the importer is trying to access a
type
property that doesn't exist in the expected location [(1) ]() . Based on a similar community report, when importing agent configurations, the most common issue involves tool parameters not being properly formatted as objects . The error message "Error in tool Wait: Parameters must be object" was resolved by reviewing the JSON file and ensuring all tool sections had their settings written in the correct format . To troubleshoot your specific error, I need to see the actual JSON content. Please share the full JSON file or at least the sections containing: 1. The
model_choice
object - which should have a
type
field [(2) ]() 2. Any
nodes
array - where each node should have a
type
field 3. Any
tools
or function definitions - where parameters should be objects Expected structure for a Conversation Flow agent includes: -
start_speaker
(either "user" or "agent") -
model_choice
with a
type
field (e.g., "cascading") -
nodes
array where each node has an
id
,
type
, and
instruction
- If using tools, each tool should have a
type
field The error suggests that somewhere in your JSON, there's a missing or incorrectly nested
type
property. Once you share the JSON content, I can identify the exact location of the structural issue. **
​ To learn more, see the sources I considered: [[1] Import Option does not work for outbound agents](https://discord.com/channels/1186424376300679209/1385302044956426451) [[2] 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.
s
@AI Evy Hi! I’m importing an inbound phone agent for Black Forest Barbershop. Error shown: Failed to import agent configuration. Cannot read properties of undefined (reading 'type') Here’s a shortened example of my JSON (only key parts): { "name": "Black Forest Barbershop - Phone Agent", "type": "conversation_flow_agent", "channel": "phone", "language": "en-US", "entry_node": "welcome", "nodes": [ { "id": "welcome", "type": "message", "name": "Welcome Node", "message": "Hey there! Thanks for calling Black Forest Barbershop — Edmonton’s go-to spot for clean fades and beard trims.", "transitions": [ {"type": "keyword", "name": "Book", "keywords": ["book","appointment"], "target": "booking"}, {"type": "default", "name": "Fallback", "target": "fallback"} ] }, { "id": "booking", "type": "message", "name": "Booking Node", "message": "Sure thing! What service would you like to book — a fade or haircut with beard trim?", "transitions": [ {"type": "keyword", "name": "Has date/time", "keywords": ["today","tomorrow"], "target": "collect_contact"} ] }, { "id": "collect_contact", "type": "form", "name": "Collect Name & Phone", "fields": [ {"name": "full_name", "prompt": "What’s your full name?"}, {"name": "phone", "prompt": "What’s the best number to reach you?"} ] } ] } Could you confirm which "type" field or structure the importer expects (e.g., model_choice, instruction, or node schema)? This will help me match the exact JSON format for the Conversation Flow Agent importer. Thanks so much!
a
Thanks for the follow-up, @smellygrandpa123. I'll get back to you soon.
Your specific issues: -
"type": "message"
should be
"type": "conversation"
[(3) ]() [(1) ]() -
"message"
field should be inside
"instruction"
object with
"type": "prompt"
or
"type": "static"
[(3) ]() -
"transitions"
should be
"edges"
with
"transition_condition"
and
"destination_node_id"
[(1) ]() - Missing required
"start_speaker"
and
"model_choice"
at the root level I recommend creating your agent through the Retell AI Dashboard first, then exporting it to see the correct JSON structure. The Dashboard provides templates that follow the proper schema [(4) ]() .
### Answer I've found the issue with your JSON structure. Your format doesn't match Retell AI's expected Conversation Flow schema. The problem: Your JSON uses custom fields like
"entry_node"
,
"transitions"
,
"message"
, and
"form"
that aren't part of Retell AI's Conversation Flow structure [(1) ]() [(2) ]() . Required structure for Retell AI Conversation Flow: Your JSON needs these key fields : 1.
start_speaker
- Either
"user"
or
"agent"
[(1) ]() 2.
model_choice
- Object with
type
and
model
fields 3.
nodes
- Array where each node must have : -
id
(string) -
type
(valid types:
"conversation"
,
"function"
,
"logic"
, etc.) [(3) ]() -
instruction
(object with
type
and content) -
edges
(array for transitions between nodes) [(1) ]() Here's the correct format:
Copy code
json
{
  "start_speaker": "agent",
  "model_choice": {
    "type": "cascading",
    "model": "gpt-4o"
  },
  "nodes": [
    {
      "id": "welcome",
      "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": "booking"
        }
      ]
    }
  ]
}
​ To learn more, see the sources I considered: [[1] Create Conversation Flow](https://docs.retellai.com/api-references/create-conversation-flow) [[2] Get Conversation Flow](https://docs.retellai.com/api-references/get-conversation-flow) [[3] Conversation Node](https://docs.retellai.com/build/conversation-flow/conversation-node) [[4] Conversation Flow Overview](https://docs.retellai.com/build/conversation-flow/overview) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
a
Thanks for the follow-up, @smellygrandpa123. I'll get back to you soon.
### Answer I need to see the updated JSON file you're referring to in order to validate whether it follows the Retell AI Conversation Flow guidelines. However, based on the previous discussion, here's what your JSON file must include to be valid for Retell AI import [(1) ]() [(2) ]() : Required root-level fields: -
start_speaker
- Must be either
"user"
or
"agent"
[(1) ]() -
model_choice
- Object containing
type
and
model
fields -
nodes
- Array of node objects Each node must have: -
id
- Unique string identifier -
type
- Valid node type (e.g.,
"conversation"
,
"function"
,
"logic"
) [(1) ]() [(3) ]() -
instruction
- Object with
type
field (either
"prompt"
or
"static_text"
) [(1) ]() -
edges
- Array defining transitions to other nodes (optional for some nodes) Edge structure (if present) : -
id
- Unique edge identifier -
transition_condition
- Object with
type
and condition details -
destination_node_id
- Target node ID Example of correct structure:
Copy code
json
{
  "start_speaker": "agent",
  "model_choice": {
    "type": "cascading",
    "model": "gpt-4o"
  },
  "nodes": [
    {
      "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"
        }
      ]
    }
  ]
}
Please share your updated JSON file so I can verify it matches this structure exactly.
​ To learn more, see the sources I considered: [[1] Create Conversation Flow](https://docs.retellai.com/api-references/create-conversation-flow) [[2] Get Conversation Flow](https://docs.retellai.com/api-references/get-conversation-flow) [[3] Node Overview](https://docs.retellai.com/build/conversation-flow/node) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
a
Thanks for the follow-up, @smellygrandpa123. I'll get back to you soon.
### Answer I need to see the actual JSON file content you're referring to in order to validate it against Retell AI's Conversation Flow requirements. However, I can confirm the mandatory structure your JSON must follow for successful import [(1) ]() [(2) ]() : Required at root level: -
start_speaker
- Must be
"user"
or
"agent"
[(1) ]() -
model_choice
- Object with
type
and
model
fields [(1) ]() [(2) ]() -
nodes
- Array of node objects Each node requires: -
id
- Unique string identifier -
type
- Valid node type (e.g.,
"conversation"
,
"function"
,
"logic"
) -
instruction
- Object containing a
type
field -
edges
- Array for transitions (when applicable) Edge structure (when present) : -
id
- Unique edge identifier -
transition_condition
- Object with
type
and condition details -
destination_node_id
- Target node ID Please paste or attach your updated JSON file so I can verify: 1. All required fields are present 2. The structure matches Retell AI's schema exactly 3. Node types and instruction formats are correct 4. Edge transitions are properly formatted Without seeing the actual file, I cannot confirm whether it follows all guidelines.
​ To learn more, see the sources I considered: [[1] Update Conversation Flow](https://docs.retellai.com/api-references/update-conversation-flow) [[2] Get Conversation Flow](https://docs.retellai.com/api-references/get-conversation-flow) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
a
Thanks for the follow-up, @smellygrandpa123. I'll get back to you soon.
### Answer I still need to see your actual JSON file content to validate it. You mentioned "here is the updated file" but I don't see any JSON content in your latest message. Please paste the complete JSON file (or attach it) so I can verify: 1. Root-level required fields are present [(1) ]() [(2) ]() : -
start_speaker
(must be
"user"
or
"agent"
) -
model_choice
(with
type
and
model
fields) -
nodes
(array of node objects) 2. Each node has the correct structure [(1) ]() [(3) ]() : -
id
(unique identifier) -
type
(valid types like
"conversation"
) -
instruction
(with
type
field - either
"prompt"
or
"static"
) -
edges
(for transitions, when applicable) 3. Edges are properly formatted [(1) ]() : -
id
-
transition_condition
(with
type
and condition details) -
destination_node_id
Without seeing the actual JSON content, I cannot confirm whether your file follows all Retell AI guidelines. Please share the file so I can provide specific validation feedback. **
​ To learn more, see the sources I considered: [[1] Create Conversation Flow](https://docs.retellai.com/api-references/create-conversation-flow) [[2] List Conversation Flows](https://docs.retellai.com/api-references/list-conversation-flows) [[3] Get Conversation Flow](https://docs.retellai.com/api-references/get-conversation-flow) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
a
Thanks for the follow-up, @smellygrandpa123. I'll get back to you soon.
### Answer I still need you to share the actual JSON file content so I can validate it against Retell AI's Conversation Flow schema. You've mentioned "here is the updated file" multiple times, but I haven't received any JSON content to review. Please paste the complete JSON (or attach it as a file) so I can verify: What I'll check: 1. Root-level fields [(1) ]() [(2) ]() : -
start_speaker
(must be
"user"
or
"agent"
) -
model_choice
(requires
type
and
model
) -
nodes
(array of node objects) 2. Node structure [(1) ]() [(3) ]() : - Each node needs
id
,
type
,
instruction
, and
edges
(when applicable) -
instruction
must have a
type
field (
"prompt"
or
"static"
) 3. Edge formatting [(1) ]() : - Each edge needs
id
,
transition_condition
, and
destination_node_id
Without seeing your JSON, I can't confirm whether it follows Retell AI's guidelines. Please share the file content so I can provide specific validation.
​ To learn more, see the sources I considered: [[1] Create Conversation Flow](https://docs.retellai.com/api-references/create-conversation-flow) [[2] List Conversation Flows](https://docs.retellai.com/api-references/list-conversation-flows) [[3] Get Conversation Flow](https://docs.retellai.com/api-references/get-conversation-flow) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
s
@AI Evy Hi! I tested imports with three files: a minimal 2-node example that matches your schema (start → book_appointment), a slightly larger flow, and my full barbershop agent. Each fails with: “Failed to import agent configuration. Cannot read properties of undefined (reading 'type')”. Could you confirm if JSON import is enabled for Conversation Flow Agents on my workspace? If yes, please provide a sample JSON that successfully imports in my account, or the exact JSON schema version/keys you require (e.g., static_text vs static, transition_condition shape). I’m ready to upload as soon as it’s enabled.
a
Thanks for the follow-up, @smellygrandpa123. I'll get back to you soon.
### Answer Based on the persistent "Cannot read properties of undefined (reading 'type') " error across multiple JSON files, and the fact that you're trying to import (not create via API) a Conversation Flow agent through the Dashboard, this suggests a potential workspace configuration or feature availability issue. Here's what I can confirm from the documentation: The API references show the correct JSON schema for creating Conversation Flow agents [(1) ]() [(2) ]() . However, the documentation I have access to focuses on API creation rather than Dashboard JSON import functionality. Working JSON structure (from API documentation) :
Copy code
json
{
  "start_speaker": "agent",
  "model_choice": {
    "type": "cascading",
    "model": "gpt-4o"
  },
  "nodes": [
    {
      "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"
        }
      ]
    }
  ]
}
[(1) ]() Critical fields that must have a
type
property:
-
model_choice
requires a
type
field [(1) ]() [(2) ]() - Each
node
requires a
type
field - Each
instruction
requires a
type
field (either
"prompt"
or
"static"
) [(1) ]() - Each
transition_condition
requires a
type
field [(3) ]() Next steps: Since your error persists even with minimal examples, I recommend: 1. Create a simple agent through the Dashboard UI first, then export it to see the exact JSON format your workspace expects 2. Contact Retell AI support to confirm JSON import is enabled for Conversation Flow agents in your workspace Visit [Contact Sales]() or [) for direct assistance with workspace-specific features. The documentation I have access to covers API-based creation extensively, but doesn't detail Dashboard import requirements or workspace-level feature flags that might affect JSON import functionality.
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] Get Conversation Flow](https://docs.retellai.com/api-references/get-conversation-flow) [[2] List Conversation Flows](https://docs.retellai.com/api-references/list-conversation-flows) [[3] Step 3: Add transition conditions](https://docs.retellai.com/build/conversation-flow/transition-condition) ​
s
@AI Evy “Thanks! Could you please enable JSON import for Conversation Flow agents in my workspace, or advise when it’ll be available? I currently only have the dashboard interface.”
a
Thanks for the follow-up, @smellygrandpa123. I'll get back to you soon.
### Answer I cannot enable features in your workspace - I'm an AI assistant, not a Retell AI administrator. However, I can confirm that JSON import/export functionality for Conversation Flow agents does exist in Retell AI [(1) ]() . According to a community discussion, users have successfully exported and imported Conversation Flow agents using JSON . One user confirmed: "Yes, you can export and import a conversation flow" . To access this feature: The Dashboard should have import/export options for Conversation Flow agents. If you're not seeing these options, this could indicate: 1. A workspace-specific configuration issue 2. A UI element you haven't located yet 3. A feature that needs to be enabled for your account I recommend: 1. Check the Dashboard carefully for import/export buttons in your Conversation Flow agent section 2. Try creating a simple agent first, then look for export options to confirm the feature is visible 3. Contact Retell AI support directly for workspace-specific assistance: - Visit [Contact Sales]() - Visit [) The persistent "Cannot read properties of undefined (reading 'type') " error you're experiencing, even with correctly formatted JSON, suggests this might be a workspace configuration issue rather than a JSON formatting problem [(2) ]() . **
​ To learn more, see the sources I considered: [[1] Conversation Flow: Import / Upload JSON](https://discord.com/channels/1186424376300679209/1394595851942367252) [[2] How to import an agent using .json so it is not rejected for error](https://discord.com/channels/1186424376300679209/1361987361042599978) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.