Elastic
04/30/2025, 1:52 PMVapi Support Bot
04/30/2025, 1:54 PMjavascript
window.vapiSDK?.run({
apiKey: "YOUR_API_KEY",
assistant: "YOUR_ASSISTANT_ID",
config: {
position: "fixed",
style: {
position: "fixed",
bottom: "20px", // Adjust these values
right: "20px", // to position as needed
zIndex: 2147483647,
}
}
});
If this doesn't work, you might need to use CSS to target the .vapi-btn class with !important to override the default styles.
Sources:
- [Discord message about SDK configuration](https://discord.com/channels/1211482211119796234/1333973419485823037)
- [Vapi documentation on voice widget](https://docs.vapi.ai/examples/voice-widget)Elastic
04/30/2025, 1:57 PMPigeon
04/30/2025, 2:20 PMElastic
04/30/2025, 6:43 PM