Raj
08/11/2025, 5:25 PMconsole.log("item.input", item.input)
const createdTest = await vapi.testSuiteTests.testSuiteTestControllerCreate(testSuite.id, {
scorers: [{ type: "ai", rubric: scorer }],
type: "chat",
script: item.input,
numAttempts: 1,
name: `${experimentName} - Script ${i + 1}`,
})
I can see that the item.input is unique every time it's created and it shows the different scripts on the dashboard as well. But the transcript shows the same test user script for every single one.
Is there a caching bug or creation bug occuring on VAPIs endpoint or am I invoking this incorrectly?Raj
08/11/2025, 5:46 PMKings_big💫
08/11/2025, 5:52 PMRaj
08/11/2025, 5:58 PMKings_big💫
08/11/2025, 6:22 PMRaj
08/11/2025, 7:45 PMconst assistantToUse = await vapi.assistants.create({
name: realName, <- had to make this unique from any existing test suites; I was trying to re-use an existing one.
...assistant,
})
const testSuiteParams: Vapi.CreateTestSuiteDto = {
name: realName,
targetPlan: {
assistantId: assistantToUse.id,
phoneNumberId: "<REDACTED>",
},
}Raj
08/11/2025, 7:51 PMChiranjeet Mishra
08/13/2025, 6:08 AM