Prerequisites
- An Oshara account — sign up at app.oshara.ai
- An agent slug — the URL-friendly identifier for the AI character you want to embed (e.g.
support-bot) - The domain you’re embedding on must be added to the character’s Allowed Origins list in the dashboard
Step 1 — Paste the script tag
Add this snippet before the closing</body> tag of any HTML page:
YOUR_AGENT_SLUG with your character’s slug. That’s it — a floating button will appear in the bottom-right corner.
Step 2 — Verify the call works
- Open the page in a browser.
- Click the floating button to open the voice panel.
- Accept microphone permission when prompted.
- Click Start Call — you should hear the agent’s greeting within a few seconds.
Minimal embed (copy-paste)
Full embed with all options
Auto-open the panel
Setdata-open-chat="true" to expand the voice panel as soon as the page loads — useful for dedicated landing pages.
Window-global alternative
If your site uses a tag manager or dynamic script injection, set window globals before loading the script:Allowed Origins
The widget will be blocked if the embedding domain isn’t whitelisted on the character. Add origins in the dashboard under Characters → [your character] → Allowed Origins. Entries are URL prefixes, e.g.:Next steps
- Configuration reference — all
data-*attributes - Appearance & theming — branding, colors, panel size
- Audio settings — noise cancellation, mic/speaker picker
- Forms — agent-driven form rendering
