RamonJ
06/04/2025, 10:15 PMVapi Support Bot
06/04/2025, 10:17 PMjs
import Vapi from '@vapi-ai/web';
const vapi = new Vapi('YOUR_PUBLIC_API_KEY');
document.getElementById('start-call').onclick = async () => {
await vapi.start('YOUR_ASSISTANT_ID');
};
Double-check that your assistant is published and your API key/assistant ID are correct. If you still get "ejected from meeting," verify your assistant's status in the dashboard and ensure your API key is valid.
Sources:
- [Vapi Web SDK Quickstart](https://docs.vapi.ai/quickstart/web)
- [Vapi Web SDK Documentation](https://docs.vapi.ai/sdk/web)Vapi Support Bot
06/05/2025, 12:07 AMRamonJ
06/05/2025, 12:07 AMVapi
06/05/2025, 8:20 PM