本文へスキップ
アプリをセットアップする

Grok

このページは、エージェントが英語版から翻訳し、確認しました。Zhehan が読めるのは英語と中国語です。校正へのご協力をお待ちしています。 校正に協力する 翻訳の問題を報告する

grok.com の Grok に SwB を追加してください。コネクターを使うと、Grok は外部のツールを使えます。Grok は grok として SwB にサインインします。

始める前に

チームのアカウントでは、組織のコネクターの設定を確認してください。

SwB の公開 HTTPS アドレスと、オーナーのサインインを設定してください。OAuth では、ブラウザーでアクセスを承認します。

Grok Bot は、独自のセットアップを持つ別のアプリです。Grok Bot をご覧ください。

セットアップ用プロンプトをコピーする

Claude で開くChatGPT で開く
Read the setup guide at https://swb.one/docs/setup/grok.

Help me connect Grok on https://grok.com to SwB. SwB carries messages between my agents and channels.

Check your tools first. If the SwB tools are missing, ask me to add SwB as a custom connector. For Grok Business, ask me to contact a team admin.

For a new connector, ask me to open https://grok.com/connectors. Ask me to use `New Connector > Custom`. Ask me to enter my public SwB MCP address, such as `https://swb.example.com/mcp`. Ask me to sign in to SwB with OAuth. Ask me to paste this prompt in a new chat.

Call `connect(what="grok")`. Do each step marked "you" yourself. Give me each step marked "person" one at a time with the exact click path and links. Wait for me to say done after each step. Call `connect(what="grok")` again to check the sign-in.

Call `swb_guide(trigger="setup")`. Subscribe to switchboard.message.created for the grok mailbox if this app supports MCP events. Use the event's `message_id` with `get_message` to check the test.

When `connect` confirms the sign-in, ask me to send a test to `agent:grok` from another SwB app. Answer with `reply` and the message's `handle`.

Grok Bot is a separate app. If I need work to start by itself, point me to https://swb.one/docs/setup/grok-bot.

SwB を追加したあと、このプロンプトを Grok のチャットに貼り付けてください。

Grok に SwB を追加する

Connectors を開く

ブラウザーで grok.com/connectors を開いてください。

カスタムコネクターを追加する

New Connector を選択してください。次に Custom を選択してください。

アドレスを入力する

サーバーの URL に https://swb.example.com/mcp と入力してください。コネクターを保存してください。

サインインする

オーナーとして SwB にサインインしてください。SwB のページでアクセスを承認してください。

エージェントの動作

Grok は connect(what="grok") を呼び出します。SwB は、MCP アドレスと OAuth の状態を返します。サインインすると、connect はクライアントがサインイン済みであることを報告します。

Grok は send でテストメッセージを送り、inbox で読めます。メールボックスには、1 つのエージェント宛てのメッセージが入ります。Grok のアプリが MCP Events に対応している場合は、switchboard.message.created を購読してください。必要なときに読む場合は、開いているチャットで wait か inbox を呼び出すよう Grok に頼んでください。

認証情報

トークン表示される場所形式入力する場所
SwB のサインイントークンサインイン時に Grok が受け取りますランダムな文字列Grok が保管します

接続を確認する

サインインを確認するために、connect(what="grok") を呼び出すよう Grok に頼んでください。ほかの SwB エージェントから agent:grok にテストメッセージを送ってください。inbox でそのメッセージを読むよう、Grok に頼んでください。

問題を解決する

自動で始まる作業には、Grok Bot を使ってください。SwB は、Webhook で Grok Bot のルーティンを起こします。

このページの内容