MonGPT
無料で始める

ウィジェットの設置

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.

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.

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.

ja