跳转到主要内容

openclaw webhooks

webhook 辅助命令与集成(Gmail Pub/Sub、webhook 辅助命令)。 相关内容:

Gmail

openclaw webhooks gmail setup --account you@example.com
openclaw webhooks gmail run

webhooks gmail setup

配置 Gmail watch、Pub/Sub 和 OpenClaw webhook 投递。 必需参数:
  • --account <email>
选项:
  • --project <id>
  • --topic <name>
  • --subscription <name>
  • --label <label>
  • --hook-url <url>
  • --hook-token <token>
  • --push-token <token>
  • --bind <host>
  • --port <port>
  • --path <path>
  • --include-body
  • --max-bytes <n>
  • --renew-minutes <n>
  • --tailscale <funnel|serve|off>
  • --tailscale-path <path>
  • --tailscale-target <target>
  • --push-endpoint <url>
  • --json
示例:
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

webhooks gmail run

运行 gog watch serve 以及 watch 自动续订循环。 选项:
  • --account <email>
  • --topic <topic>
  • --subscription <name>
  • --label <label>
  • --hook-url <url>
  • --hook-token <token>
  • --push-token <token>
  • --bind <host>
  • --port <port>
  • --path <path>
  • --include-body
  • --max-bytes <n>
  • --renew-minutes <n>
  • --tailscale <funnel|serve|off>
  • --tailscale-path <path>
  • --tailscale-target <target>
示例:
openclaw webhooks gmail run --account you@example.com
有关端到端设置流程和运行细节,请参阅 Gmail Pub/Sub 文档