Install the widget
Three ways to put your bot in front of customers.
Floating bubble (most common)
Paste this before your closing </body> tag. The launcher appears in the corner; the design comes from your dashboard, so you never need to change this snippet again.
<script src="https://pub-d34db5f4b686455e8a40dfc61dfe0c0e.r2.dev/mongpt-widget.iife.js"></script>
<script>
MonGPT.init({ tenantId: 'YOUR_TENANT_ID' });
</script>Running more than one bot?
Pass the bot's id — find it on the Install page after selecting that bot:
MonGPT.init({ tenantId: 'YOUR_TENANT_ID', chatbotId: 'YOUR_BOT_ID' });Inline (embedded in a page)
Puts the chat inside a page — a help center, a contact page — instead of a floating bubble. No script needed; it's an 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>
Keep allow="microphone" if you want voice to work inside the iframe. Add ?chatbotId=… to the src to pick a specific bot. Because an iframe can't see the host page's language, pass it explicitly per language variant — ?language=ja-JP (e.g. use the iframe on your /jp page with …/embed/YOUR_TENANT_ID?language=ja-JP).
WordPress
Install the free MonGPT plugin, paste your Tenant ID under Settings → MonGPT, and the widget appears site-wide. No theme editing.
Options reference
tenantId— required. From Dashboard → Install.chatbotId— optional. Defaults to your first bot.mode—'floating'(default) or'inline'.primaryColor,position,language— override the dashboard settings for this embed only.
Languages — one snippet, every language
You don't need a different snippet per language. The widget detects the page language from <html lang>, the URL path (e.g. /jp/), a ?lang= or ?locale= query string (e.g. yoursite.com/?lang=jp), or the visitor's browser — then greets and replies in it, limited to the languages you allow in Bot settings → Language. A visitor on /jp gets a Japanese bot automatically; one on /th gets Thai.
If your site carries the locale in a non-standard query key, name it with langParam — e.g. langParam: 'ui_lang' reads ?ui_lang=jp. To pin one fixed language on a page instead of auto-detecting, 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. The same language field works on the REST API /chat call and the MCP ask_bot tool.
Allowed domains
Under Settings → Allowed domains, list the domains permitted to embed your bot. Requests from anywhere else are rejected, so nobody can copy your snippet and spend your quota. Leaving it empty allows every domain.
Something unclear? Tell us.
Start free trial