https://retellai.com/?utm_source=discord&utm_medium=seo logo
how can i batch test thousands of call simulations...
# ❓・ai-evy-support
k
@AI Evy how can i batch test thousands of call simulations using the apis?
a
Thanks for tagging me @kkamalva. I'll look through relevant sources and get back to you shortly.
The batch testing process involves several steps [(1) ]() : 1. Navigate to the Simulation Tab 2. Set up your test cases - you can use existing test cases or create new ones 3. Define the parameters 4. Execute the tests by choosing the test cases you want to run from your test suite Retell AI's batch testing capabilities enable rapid evaluation of AI agent performance across multiple scenarios simultaneously [(2) ]() . This testing process helps agents improve quickly by finding performance issues and areas to refine with many different inputs . The batch call API allows you to execute thousands of calls without delay and minimize errors caused by manual entry or oversight [(4) ]() .
### Answer To batch test thousands of call simulations using the APIs, you can use Retell AI's batch testing capabilities [(1) ]() [(2) ]() . The batch testing feature allows you to run multiple test cases simultaneously, which significantly saves time and effort when testing your agent [(1) ]() . For API-based batch testing, you can use the Create Batch Call endpoint [(3) ]() . Here's the code example:
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
 apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const batchCallResponse = await client.batchCall.createBatchCall({
 from_number: '+14157774444',
 tasks: [{ to_number: '+12137774445' }],
}) ;
console.log(batchCallResponse.batch_call_id) ;
​ To learn more, see the sources I considered: [[1] Batch test your agent](https://docs.retellai.com/test/batch-test-simulation) [[2] Retell AI Introduces Simulation and Batch Testing for AI Agents | Retell AI](https://www.retellai.com/blog/retell-ai-introduces-simulation-and-batch-testing-for-ai-agents) [[3] Create Batch Call](https://docs.retellai.com/api-references/create-batch-call) [[4] Streamline Calls with Retell AI’s Batch Dialer | Retell AI](https://www.retellai.com/blog/boost-operation-efficiency-with-retell-ais-batch-calling) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.