https://retellai.com/?utm_source=discord&utm_medium=seo logo
I pulled an imported file from retell and trying t...
# ❓・ai-evy-support
d
@AI Evy I pulled an imported file from retell and trying to import it again and it doesnt work. this is the file, can you please tell me why i am getting an error when trying to import it https://cdn.discordapp.com/attachments/1302816169367044149/1420200328069906522/Conversation_Flow_-_Hotel_Template.json?ex=68d48820&is=68d336a0&hm=e8a217507f6af61b4069e12fe9ecd96982f15accd6807877b3aabae32f9b4d30&
a
Thanks for tagging me @dazzling_raccoon_24105. I'll look through relevant sources and get back to you shortly.
### Answer Based on available information, a known issue occurs when importing agent configurations if any tool (such as "Wait") in your JSON file has parameters that are not formatted as an object. The error message "Error in tool Wait: Parameters must be object" suggests this may be the cause. Review your file and ensure that any section using the "Wait" tool has its settings in the correct object format. Adjusting this should resolve the import error [(1) ]() .
​ To learn more, see the sources I considered: [[1] Import Option does not work for outbound agents](https://discord.com/channels/1186424376300679209/1385302044956426451) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
d
@AI Evy its an error 400 if that helps you with solving my error
a
Thanks for the follow-up, @dazzling_raccoon_24105. I'll get back to you soon.
### Answer A 400 error when importing a file into Retell AI can be caused by issues such as invalid formatting in your configuration or prompt tree file. According to discussions, this error is often related to invalid schema definitions, especially when creating or importing custom functions or prompt trees. For example, if your custom function's parameters are not defined as a top-level object, it can trigger a 400 error. Make sure your parameters follow the schema:
Copy code
json
{
  "type": "object",
  "properties": {
    "city": {
      "type": "string",
      "description": "City to look up."
    },
    "units": {
      "type": "string",
      "enum": ["metric", "imperial"]
    }
  },
  "required": ["city"]
}
[(1) ]() Additionally, clearing your browser cache and retrying has helped some users, but if the file's schema is invalid, correcting the JSON structure as shown above is necessary [(2) ]() , [(1) ]() .
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] 400 error when creating new Custom functions in multi-state agents.](https://discord.com/channels/1186424376300679209/1389298560268374149) [[2] 400 error](https://discord.com/channels/1186424376300679209/1379119377760260127) ​
2 Views