TaskFlow
DashboardFreewriteWhiteboardsProjectsCRMTasksNotificationsSettingsAgent TowerAPI Docs
OpenClaw Docs
?

User

Member

Caricamento in corso...

Home
Progetti
Task
Notifiche
CRM

    OpenClaw

    Documentation Mirror

    Documentation Overview

    Docs

    Auth credential semantics
    Scheduled tasks
    Hooks
    Automation & tasks
    Standing orders
    Task flow
    Background tasks
    BlueBubbles
    Broadcast groups
    Channel routing
    Discord
    Feishu
    Google Chat
    Group messages
    Groups
    iMessage
    Chat channels
    IRC
    LINE
    Channel location parsing
    Matrix
    Matrix migration
    Matrix push rules for quiet previews
    Mattermost
    Microsoft Teams
    Nextcloud Talk
    Nostr
    Pairing
    QA channel
    QQ bot
    Signal
    Slack
    Synology Chat
    Telegram
    Tlon
    Channel troubleshooting
    Twitch
    WeChat
    WhatsApp
    Yuanbao
    Zalo
    Zalo personal
    CI pipeline
    ACP
    Agent
    Agents
    Approvals
    Backup
    Browser
    Channels
    Clawbot
    `openclaw commitments`
    Completion
    Config
    Configure
    Cron
    Daemon
    Dashboard
    Devices
    Directory
    DNS
    Docs
    Doctor
    Flows (redirect)
    Gateway
    Health
    Hooks
    CLI reference
    Inference CLI
    Logs
    MCP
    Memory
    Message
    Migrate
    Models
    Node
    Nodes
    Onboard
    Pairing
    Plugins
    Proxy
    QR
    Reset
    Sandbox CLI
    Secrets
    Security
    Sessions
    Setup
    Skills
    Status
    System
    `openclaw tasks`
    TUI
    Uninstall
    Update
    Voicecall
    Webhooks
    Wiki
    Active memory
    Agent runtime
    Agent loop
    Agent runtimes
    Agent workspace
    Gateway architecture
    Channel docking
    Inferred commitments
    Compaction
    Context
    Context engine
    Delegate architecture
    Dreaming
    Experimental features
    Features
    Markdown formatting
    Memory overview
    Builtin memory engine
    Honcho memory
    QMD memory engine
    Memory search
    Messages
    Model failover
    Model providers
    Models CLI
    Multi-agent routing
    OAuth
    OpenClaw App SDK
    Presence
    QA overview
    Matrix QA
    Command queue
    Steering queue
    Retry policy
    Session management
    Session pruning
    Session tools
    SOUL.md personality guide
    Streaming and chunking
    System prompt
    Timezones
    TypeBox
    Typing indicators
    Usage tracking
    Date and time
    Node + tsx crash
    Diagnostics flags
    Authentication
    Background exec and process tool
    Bonjour discovery
    Bridge protocol
    CLI backends
    Configuration — agents
    Configuration — channels
    Configuration — tools and custom providers
    Configuration
    Configuration examples
    Configuration reference
    Diagnostics export
    Discovery and transports
    Doctor
    Gateway lock
    Health checks
    Heartbeat
    Gateway runbook
    Local models
    Gateway logging
    Multiple gateways
    Network model
    OpenAI chat completions
    OpenResponses API
    OpenShell
    OpenTelemetry export
    Gateway-owned pairing
    Prometheus metrics
    Gateway protocol
    Remote access
    Remote gateway setup
    Sandbox vs tool policy vs elevated
    Sandboxing
    Secrets management
    Secrets apply plan contract
    Security audit checks
    Security
    Tailscale
    Tools invoke API
    Troubleshooting
    Trusted proxy auth
    Debugging
    Environment variables
    FAQ
    FAQ: first-run setup
    FAQ: models and auth
    GPT-5.5 / Codex agentic parity
    GPT-5.5 / Codex parity maintainer notes
    Help
    Scripts
    Testing
    Testing: live suites
    General troubleshooting
    OpenClaw
    Ansible
    Azure
    Bun (experimental)
    ClawDock
    Release channels
    DigitalOcean
    Docker
    Docker VM runtime
    exe.dev
    Fly.io
    GCP
    Hetzner
    Hostinger
    Install
    Installer internals
    Kubernetes
    macOS VMs
    Migration guide
    Migrating from Claude
    Migrating from Hermes
    Nix
    Node.js
    Northflank
    Oracle Cloud
    Podman
    Railway
    Raspberry Pi
    Render
    Uninstall
    Updating
    Logging
    Network
    Audio and voice notes
    Camera capture
    Image and media support
    Nodes
    Location command
    Media understanding
    Talk mode
    Node troubleshooting
    Voice wake
    Pi integration architecture
    Pi development workflow
    Android app
    Platforms
    iOS app
    Linux app
    Gateway on macOS
    Canvas
    Gateway lifecycle
    macOS dev setup
    Health checks (macOS)
    Menu bar icon
    macOS logging
    Menu bar
    Peekaboo bridge
    macOS permissions
    Remote control
    macOS signing
    Skills (macOS)
    Voice overlay
    Voice wake (macOS)
    WebChat (macOS)
    macOS IPC
    macOS app
    Windows
    Plugin internals
    Plugin architecture internals
    Building plugins
    Plugin bundles
    Codex Computer Use
    Codex harness
    Community plugins
    Plugin compatibility
    Google Meet plugin
    Plugin hooks
    Plugin manifest
    Memory LanceDB
    Memory wiki
    Message presentation
    Agent harness plugins
    Building channel plugins
    Channel turn kernel
    Plugin entry points
    Plugin SDK migration
    Plugin SDK overview
    Building provider plugins
    Plugin runtime helpers
    Plugin setup and config
    Plugin SDK subpaths
    Plugin testing
    Skill workshop plugin
    Voice call plugin
    Webhooks plugin
    Zalo personal plugin
    OpenProse
    Alibaba Model Studio
    Anthropic
    Arcee AI
    Azure Speech
    Amazon Bedrock
    Amazon Bedrock Mantle
    Chutes
    Claude Max API proxy
    Cloudflare AI gateway
    ComfyUI
    Deepgram
    Deepinfra
    DeepSeek
    ElevenLabs
    Fal
    Fireworks
    GitHub Copilot
    GLM (Zhipu)
    Google (Gemini)
    Gradium
    Groq
    Hugging Face (inference)
    Provider directory
    Inferrs
    Inworld
    Kilocode
    LiteLLM
    LM Studio
    MiniMax
    Mistral
    Model provider quickstart
    Moonshot AI
    NVIDIA
    Ollama
    OpenAI
    OpenCode
    OpenCode Go
    OpenRouter
    Perplexity
    Qianfan
    Qwen
    Runway
    SGLang
    StepFun
    Synthetic
    Tencent Cloud (TokenHub)
    Together AI
    Venice AI
    Vercel AI gateway
    vLLM
    Volcengine (Doubao)
    Vydra
    xAI
    Xiaomi MiMo
    Z.AI
    Default AGENTS.md
    Release policy
    API usage and costs
    Credits
    Device model database
    Full release validation
    Memory configuration reference
    OpenClaw App SDK API design
    Prompt caching
    Rich output protocol
    RPC adapters
    SecretRef credential surface
    Session management deep dive
    AGENTS.md template
    BOOT.md template
    BOOTSTRAP.md template
    HEARTBEAT.md template
    IDENTITY template
    SOUL.md template
    TOOLS.md template
    USER template
    Tests
    Token use and costs
    Transcript hygiene
    Onboarding reference
    Contributing to the threat model
    Threat model (MITRE ATLAS)
    Formal verification (security models)
    Network proxy
    Agent bootstrapping
    Docs directory
    Getting started
    Docs hubs
    OpenClaw lore
    Onboarding (macOS app)
    Onboarding overview
    Personal assistant setup
    Setup
    Showcase
    Onboarding (CLI)
    CLI automation
    CLI setup reference
    ACP agents
    ACP agents — setup
    Agent send
    apply_patch tool
    Brave search
    Browser (OpenClaw-managed)
    Browser control API
    Browser troubleshooting
    Browser login
    WSL2 + Windows + remote Chrome CDP troubleshooting
    BTW side questions
    ClawHub
    Code execution
    Creating skills
    Diffs
    DuckDuckGo search
    Elevated mode
    Exa search
    Exec tool
    Exec approvals
    Exec approvals — advanced
    Firecrawl
    Gemini search
    Grok search
    Image generation
    Tools and plugins
    Kimi search
    LLM task
    Lobster
    Tool-loop detection
    Media overview
    MiniMax search
    Multi-agent sandbox and tools
    Music generation
    Ollama web search
    PDF tool
    Perplexity search
    Plugins
    Reactions
    SearXNG search
    Skills
    Skills config
    Slash commands
    Sub-agents
    Tavily
    Thinking levels
    Tokenjuice
    Trajectory bundles
    Text-to-speech
    Video generation
    Web search
    Web fetch
    Linux server
    Control UI
    Dashboard
    Web
    TUI
    WebChat

    OpenAPI Specs

    openapi
    TaskFlow
    docs/openclaw
    Original Docs

    Real-time Synchronized Documentation

    Last sync: 01/05/2026 07:03:02

    Note: This content is mirrored from docs.openclaw.ai and is subject to their terms and conditions.

    OpenClaw Docs

    v2.4.0 Production

    Last synced: Today, 22:00

    Technical reference for the OpenClaw framework. Real-time synchronization with the official documentation engine.

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

    Google Chat

    Status: ready for DMs + spaces via Google Chat API webhooks (HTTP only).

    Quick setup (beginner)

    1. Create a Google Cloud project and enable the Google Chat API.
      • Go to: Google Chat API Credentials
      • Enable the API if it is not already enabled.
    2. Create a Service Account:
      • Press Create Credentials > Service Account.
      • Name it whatever you want (e.g.,
        text
        openclaw-chat
        ).
      • Leave permissions blank (press Continue).
      • Leave principals with access blank (press Done).
    3. Create and download the JSON Key:
      • In the list of service accounts, click on the one you just created.
      • Go to the Keys tab.
      • Click Add Key > Create new key.
      • Select JSON and press Create.
    4. Store the downloaded JSON file on your gateway host (e.g.,
      text
      ~/.openclaw/googlechat-service-account.json
      ).
    5. Create a Google Chat app in the Google Cloud Console Chat Configuration:
      • Fill in the Application info:
        • App name: (e.g.
          text
          OpenClaw
          )
        • Avatar URL: (e.g.
          text
          https://openclaw.ai/logo.png
          )
        • Description: (e.g.
          text
          Personal AI Assistant
          )
      • Enable Interactive features.
      • Under Functionality, check Join spaces and group conversations.
      • Under Connection settings, select HTTP endpoint URL.
      • Under Triggers, select Use a common HTTP endpoint URL for all triggers and set it to your gateway's public URL followed by
        text
        /googlechat
        .
        • Tip: Run
          text
          openclaw status
          to find your gateway's public URL.
      • Under Visibility, check Make this Chat app available to specific people and groups in
        text
        <Your Domain>
        .
      • Enter your email address (e.g.
        text
        user@example.com
        ) in the text box.
      • Click Save at the bottom.
    6. Enable the app status:
      • After saving, refresh the page.
      • Look for the App status section (usually near the top or bottom after saving).
      • Change the status to Live - available to users.
      • Click Save again.
    7. Configure OpenClaw with the service account path + webhook audience:
      • Env:
        text
        GOOGLE_CHAT_SERVICE_ACCOUNT_FILE=/path/to/service-account.json
      • Or config:
        text
        channels.googlechat.serviceAccountFile: "/path/to/service-account.json"
        .
    8. Set the webhook audience type + value (matches your Chat app config).
    9. Start the gateway. Google Chat will POST to your webhook path.

    Add to Google Chat

    Once the gateway is running and your email is added to the visibility list:

    1. Go to Google Chat.
    2. Click the + (plus) icon next to Direct Messages.
    3. In the search bar (where you usually add people), type the App name you configured in the Google Cloud Console.
      • Note: The bot will not appear in the "Marketplace" browse list because it is a private app. You must search for it by name.
    4. Select your bot from the results.
    5. Click Add or Chat to start a 1:1 conversation.
    6. Send "Hello" to trigger the assistant!

    Public URL (Webhook-only)

    Google Chat webhooks require a public HTTPS endpoint. For security, only expose the

    text
    /googlechat
    path to the internet. Keep the OpenClaw dashboard and other sensitive endpoints on your private network.

    Option A: Tailscale Funnel (Recommended)

    Use Tailscale Serve for the private dashboard and Funnel for the public webhook path. This keeps

    text
    /
    private while exposing only
    text
    /googlechat
    .

    1. Check what address your gateway is bound to:

      bash
      ss -tlnp | grep 18789

      Note the IP address (e.g.,

      text
      127.0.0.1
      ,
      text
      0.0.0.0
      , or your Tailscale IP like
      text
      100.x.x.x
      ).

    2. Expose the dashboard to the tailnet only (port 8443):

      bash
      # If bound to localhost (127.0.0.1 or 0.0.0.0): tailscale serve --bg --https 8443 http://127.0.0.1:18789 # If bound to Tailscale IP only (e.g., 100.106.161.80): tailscale serve --bg --https 8443 http://100.106.161.80:18789
    3. Expose only the webhook path publicly:

      bash
      # If bound to localhost (127.0.0.1 or 0.0.0.0): tailscale funnel --bg --set-path /googlechat http://127.0.0.1:18789/googlechat # If bound to Tailscale IP only (e.g., 100.106.161.80): tailscale funnel --bg --set-path /googlechat http://100.106.161.80:18789/googlechat
    4. Authorize the node for Funnel access: If prompted, visit the authorization URL shown in the output to enable Funnel for this node in your tailnet policy.

    5. Verify the configuration:

      bash
      tailscale serve status tailscale funnel status

    Your public webhook URL will be:

    text
    https://<node-name>.<tailnet>.ts.net/googlechat

    Your private dashboard stays tailnet-only:

    text
    https://<node-name>.<tailnet>.ts.net:8443/

    Use the public URL (without

    text
    :8443
    ) in the Google Chat app config.

    Note: This configuration persists across reboots. To remove it later, run

    text
    tailscale funnel reset
    and
    text
    tailscale serve reset
    .

    Option B: Reverse Proxy (Caddy)

    If you use a reverse proxy like Caddy, only proxy the specific path:

    caddy
    your-domain.com { reverse_proxy /googlechat* localhost:18789 }

    With this config, any request to

    text
    your-domain.com/
    will be ignored or returned as 404, while
    text
    your-domain.com/googlechat
    is safely routed to OpenClaw.

    Option C: Cloudflare Tunnel

    Configure your tunnel's ingress rules to only route the webhook path:

    • Path:
      text
      /googlechat
      ->
      text
      http://localhost:18789/googlechat
    • Default Rule: HTTP 404 (Not Found)

    How it works

    1. Google Chat sends webhook POSTs to the gateway. Each request includes an
      text
      Authorization: Bearer <token>
      header.
      • OpenClaw verifies bearer auth before reading/parsing full webhook bodies when the header is present.
      • Google Workspace Add-on requests that carry
        text
        authorizationEventObject.systemIdToken
        in the body are supported via a stricter pre-auth body budget.
    2. OpenClaw verifies the token against the configured
      text
      audienceType
      +
      text
      audience
      :
      • text
        audienceType: "app-url"
        → audience is your HTTPS webhook URL.
      • text
        audienceType: "project-number"
        → audience is the Cloud project number.
    3. Messages are routed by space:
      • DMs use session key
        text
        agent:<agentId>:googlechat:direct:<spaceId>
        .
      • Spaces use session key
        text
        agent:<agentId>:googlechat:group:<spaceId>
        .
    4. DM access is pairing by default. Unknown senders receive a pairing code; approve with:
      • text
        openclaw pairing approve googlechat <code>
    5. Group spaces require @-mention by default. Use
      text
      botUser
      if mention detection needs the app’s user name.

    Targets

    Use these identifiers for delivery and allowlists:

    • Direct messages:
      text
      users/<userId>
      (recommended).
    • Raw email
      text
      name@example.com
      is mutable and only used for direct allowlist matching when
      text
      channels.googlechat.dangerouslyAllowNameMatching: true
      .
    • Deprecated:
      text
      users/<email>
      is treated as a user id, not an email allowlist.
    • Spaces:
      text
      spaces/<spaceId>
      .

    Config highlights

    json5
    { channels: { googlechat: { enabled: true, serviceAccountFile: "/path/to/service-account.json", // or serviceAccountRef: { source: "file", provider: "filemain", id: "/channels/googlechat/serviceAccount" } audienceType: "app-url", audience: "https://gateway.example.com/googlechat", webhookPath: "/googlechat", botUser: "users/1234567890", // optional; helps mention detection dm: { policy: "pairing", allowFrom: ["users/1234567890"], }, groupPolicy: "allowlist", groups: { "spaces/AAAA": { allow: true, requireMention: true, users: ["users/1234567890"], systemPrompt: "Short answers only.", }, }, actions: { reactions: true }, typingIndicator: "message", mediaMaxMb: 20, }, }, }

    Notes:

    • Service account credentials can also be passed inline with
      text
      serviceAccount
      (JSON string).
    • text
      serviceAccountRef
      is also supported (env/file SecretRef), including per-account refs under
      text
      channels.googlechat.accounts.<id>.serviceAccountRef
      .
    • Default webhook path is
      text
      /googlechat
      if
      text
      webhookPath
      isn’t set.
    • text
      dangerouslyAllowNameMatching
      re-enables mutable email principal matching for allowlists (break-glass compatibility mode).
    • Reactions are available via the
      text
      reactions
      tool and
      text
      channels action
      when
      text
      actions.reactions
      is enabled.
    • Message actions expose
      text
      send
      for text and
      text
      upload-file
      for explicit attachment sends.
      text
      upload-file
      accepts
      text
      media
      /
      text
      filePath
      /
      text
      path
      plus optional
      text
      message
      ,
      text
      filename
      , and thread targeting.
    • text
      typingIndicator
      supports
      text
      none
      ,
      text
      message
      (default), and
      text
      reaction
      (reaction requires user OAuth).
    • Attachments are downloaded through the Chat API and stored in the media pipeline (size capped by
      text
      mediaMaxMb
      ).

    Secrets reference details: Secrets Management.

    Troubleshooting

    405 Method Not Allowed

    If Google Cloud Logs Explorer shows errors like:

    text
    status code: 405, reason phrase: HTTP error response: HTTP/1.1 405 Method Not Allowed

    This means the webhook handler isn't registered. Common causes:

    1. Channel not configured: The

      text
      channels.googlechat
      section is missing from your config. Verify with:

      bash
      openclaw config get channels.googlechat

      If it returns "Config path not found", add the configuration (see Config highlights).

    2. Plugin not enabled: Check plugin status:

      bash
      openclaw plugins list | grep googlechat

      If it shows "disabled", add

      text
      plugins.entries.googlechat.enabled: true
      to your config.

    3. Gateway not restarted: After adding config, restart the gateway:

      bash
      openclaw gateway restart

    Verify the channel is running:

    bash
    openclaw channels status # Should show: Google Chat default: enabled, configured, ...

    Other issues

    • Check
      text
      openclaw channels status --probe
      for auth errors or missing audience config.
    • If no messages arrive, confirm the Chat app's webhook URL + event subscriptions.
    • If mention gating blocks replies, set
      text
      botUser
      to the app's user resource name and verify
      text
      requireMention
      .
    • Use
      text
      openclaw logs --follow
      while sending a test message to see if requests reach the gateway.

    Related docs:

    • Gateway configuration
    • Security
    • Reactions

    Related

    • Channels Overview — all supported channels
    • Pairing — DM authentication and pairing flow
    • Groups — group chat behavior and mention gating
    • Channel Routing — session routing for messages
    • Security — access model and hardening

    © 2024 TaskFlow Mirror

    Powered by TaskFlow Sync Engine