Website Widget

Last Updated: 2026-05-24

The Mylla website widget lets visitors talk to your AI agent directly from your website — no phone call required. A floating button appears on your site; when a visitor clicks it, a voice conversation starts in their browser.

Who should use this

  • Businesses with a website where visitors might want to ask a quick question
  • Request and customer capture on landing pages (alternative to contact forms)
  • Replacing or augmenting a traditional live-chat widget

Enabling the widget

  1. Open the agent you want to embed
  2. Scroll to the Website Widget card
  3. Add the websites where the widget is allowed to run
  4. Adjust the widget style if you want a different label, color, placement, greeting, or panel size
  5. Toggle Enable widget on
  6. Copy the <script> snippet shown

Allowed websites are saved as exact origins, such as https://yourbusiness.com and https://www.yourbusiness.com. Add http://localhost:3000 only when you are testing locally.

Embedding on your site

Paste the snippet anywhere before </body> on your site:

<script
  data-agent-id="YOUR_AGENT_ID"
  src="https://app.mylla.ai/widget/embed.js"
  async>
</script>

The snippet is already filled in with your agent ID — you just copy and paste.

Customizing the widget

The Website Widget card lets you set:

  • Primary and accent colors
  • Launcher label
  • Greeting override
  • Bottom-left or bottom-right placement
  • Compact, standard, or large panel size

The script tag does not change when you update these settings. Save the widget style in Mylla, then refresh your website to see the latest version.

Per-platform instructions

PlatformWhere to paste
WebflowProject Settings → Custom Code → Footer Code
WixSettings → Custom Code → Add Custom Code (place in Body — end)
SquarespaceSettings → Advanced → Code Injection → Footer
WordPressAppearance → Theme File Editor → footer.php, before </body> (or use a header/footer plugin)
ShopifyOnline Store → Themes → Edit Code → theme.liquid, before </body>
FramerSite Settings → General → Custom Code → End of <body> tag
Custom / Next.jsAdd the <script async src="..."> tag inside <body> in your layout

How it works

  1. A visitor clicks the floating Mylla button
  2. Their browser requests microphone permission
  3. A voice conversation with your AI agent begins — same agent that answers phone calls
  4. The conversation is logged in Calls with source Widget, and customer/request details are captured just like a phone call

Requirements

  • Site must be served over HTTPS (microphone access requires a secure context)
  • The website origin must be listed in the agent's Allowed websites
  • Visitor must approve microphone permission in their browser
  • Modern browser (Chrome, Safari, Edge, Firefox — last 2 versions)

Content Security Policy (CSP)

If your site has a strict CSP, allow these sources:

script-src  https://app.mylla.ai
connect-src https://app.mylla.ai wss://*.livekit.cloud
media-src   blob:

Testing the widget

  1. Open your site in an incognito window (so you're not logged into Mylla)
  2. Click the floating Mylla button
  3. Grant microphone permission
  4. Say "hello" — the agent should respond with your configured greeting
  5. Check Calls in the dashboard — your test should appear immediately

Before launch, test the widget on the same device and browser your customers are most likely to use.

Disabling the widget

  1. Open the agent
  2. Toggle Enable widget off on the Website Widget card

The script tag can stay on your site — once disabled, it becomes a no-op. Remove the tag when you're sure you won't re-enable it.

To pause the widget on one website but keep it active elsewhere, remove that website from Allowed websites and save.

Billing

Widget conversations count toward your monthly minutes the same way phone calls do. See Billing.

Permissions

ActionSuper AdminAdminMember
Enable / disable widget
Copy embed snippetYesYesNo
Configure allowed websitesYesYesNo
Customize widget styleYesYesNo
Was this page helpful?