CLI commands

Webhook

openclaw webhooks

Các trình trợ giúp và tích hợp Webhook (Gmail Pub/Sub, trình trợ giúp Webhook).

Liên quan:

Gmail

openclaw webhooks gmail setup --account [email protected]
openclaw webhooks gmail run

webhooks gmail setup

Cấu hình Gmail watch, Pub/Sub và phân phối Webhook của OpenClaw.

Bắt buộc:

  • --account <email>

Tùy chọn:

  • --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

Ví dụ:

openclaw webhooks gmail setup --account [email protected]
openclaw webhooks gmail setup --account [email protected] --project my-gcp-project --json
openclaw webhooks gmail setup --account [email protected] --hook-url https://gateway.example.com/hooks/gmail

webhooks gmail run

Chạy gog watch serve cùng với vòng lặp tự động gia hạn watch.

Tùy chọn:

  • --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>

Ví dụ:

openclaw webhooks gmail run --account [email protected]

Xem tài liệu Gmail Pub/Sub để biết luồng thiết lập từ đầu đến cuối và chi tiết vận hành.

Liên quan