Naar hoofdinhoud gaan

Documentation Index

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

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

openclaw webhooks

Webhook-helpers en -integraties. Op dit moment is dit oppervlak beperkt tot Gmail Pub/Sub-flows die integreren met de meegeleverde gog-watcher.

Subcommando’s

openclaw webhooks gmail setup --account <email> [...]
openclaw webhooks gmail run   [--account <email>] [...]
SubcommandoBeschrijving
gmail setupConfigureer Gmail-watch, Pub/Sub-topic/-subscription en het OpenClaw-webhookbezorgdoel.
gmail runVoer gog watch serve uit plus de automatische vernieuwingslus voor de watch.

webhooks gmail setup

Configureer Gmail-watch, Pub/Sub en OpenClaw-webhookbezorging.
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

Vereist

VlagBeschrijving
--account <email>Gmail-account om te bewaken.

Pub/Sub-opties

VlagStandaardBeschrijving
--project <id>(geen)GCP-project-id (de eigenaar van de OAuth-client).
--topic <name>gog-gmail-watchNaam van Pub/Sub-topic.
--subscription <name>gog-gmail-watch-pushNaam van Pub/Sub-subscription.
--label <label>INBOXGmail-label om te bewaken.
--push-endpoint <url>(geen)Expliciet Pub/Sub-pushendpoint. Overschrijft Tailscale.

OpenClaw-bezorgopties

VlagStandaardBeschrijving
--hook-url <url>(geen)OpenClaw-webhook-URL.
--hook-token <token>(geen)OpenClaw-webhook-token.
--push-token <token>(geen)Push-token dat wordt doorgestuurd naar gog watch serve.

gog watch serve-opties

VlagStandaardBeschrijving
--bind <host>127.0.0.1Bind-host voor gog watch serve.
--port <port>8788Poort voor gog watch serve.
--path <path>/gmail-pubsubPad voor gog watch serve.
--include-bodytrueNeem snippets van de e-mailbody op. Geef --no-include-body door om dit uit te schakelen.
--max-bytes <n>20000Maximaal aantal bytes per bodysnippet.
--renew-minutes <n>720 (12u)Vernieuw Gmail-watch elke N minuten.

Tailscale-blootstelling

VlagStandaardBeschrijving
--tailscale <mode>funnelStel pushendpoint beschikbaar via Tailscale: funnel, serve of off.
--tailscale-path <path>(geen)Pad voor Tailscale serve/funnel.
--tailscale-target <t>(geen)Doel voor Tailscale serve/funnel (poort, host:port of URL).

Uitvoer

VlagBeschrijving
--jsonDruk een machineleesbare samenvatting af in plaats van tekst.

webhooks gmail run

Voer gog watch serve uit plus de automatische vernieuwingslus voor de watch op de voorgrond.
openclaw webhooks gmail run --account you@example.com
run accepteert dezelfde gog watch serve-, OpenClaw-bezorg-, Pub/Sub- en Tailscale-vlaggen als setup, behalve:
  • --account is optioneel bij run (het valt terug op het geconfigureerde account).
  • run accepteert geen --project, --push-endpoint of --json.
  • run-vlaggen hebben geen ingebouwde standaardwaarden; ontbrekende waarden vallen terug op de waarden die door setup zijn geschreven.
CategorieVlaggen
Pub/Sub--account, --topic, --subscription, --label
OpenClaw-bezorging--hook-url, --hook-token, --push-token
gog watch serve--bind, --port, --path, --include-body, --max-bytes, --renew-minutes
Tailscale--tailscale, --tailscale-path, --tailscale-target
Voor run is de waarde van --topic het volledige Pub/Sub-topicpad (projects/.../topics/...), niet alleen de korte topicnaam.

End-to-end-flow

Zie Gmail Pub/Sub-integratie voor de GCP-project-, OAuth- en Gateway-side configuratie die bij deze CLI-commando’s hoort.

Gerelateerd