Rb Surge
08/05/2025, 4:13 PMVapi Support Bot
08/05/2025, 4:14 PM"your_public_api_key" and "assistant_id" with your actual values:
html
<script>
var vapiInstance = null;
const assistant = "assistant_id"; // Your Assistant ID
const apiKey = "your_public_api_key"; // Your Public API Key
(function (d, t) {
var g = document.createElement(t), s = d.getElementsByTagName(t)[0];
g.src = "https://cdn.jsdelivr.net/gh/VapiAI/html-script-tag@latest/dist/assets/index.js";
g.defer = true; g.async = true; s.parentNode.insertBefore(g, s);
g.onload = function () {
vapiInstance = window.vapiSDK.run({ apiKey, assistant });
};
})(document, "script");
</script>
Try this exact snippet in your HTML and ensure your API key and Assistant ID are correct. If the voice still does not start, check your browser's microphone permissions and console for errors.
Source:
- [Vapi Web SDK Documentation](https://docs.vapi.ai/sdk/web)Rb Surge
08/05/2025, 4:21 PMRb Surge
08/05/2025, 4:28 PMHilal @ UnitZero AI
08/05/2025, 7:35 PMChiranjeet Mishra
08/06/2025, 11:37 PMRb Surge
08/07/2025, 9:09 PMRb Surge
08/07/2025, 9:46 PMChiranjeet Mishra
08/11/2025, 8:19 PM