コンテンツへスキップ
Busymate AI

プレイグラウンド

あなたのページとあなたの相棒が一緒にできるすべてのこと

本物の相棒はこのページにドッキングしています。インストルメントを選んでコントロールを押し、パネルの反応を見てから、それを実行した正確なコードをコピーしてください。アカウントも何もインストールする必要はありません。

すべてのコントロールはライブウィジェットに対して実行され、すべてのスニペットはあなたのサイトが使用する行です。

パネルの表示、非表示、反転; 訪問者に見える前に色スキームと言語を固定します。

1つのタグでマウント; 4つの呼び出しで駆動 — 自分のiframeのサイジングもなし、維持する自分の状態もなし。

試す

配色

ウィジェットはまだ読み込み中です。ウィジェットが表示されたらコントロールが有効になります。

これを実行するコードです

index.htmlhtml
<!-- ONE tag mounts the launcher + the panel on any page. -->
<script
  src="https://busymate.ai/embed/v1.js"
  data-assistant="your-workspace-slug"
  data-label="Ask us"
  data-title="Assistant"
  data-aria-label="Open the assistant"
  async></script>
panel.jsjavascript
// The loader installs window.BusymateAI. Every call is safe before the frame
// has loaded — commands queue and deliver on load.
BusymateAI.open();
BusymateAI.close();
BusymateAI.toggle();
BusymateAI.isOpen(); // → true | false
preset.jsjavascript
// Preset the panel from the page: colour scheme + language.
// Neither is persisted by the frame — your page owns them while it embeds it.
BusymateAI.setTheme("dark");     // "light" | "dark" | "system"
BusymateAI.setLocale("de");      // any BCP 47 tag the platform serves
BusymateAI.setLocale(null);      // unpin — the frame follows the visitor again
BusymateAI.open();
push.htmlhtml
<!-- Opt in to the page making room for the panel instead of being
     covered by it. Above 1100px only; phones and tablets never move. -->
<script
  src="https://busymate.ai/embed/v1.js"
  data-assistant="your-workspace-slug"
  data-layout="push"
  async></script>

<style>
  /* A FULL-BLEED block is anchored to the viewport, so root padding cannot
     narrow it. Give it the exact page width the loader publishes instead. */
  html[data-bmai-chat-reserve] .full-bleed {
    width: var(--bmai-chat-page-width);
    margin-left: calc(50% - var(--bmai-chat-page-width) / 2);
  }
</style>

ドキュメント

ステップ 1 / 9