Add voice calls to any website using a single script tag
Works with any static HTML site, including Netlify, Vercel, GitHub Pages, custom servers, and static site generators (Jekyll, Hugo, Eleventy, etc.).
Sign up at mediasfu.com to get a free widget key.
Add this to the <head> or end of <body>:
<script src="https://cdn.mediasfu.com/widget.js"></script>
Place this anywhere in your HTML where you want the widget to appear:
<mediasfu-widget
widget-key="YOUR_WIDGET_KEY"
widget-type="click-to-call">
</mediasfu-widget>
Push your changes. The widget appears on your live site.
<!DOCTYPE html>
<html>
<head>
<title>My Site with Calls</title>
</head>
<body>
<h1>Welcome!</h1>
<p>Talk to our team anytime.</p>
<script src="https://cdn.mediasfu.com/widget.js"></script>
<mediasfu-widget
widget-key="YOUR_WIDGET_KEY"
widget-type="click-to-call"
button-text="Start Call">
</mediasfu-widget>
</body>
</html>
<mediasfu-widget
widget-key="YOUR_WIDGET_KEY"
widget-type="click-to-call"
button-text="Call Now"
position="bottom-right">
</mediasfu-widget>
<mediasfu-widget
widget-key="YOUR_WIDGET_KEY"
widget-type="ai-agent">
</mediasfu-widget>
<mediasfu-widget
widget-key="YOUR_WIDGET_KEY"
widget-type="meeting-join">
</mediasfu-widget>
<mediasfu-widget
widget-key="YOUR_WIDGET_KEY"
widget-type="calls"
width="400px"
height="600px">
</mediasfu-widget>
<mediasfu-widget
widget-key="YOUR_WIDGET_KEY"
widget-type="web-agent-embed"
width="100%"
height="600px">
</mediasfu-widget>
<mediasfu-widget
widget-key="YOUR_WIDGET_KEY"
widget-type="web-agent-dashboard"
width="100%"
height="700px">
</mediasfu-widget>
| Attribute | Values | Example |
|---|---|---|
widget-key |
Your MediaSFU ID | wk_abc123xyz |
widget-type |
click-to-call, ai-agent, meeting-join, calls, web-agent-embed, web-agent-dashboard | click-to-call |
button-text |
Any text | Talk to Us |
position |
bottom-right, bottom-left, top-right, top-left | bottom-left |
theme |
light, dark | dark |
width |
CSS width | 100%, 400px |
height |
CSS height | 600px, auto |
Add the HTML in your template files exactly as shown above. The script will load once and work across all pages.
Just push your HTML with the script tag. It works automatically. No build configuration needed.
If using static export, add the widget in your HTML. For dynamic Next.js, use the React wrapper instead (see our React guide).
<script> tag is present and loads from cdn.mediasfu.comwk_)https://cdn.mediasfu.com/widget.js in your browser