https://retellai.com/?utm_source=discord&utm_medium=seo logo
is ther a tempalte for the JSON file to upload for...
# ❓・ai-evy-support
f
@AI Evy is ther a tempalte for the JSON file to upload for simulation test cases?
a
Thanks for tagging me @FullThrottleFu. I'll look through relevant sources and get back to you shortly.
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
### Answer --- Based on the available documentation, there isn't a specific JSON template provided for uploading simulation test cases. [(1) ]() The changelog mentions that you can import/export test cases as JSON for simulation test case management. [(2) ]() For creating test cases, the documentation shows you can: 1. Create them manually via "AI Simulated Chat" in the Simulation Tab [(3) ]() 2. Use the SDK or REST API programmatically [(4) ]() The recommended format for defining a user prompt in a test case is: [(3) ]()
Copy code
///## Identity
Your name is Mike.
Your date of birth is June 10, 1999.
Your order number is 7891273.

///## Goal
Your primary objective is to return the package you received and get a refund.

///## Personality
You are a patient customer. However, if the conversation becomes too long or complicated, you will show signs of impatience. If the issue remains unresolved, you may become frustrated and angry.
If you need to bulk import test cases, you might try using the Create Batch Test API endpoint, which accepts an array of
test_case_definition_ids
. [(4) ]() Check out these potentially useful sources for more details: - [Batch test your agent]() - [Automatically test your agent]() - [Create Batch Test API]() Would you like me to provide a general answer about what the JSON structure might look like based on my knowledge?
​ To learn more, see the sources I considered: [[1] Batch test your agent](https://docs.retellai.com/test/batch-test-simulation) [[2] Platform Changelogs | Retell AI](https://www.retellai.com/changelog) [[3] Automatically test your agent](https://docs.retellai.com/test/llm-simulation-testing) [[4] Create Batch Test](https://docs.retellai.com/api-references/create-batch-test) ​
f
@AI Evy yes please provide a general answer about what the JSON structure might look like based on your knowledge
a
Thanks for the follow-up, @FullThrottleFu. I'll get back to you soon.
### Answer Based on the test case format shown in the documentation, a general JSON structure for importing simulation test cases might look something like this:
Copy code
json
[
  {
    "name": "Return and Refund Test",
    "user_prompt": "///## Identity\nYour name is Mike.\nYour date of birth is June 10, 1999.\nYour order number is 7891273.\n\n///## Goal\nYour primary objective is to return the package you received and get a refund.\n\n///## Personality\nYou are a patient customer. However, if the conversation becomes too long or complicated, you will show signs of impatience."
  },
  {
    "name": "Appointment Booking Test",
    "user_prompt": "///## Identity\nYour name is Sarah.\n\n///## Goal\nYou want to schedule an appointment for next Tuesday.\n\n///## Personality\nYou are friendly and cooperative."
  }
]
Important caveats: - This is a general suggestion based on common patterns—the exact field names and structure are not explicitly documented in my sources - The
user_prompt
format using
///## Identity
,
///## Goal
, and
///## Personality
sections is the recommended structure from the documentation - I'd recommend exporting an existing test case first to see the exact JSON format Retell expects, then use that as your template The changelog confirms import/export of test cases as JSON is supported. [(1) ]() [(4) ]()
​ To learn more, see the sources I considered: [[1] Platform Changelogs | Retell AI](https://www.retellai.com/changelog) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.