So[U]L
05/02/2025, 3:20 PMVapi Support Bot
05/02/2025, 3:22 PMSo[U]L
05/02/2025, 3:28 PMVapi Support Bot
05/02/2025, 3:30 PMassistantId in your API call. Try adding the assistantId parameter to your workflow call:
javascript
// Example API call to start a workflow call
const response = await vapi.calls.create({
workflow: {
id: "your-workflow-id"
},
assistantId: "your-assistant-id", // Add this line
to: "+1234567890"
});
The "Assistant not valid" error indicates this parameter is missing or incorrect.
Sources:
- [Discord discussion about Assistant not valid error](https://discord.com/channels/1211482211119796234/1336652401733668864)
- [Discord discussion about troubleshooting assistant configuration](https://discord.com/channels/1211482211119796234/1344225187939352586)Chiranjeet Mishra
05/02/2025, 9:26 PM