Install the widget
One snippet — chat and voice, in your customers' language.
Embed code
<script src="https://pub-d34db5f4b686455e8a40dfc61dfe0c0e.r2.dev/mongpt-widget.iife.js"></script>
<script>
MonGPT.init({ tenantId: 'YOUR_TENANT_ID' });
</script>Changes made in Widget and Bot settings apply automatically — no need to re-embed.
Languages — automatic
You don't need a different snippet per language. On a multilingual site (e.g.example.com/jp orexample.com/?lang=jp), the widget detects the page language from <html lang>, the URL path, a ?lang=/?locale=query, or the browser — and greets & replies in it, limited to the languages you allow under Bot settings → Language.
If your site uses a non-standard query key, tell the widget which one:langParam: 'ui_lang'.
To force one language on a specific page instead, pass language:
MonGPT.init({ tenantId: 'YOUR_TENANT_ID', language: 'ja-JP' });Codes: en-IN · ja-JP · zh-CN · ms-MY · id-ID · th-TH · vi-VN · fil-PH · ar-AE · hi-IN · ta-IN and more.
Inline embed (iframe)
<iframe src="https://mongpt-api.mongpt.workers.dev/embed/YOUR_TENANT_ID" width="100%" height="600" style="border:1px solid #eee;border-radius:12px" allow="microphone" title="Chat with us"></iframe>
Puts the chat directly inside a page (help center, contact page) instead of a floating bubble. Size it with the width/height attributes. An iframe can't read the host page's language, so on a translated page add ?language=ja-JP to the src.
Any website
- 1Copy the snippet above
- 2Paste it just before the closing
</body>tag - 3Reload — the launcher appears bottom-right
WordPress
- 1Appearance → Theme File Editor →
footer.php - 2Paste the snippet before
</body> - 3Or use any "insert headers & footers" plugin
Shopify
- 1Online Store → Themes → Edit code
- 2Open
layout/theme.liquid - 3Paste the snippet before
</body>and save
Wix / Squarespace
- 1Settings → Custom code (Wix) or Code injection (Squarespace)
- 2Add the snippet to the body/footer section
- 3Apply to all pages and publish
Lock it to your domains
Add your site domains under Settings → Allowed domains so nobody else can embed your bot and consume your quota.