- The web chat widget (text message bubble).
- Phone calls to a Twilio or Ringover number.
- Voice campaigns (
POST /functions/v1/notify/voice).
How to embed it
Paste this before</body> on the pages where you want the control (or in your main index.html for the whole site). mode="voice" is what loads voice instead of text chat:
Copy
customer and widget from the widget settings in Lovi (same values as the chat script). There is no public npm package and no public JavaScript API (window.startVoice, and so on): the visitor taps the control.
What the visitor sees
- The voice control appears on the page.
- On tap (it must be a real click: audio does not start on its own), the browser asks for the microphone.
- During the call they hear the agent and can hang up.
- After hang-up they can leave 👍/👎 feedback. The control returns to idle.
localhost. The microphone does not work on plain HTTP.
Appearance
Colours, position, conversation animation, background image, and extra CSS come from Lovi when the widget loads. They are not set in your HTML, exceptlanguage-lovi and dom.
Technical requirements
- Modern browsers (not Internet Explorer 11).
- Microphone permission.
- Audio starts on the user click (browser autoplay policy).
- The page must be able to call
https://widget.lovi.ai,https://cloud.lovi.ai, andhttps://api.elevenlabs.io.
Troubleshooting
Related
- Web Widget Configuration — text chat.
- Phone numbers and voice AI — calls to your company number.
- Voice widget API — how the script loads configuration.
- Voice notifications API — outbound phone campaigns.
