var vapiInstance = null; const assistant = "17ece91c-3b68-4ffa-b232-ff2113f0eb0b"; // Your assistant ID const apiKey = "d8c507f3-7d92-4a99-bcf2-57e377142201"; // Your Public key from Dashboard.
const buttonConfig = { position: "top", offset: "220px", width: "325px", idle: { color: Gold, type: "pill", title: "Have a quick question?", subtitle: "Tap Mic & Speak with Agent", icon: https://storage.googleapis.com/msgsndr/b92wp4TZaoufY6rPL6SD/media/66e54b5849587190c2d342f8.png, }, loading: { color: Gold, type: "pill", title: "Connecting...", subtitle: "Please wait", icon: https://unpkg.com/lucide-static@0.321.0/icons/loader-2.svg, }, active: { color: Purple, type: "pill", title: "Call is in progress...", subtitle: "Tap Mic to End the call.", icon: https://storage.googleapis.com/msgsndr/b92wp4TZaoufY6rPL6SD/media/66e54b256f784d5d44e9c2ab.png, }, };
(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: apiKey, assistant: assistant, config: buttonConfig, }); }; })(document, "script");
storage.googleapis.com