メインコンテンツへスキップ

Documentation Index

Fetch the complete documentation index at: https://docs.openclaw.ai/llms.txt

Use this file to discover all available pages before exploring further.

openclaw webhooks

Webhook ヘルパーと統合。現在、このサーフェスは、バンドルされている gog ウォッチャーと統合する Gmail Pub/Sub フローを対象としています。

サブコマンド

openclaw webhooks gmail setup --account <email> [...]
openclaw webhooks gmail run   [--account <email>] [...]
サブコマンド説明
gmail setupGmail watch、Pub/Sub トピック/サブスクリプション、OpenClaw Webhook 配信先を設定します。
gmail rungog watch serve と watch 自動更新ループを実行します。

webhooks gmail setup

Gmail watch、Pub/Sub、OpenClaw Webhook 配信を設定します。
openclaw webhooks gmail setup --account you@example.com
openclaw webhooks gmail setup --account you@example.com --project my-gcp-project --json
openclaw webhooks gmail setup --account you@example.com --hook-url https://gateway.example.com/hooks/gmail

必須

フラグ説明
--account <email>ウォッチする Gmail アカウント。

Pub/Sub オプション

フラグデフォルト説明
--project <id>(なし)GCP プロジェクト ID (OAuth クライアントの所有者)。
--topic <name>gog-gmail-watchPub/Sub トピック名。
--subscription <name>gog-gmail-watch-pushPub/Sub サブスクリプション名。
--label <label>INBOXウォッチする Gmail ラベル。
--push-endpoint <url>(なし)明示的な Pub/Sub プッシュエンドポイント。Tailscale を上書きします。

OpenClaw 配信オプション

フラグデフォルト説明
--hook-url <url>(なし)OpenClaw Webhook URL。
--hook-token <token>(なし)OpenClaw Webhook トークン。
--push-token <token>(なし)gog watch serve に転送されるプッシュトークン。

gog watch serve オプション

フラグデフォルト説明
--bind <host>127.0.0.1gog watch serve のバインドホスト。
--port <port>8788gog watch serve のポート。
--path <path>/gmail-pubsubgog watch serve のパス。
--include-bodytrueメール本文のスニペットを含めます。無効にするには --no-include-body を渡します。
--max-bytes <n>20000本文スニペットあたりの最大バイト数。
--renew-minutes <n>720 (12h)N 分ごとに Gmail watch を更新します。

Tailscale での公開

フラグデフォルト説明
--tailscale <mode>funneltailscale 経由でプッシュエンドポイントを公開します: funnelserve、または off
--tailscale-path <path>(なし)tailscale serve/funnel のパス。
--tailscale-target <t>(なし)Tailscale serve/funnel のターゲット (ポート、host:port、または URL)。

出力

フラグ説明
--jsonテキストの代わりに機械可読な概要を出力します。

webhooks gmail run

gog watch serve と watch 自動更新ループをフォアグラウンドで実行します。
openclaw webhooks gmail run --account you@example.com
run は、setup と同じ gog watch serve、OpenClaw 配信、Pub/Sub、Tailscale フラグを受け付けます。ただし、次の例外があります。
  • --accountrun では任意です (設定済みアカウントにフォールバックします)。
  • run--project--push-endpoint--json を受け付けません。
  • run フラグには組み込みのデフォルトはありません。不足している値は setup によって書き込まれた値にフォールバックします。
カテゴリフラグ
Pub/Sub--account, --topic, --subscription, --label
OpenClaw 配信--hook-url, --hook-token, --push-token
gog watch serve--bind, --port, --path, --include-body, --max-bytes, --renew-minutes
Tailscale--tailscale, --tailscale-path, --tailscale-target
run では、--topic の値は短いトピック名だけではなく、完全な Pub/Sub トピックパス (projects/.../topics/...) です。

エンドツーエンドのフロー

これらの CLI コマンドと組み合わせる GCP プロジェクト、OAuth、Gateway 側のセットアップについては、Gmail Pub/Sub 統合を参照してください。

関連