{"id":21,"date":"2026-03-21T22:47:13","date_gmt":"2026-03-21T14:47:13","guid":{"rendered":"https:\/\/pa.yingzhi8.cn\/index.php\/2026\/03\/21\/channels-googlechat\/"},"modified":"2026-03-21T23:29:21","modified_gmt":"2026-03-21T15:29:21","slug":"channels-googlechat","status":"publish","type":"post","link":"https:\/\/pa.yingzhi8.cn\/index.php\/2026\/03\/21\/channels-googlechat\/","title":{"rendered":"Google Chat"},"content":{"rendered":"<h1>Google Chat<\/h1>\n<h1>Google Chat\uff08Chat API\uff09<\/h1>\n<p>\u72b6\u6001\uff1a\u5df2\u652f\u6301\u901a\u8fc7 Google Chat API webhooks\uff08\u4ec5 HTTP\uff09\u4f7f\u7528\u79c1\u4fe1\u548c\u7a7a\u95f4\u3002<\/p>\n<h2>\u5feb\u901f\u8bbe\u7f6e\uff08\u65b0\u624b\uff09<\/h2>\n<ol>\n<li>\u521b\u5efa\u4e00\u4e2a Google Cloud \u9879\u76ee\u5e76\u542f\u7528 <strong>Google Chat API<\/strong>\u3002<br \/>\n   * \u524d\u5f80\uff1a<a href=\"https:\/\/console.cloud.google.com\/apis\/api\/chat.googleapis.com\/credentials\">Google Chat API Credentials<\/a><br \/>\n   * \u5982\u679c API \u5c1a\u672a\u542f\u7528\uff0c\u8bf7\u542f\u7528\u5b83\u3002<\/li>\n<li>\u521b\u5efa\u4e00\u4e2a<strong>\u670d\u52a1\u8d26\u53f7<\/strong>\uff1a<br \/>\n   * \u70b9\u51fb <strong>Create Credentials<\/strong> &gt; <strong>Service Account<\/strong>\u3002<br \/>\n   * \u968f\u610f\u547d\u540d\uff08\u4f8b\u5982 <code>openclaw-chat<\/code>\uff09\u3002<br \/>\n   * \u6743\u9650\u7559\u7a7a\uff08\u70b9\u51fb <strong>Continue<\/strong>\uff09\u3002<br \/>\n   * \u6709\u8bbf\u95ee\u6743\u9650\u7684\u4e3b\u8d26\u53f7\u7559\u7a7a\uff08\u70b9\u51fb <strong>Done<\/strong>\uff09\u3002<\/li>\n<li>\u521b\u5efa\u5e76\u4e0b\u8f7d <strong>JSON \u5bc6\u94a5<\/strong>\uff1a<br \/>\n   * \u5728\u670d\u52a1\u8d26\u53f7\u5217\u8868\u4e2d\uff0c\u70b9\u51fb\u521a\u521a\u521b\u5efa\u7684\u8d26\u53f7\u3002<br \/>\n   * \u524d\u5f80 <strong>Keys<\/strong> \u6807\u7b7e\u9875\u3002<br \/>\n   * \u70b9\u51fb <strong>Add Key<\/strong> &gt; <strong>Create new key<\/strong>\u3002<br \/>\n   * \u9009\u62e9 <strong>JSON<\/strong> \u5e76\u70b9\u51fb <strong>Create<\/strong>\u3002<\/li>\n<li>\u5c06\u4e0b\u8f7d\u7684 JSON \u6587\u4ef6\u5b58\u50a8\u5728 Gateway \u7f51\u5173 \u7f51\u5173\u4e3b\u673a\u4e0a\uff08\u4f8b\u5982 <code>~\/.openclaw\/googlechat-service-account.json<\/code>\uff09\u3002<\/li>\n<li>\u5728 <a href=\"https:\/\/console.cloud.google.com\/apis\/api\/chat.googleapis.com\/hangouts-chat\">Google Cloud Console Chat \u914d\u7f6e\u8bf4\u660e<\/a> \u4e2d\u521b\u5efa\u4e00\u4e2a Google Chat \u5e94\u7528\uff1a<br \/>\n   * \u586b\u5199 <strong>Application info<\/strong>\uff1a<\/p>\n<ul>\n<li><strong>App name<\/strong>\uff1a\uff08\u4f8b\u5982 <code>OpenClaw<\/code>\uff09<\/li>\n<li><strong>Avatar URL<\/strong>\uff1a\uff08\u4f8b\u5982 <code>https:\/\/openclaw.ai\/logo.png<\/code>\uff09<\/li>\n<li><strong>Description<\/strong>\uff1a\uff08\u4f8b\u5982 <code>Personal AI Assistant<\/code>\uff09<\/li>\n<li>\u542f\u7528 <strong>Interactive features<\/strong>\u3002<\/li>\n<li>\u5728 <strong>Functionality<\/strong> \u4e0b\uff0c\u52fe\u9009 <strong>Join spaces and group conversations<\/strong>\u3002<\/li>\n<li>\u5728 <strong>Connection settings<\/strong> \u4e0b\uff0c\u9009\u62e9 <strong>HTTP endpoint URL<\/strong>\u3002<\/li>\n<li>\u5728 <strong>Triggers<\/strong> \u4e0b\uff0c\u9009\u62e9 <strong>Use a common HTTP endpoint URL for all triggers<\/strong> \u5e76\u5c06\u5176\u8bbe\u7f6e\u4e3a\u4f60\u7684 Gateway \u7f51\u5173 \u7f51\u5173\u516c\u7f51 URL \u540e\u52a0 <code>\/googlechat<\/code>\u3002<\/li>\n<li><em>\u63d0\u793a\uff1a\u8fd0\u884c <code>openclaw status<\/code> \u67e5\u770b\u4f60\u7684 Gateway \u7f51\u5173 \u7f51\u5173\u516c\u7f51 URL\u3002<\/em><\/li>\n<li>\u5728 <strong>Visibility<\/strong> \u4e0b\uff0c\u52fe\u9009 <strong>Make this Chat app available to specific people and groups in <\/strong>\u3002<\/li>\n<li>\u5728\u6587\u672c\u6846\u4e2d\u8f93\u5165\u4f60\u7684\u90ae\u7bb1\u5730\u5740\uff08\u4f8b\u5982 <code>user@example.com<\/code>\uff09\u3002<\/li>\n<li>\u70b9\u51fb\u5e95\u90e8\u7684 <strong>Save<\/strong>\u3002<\/li>\n<\/ul>\n<\/li>\n<li><strong>\u542f\u7528\u5e94\u7528\u72b6\u6001<\/strong>\uff1a<br \/>\n   * \u4fdd\u5b58\u540e\uff0c<strong>\u5237\u65b0\u9875\u9762<\/strong>\u3002<br \/>\n   * \u627e\u5230 <strong>App status<\/strong> \u90e8\u5206\uff08\u901a\u5e38\u5728\u4fdd\u5b58\u540e\u4f4d\u4e8e\u9876\u90e8\u6216\u5e95\u90e8\u9644\u8fd1\uff09\u3002<br \/>\n   * \u5c06\u72b6\u6001\u66f4\u6539\u4e3a <strong>Live &#8211; available to users<\/strong>\u3002<br \/>\n   * \u518d\u6b21\u70b9\u51fb <strong>Save<\/strong>\u3002<\/li>\n<li>\u4f7f\u7528\u670d\u52a1\u8d26\u53f7\u8def\u5f84\u548c webhook audience \u914d\u7f6e OpenClaw\uff1a<br \/>\n   * \u73af\u5883\u53d8\u91cf\uff1a<code>GOOGLE_CHAT_SERVICE_ACCOUNT_FILE=\/path\/to\/service-account.json<\/code><br \/>\n   * \u6216\u914d\u7f6e\uff1a<code>channels.googlechat.serviceAccountFile: \"\/path\/to\/service-account.json\"<\/code>\u3002<\/li>\n<li>\u8bbe\u7f6e webhook audience \u7c7b\u578b\u548c\u503c\uff08\u4e0e\u4f60\u7684 Chat \u5e94\u7528\u914d\u7f6e\u5339\u914d\uff09\u3002<\/li>\n<li>\u542f\u52a8 Gateway \u7f51\u5173 \u7f51\u5173\u3002Google Chat \u5c06\u5411\u4f60\u7684 webhook \u8def\u5f84\u53d1\u9001 POST \u8bf7\u6c42\u3002<\/li>\n<\/ol>\n<h2>\u6dfb\u52a0\u5230 Google Chat<\/h2>\n<p>Gateway \u7f51\u5173 \u7f51\u5173\u8fd0\u884c\u540e\uff0c\u4e14\u4f60\u7684\u90ae\u7bb1\u5df2\u6dfb\u52a0\u5230\u53ef\u89c1\u6027\u5217\u8868\u4e2d\uff1a<\/p>\n<ol>\n<li>\u524d\u5f80 <a href=\"https:\/\/chat.google.com\/\">Google Chat<\/a>\u3002<\/li>\n<li>\u70b9\u51fb <strong>Direct Messages<\/strong> \u65c1\u8fb9\u7684 <strong>+<\/strong>\uff08\u52a0\u53f7\uff09\u56fe\u6807\u3002<\/li>\n<li>\u5728\u641c\u7d22\u680f\uff08\u901a\u5e38\u7528\u4e8e\u6dfb\u52a0\u8054\u7cfb\u4eba\u7684\u4f4d\u7f6e\uff09\u4e2d\uff0c\u8f93\u5165\u4f60\u5728 Google Cloud Console \u4e2d\u914d\u7f6e\u7684 <strong>App name<\/strong>\u3002<br \/>\n   * <strong>\u6ce8\u610f<\/strong>\uff1a\u8be5\u673a\u5668\u4eba<em>\u4e0d\u4f1a<\/em>\u51fa\u73b0\u5728&#8221;Marketplace&#8221;\u6d4f\u89c8\u5217\u8868\u4e2d\uff0c\u56e0\u4e3a\u5b83\u662f\u79c1\u6709\u5e94\u7528\u3002\u4f60\u5fc5\u987b\u6309\u540d\u79f0\u641c\u7d22\u3002<\/li>\n<li>\u4ece\u7ed3\u679c\u4e2d\u9009\u62e9\u4f60\u7684\u673a\u5668\u4eba\u3002<\/li>\n<li>\u70b9\u51fb <strong>Add<\/strong> \u6216 <strong>Chat<\/strong> \u5f00\u59cb\u4e00\u5bf9\u4e00\u5bf9\u8bdd\u3002<\/li>\n<li>\u53d1\u9001&#8221;Hello&#8221;\u6765\u89e6\u53d1\u52a9\u624b\uff01<\/li>\n<\/ol>\n<h2>\u516c\u7f51 URL\uff08\u4ec5 Webhook\uff09<\/h2>\n<p>Google Chat webhooks \u9700\u8981\u4e00\u4e2a\u516c\u7f51 HTTPS \u7aef\u70b9\u3002\u4e3a\u4e86\u5b89\u5168\u8d77\u89c1\uff0c<strong>\u53ea\u5c06 <code>\/googlechat<\/code> \u8def\u5f84\u66b4\u9732\u5230\u4e92\u8054\u7f51<\/strong>\u3002\u5c06 OpenClaw \u4eea\u8868\u677f\u548c\u5176\u4ed6\u654f\u611f\u7aef\u70b9\u4fdd\u7559\u5728\u4f60\u7684\u79c1\u6709\u7f51\u7edc\u4e0a\u3002<\/p>\n<h3>\u65b9\u6848 A\uff1aTailscale Funnel\uff08\u63a8\u8350\uff09<\/h3>\n<p>\u4f7f\u7528 Tailscale Serve \u63d0\u4f9b\u79c1\u6709\u4eea\u8868\u677f\uff0c\u4f7f\u7528 Funnel \u63d0\u4f9b\u516c\u7f51 webhook \u8def\u5f84\u3002\u8fd9\u6837\u53ef\u4ee5\u4fdd\u6301 <code>\/<\/code> \u79c1\u6709\uff0c\u540c\u65f6\u53ea\u66b4\u9732 <code>\/googlechat<\/code>\u3002<\/p>\n<ol>\n<li><strong>\u68c0\u67e5\u4f60\u7684 Gateway \u7f51\u5173 \u7f51\u5173\u7ed1\u5b9a\u7684\u5730\u5740\uff1a<\/strong><\/li>\n<\/ol>\n<p><code>bash  theme={\"theme\":{\"light\":\"min-light\",\"dark\":\"min-dark\"}}<br \/>\n   ss -tlnp | grep 18789<\/code><\/p>\n<p>\u8bb0\u4e0b IP \u5730\u5740\uff08\u4f8b\u5982 <code>127.0.0.1<\/code>\u3001<code>0.0.0.0<\/code> \u6216\u4f60\u7684 Tailscale IP \u5982 <code>100.x.x.x<\/code>\uff09\u3002<\/p>\n<ol start=\"2\">\n<li><strong>\u4ec5\u5c06\u4eea\u8868\u677f\u66b4\u9732\u7ed9 tailnet\uff08\u7aef\u53e3 8443\uff09\uff1a<\/strong><\/li>\n<\/ol>\n<p>&#8220;`bash  theme={&#8220;theme&#8221;:{&#8220;light&#8221;:&#8221;min-light&#8221;,&#8221;dark&#8221;:&#8221;min-dark&#8221;}}<br \/>\n   # \u5982\u679c\u7ed1\u5b9a\u5230 localhost\uff08127.0.0.1 \u6216 0.0.0.0\uff09\uff1a<br \/>\n   tailscale serve &#8211;bg &#8211;https 8443 http:\/\/127.0.0.1:18789<\/p>\n<p># \u5982\u679c\u4ec5\u7ed1\u5b9a\u5230 Tailscale IP\uff08\u4f8b\u5982 100.106.161.80\uff09\uff1a<br \/>\n   tailscale serve &#8211;bg &#8211;https 8443 http:\/\/100.106.161.80:18789<br \/>\n   &#8220;`<\/p>\n<ol start=\"3\">\n<li><strong>\u4ec5\u516c\u5f00\u66b4\u9732 webhook \u8def\u5f84\uff1a<\/strong><\/li>\n<\/ol>\n<p>&#8220;`bash  theme={&#8220;theme&#8221;:{&#8220;light&#8221;:&#8221;min-light&#8221;,&#8221;dark&#8221;:&#8221;min-dark&#8221;}}<br \/>\n   # \u5982\u679c\u7ed1\u5b9a\u5230 localhost\uff08127.0.0.1 \u6216 0.0.0.0\uff09\uff1a<br \/>\n   tailscale funnel &#8211;bg &#8211;set-path \/googlechat http:\/\/127.0.0.1:18789\/googlechat<\/p>\n<p># \u5982\u679c\u4ec5\u7ed1\u5b9a\u5230 Tailscale IP\uff08\u4f8b\u5982 100.106.161.80\uff09\uff1a<br \/>\n   tailscale funnel &#8211;bg &#8211;set-path \/googlechat http:\/\/100.106.161.80:18789\/googlechat<br \/>\n   &#8220;`<\/p>\n<ol start=\"4\">\n<li>\n<p><strong>\u6388\u6743\u8282\u70b9\u8bbf\u95ee Funnel\uff1a<\/strong><br \/>\n   \u5982\u679c\u51fa\u73b0\u63d0\u793a\uff0c\u8bf7\u8bbf\u95ee\u8f93\u51fa\u4e2d\u663e\u793a\u7684\u6388\u6743 URL\uff0c\u4ee5\u5728\u4f60\u7684 tailnet \u7b56\u7565\u4e2d\u4e3a\u6b64\u8282\u70b9\u542f\u7528 Funnel\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u9a8c\u8bc1\u914d\u7f6e\uff1a<\/strong><br \/>\n   <code>bash  theme={\"theme\":{\"light\":\"min-light\",\"dark\":\"min-dark\"}}<br \/>\n   tailscale serve status<br \/>\n   tailscale funnel status<\/code><\/p>\n<\/li>\n<\/ol>\n<p>\u4f60\u7684\u516c\u7f51 webhook URL \u5c06\u662f\uff1a<br \/>\n<code>https:\/\/&lt;node-name&gt;.&lt;tailnet&gt;.ts.net\/googlechat<\/code><\/p>\n<p>\u4f60\u7684\u79c1\u6709\u4eea\u8868\u677f\u4ec5\u9650 tailnet \u8bbf\u95ee\uff1a<br \/>\n<code>https:\/\/&lt;node-name&gt;.&lt;tailnet&gt;.ts.net:8443\/<\/code><\/p>\n<p>\u5728 Google Chat \u5e94\u7528\u914d\u7f6e\u4e2d\u4f7f\u7528\u516c\u7f51 URL\uff08\u4e0d\u5e26 <code>:8443<\/code>\uff09\u3002<\/p>\n<blockquote>\n<p>\u6ce8\u610f\uff1a\u6b64\u914d\u7f6e\u5728\u91cd\u542f\u540e\u4f1a\u4fdd\u7559\u3002\u5982\u9700\u7a0d\u540e\u79fb\u9664\uff0c\u8bf7\u8fd0\u884c <code>tailscale funnel reset<\/code> \u548c <code>tailscale serve reset<\/code>\u3002<\/p>\n<\/blockquote>\n<h3>\u65b9\u6848 B\uff1a\u53cd\u5411\u4ee3\u7406\uff08Caddy\uff09<\/h3>\n<p>\u5982\u679c\u4f60\u4f7f\u7528\u50cf Caddy \u8fd9\u6837\u7684\u53cd\u5411\u4ee3\u7406\uff0c\u53ea\u4ee3\u7406\u7279\u5b9a\u8def\u5f84\uff1a<\/p>\n<p>&#8220;`caddy  theme={&#8220;theme&#8221;:{&#8220;light&#8221;:&#8221;min-light&#8221;,&#8221;dark&#8221;:&#8221;min-dark&#8221;}}<br \/>\nyour-domain.com {<br \/>\n    reverse_proxy \/googlechat* localhost:18789<br \/>\n}<\/p>\n<pre><code>\n\u4f7f\u7528\u6b64\u914d\u7f6e\uff0c\u4efb\u4f55\u53d1\u5f80 `your-domain.com\/` \u7684\u8bf7\u6c42\u5c06\u88ab\u5ffd\u7565\u6216\u8fd4\u56de 404\uff0c\u800c `your-domain.com\/googlechat` \u4f1a\u5b89\u5168\u5730\u8def\u7531\u5230 OpenClaw\u3002\n\n### \u65b9\u6848 C\uff1aCloudflare Tunnel\n\n\u914d\u7f6e\u4f60\u7684\u96a7\u9053\u5165\u53e3\u89c4\u5219\uff0c\u53ea\u8def\u7531 webhook \u8def\u5f84\uff1a\n\n* **\u8def\u5f84**\uff1a`\/googlechat` -&gt; `http:\/\/localhost:18789\/googlechat`\n* **\u9ed8\u8ba4\u89c4\u5219**\uff1aHTTP 404\uff08\u672a\u627e\u5230\uff09\n\n## \u5de5\u4f5c\u539f\u7406\n\n1. Google Chat \u5411 Gateway \u7f51\u5173\u53d1\u9001 webhook POST \u8bf7\u6c42\u3002\u6bcf\u4e2a\u8bf7\u6c42\u90fd\u5305\u542b\u4e00\u4e2a `Authorization: Bearer &lt;token&gt;` \u5934\u3002\n2. OpenClaw \u6839\u636e\u914d\u7f6e\u7684 `audienceType` + `audience` \u9a8c\u8bc1\u4ee4\u724c\uff1a\n   * `audienceType: &quot;app-url&quot;` \u2192 audience \u662f\u4f60\u7684 HTTPS webhook URL\u3002\n   * `audienceType: &quot;project-number&quot;` \u2192 audience \u662f Cloud \u9879\u76ee\u7f16\u53f7\u3002\n3. \u6d88\u606f\u6309\u7a7a\u95f4\u8def\u7531\uff1a\n   * \u79c1\u4fe1\u4f7f\u7528\u4f1a\u8bdd\u952e `agent:&lt;agentId&gt;:googlechat:dm:&lt;spaceId&gt;`\u3002\n   * \u7a7a\u95f4\u4f7f\u7528\u4f1a\u8bdd\u952e `agent:&lt;agentId&gt;:googlechat:group:&lt;spaceId&gt;`\u3002\n4. \u79c1\u4fe1\u8bbf\u95ee\u9ed8\u8ba4\u4e3a\u914d\u5bf9\u6a21\u5f0f\u3002\u672a\u77e5\u53d1\u9001\u8005\u4f1a\u6536\u5230\u914d\u5bf9\u7801\uff1b\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u6279\u51c6\uff1a\n   * `openclaw pairing approve googlechat &lt;code&gt;`\n5. \u7fa4\u7ec4\u7a7a\u95f4\u9ed8\u8ba4\u9700\u8981 @\u63d0\u53ca\u3002\u5982\u679c\u63d0\u53ca\u68c0\u6d4b\u9700\u8981\u5e94\u7528\u7684\u7528\u6237\u540d\uff0c\u8bf7\u4f7f\u7528 `botUser`\u3002\n\n## \u76ee\u6807\u6807\u8bc6\u7b26\n\n\u4f7f\u7528\u8fd9\u4e9b\u6807\u8bc6\u7b26\u8fdb\u884c\u6d88\u606f\u6295\u9012\u548c\u5141\u8bb8\u5217\u8868\uff1a\n\n* \u79c1\u4fe1\uff1a`users\/&lt;userId&gt;` \u6216 `users\/&lt;email&gt;`\uff08\u63a5\u53d7\u90ae\u7bb1\u5730\u5740\uff09\u3002\n* \u7a7a\u95f4\uff1a`spaces\/&lt;spaceId&gt;`\u3002\n\n## \u914d\u7f6e\u8981\u70b9\n\n```json5  theme={&quot;theme&quot;:{&quot;light&quot;:&quot;min-light&quot;,&quot;dark&quot;:&quot;min-dark&quot;}}\n{\n  channels: {\n    googlechat: {\n      enabled: true,\n      serviceAccountFile: &quot;\/path\/to\/service-account.json&quot;,\n      audienceType: &quot;app-url&quot;,\n      audience: &quot;https:\/\/gateway.example.com\/googlechat&quot;,\n      webhookPath: &quot;\/googlechat&quot;,\n      botUser: &quot;users\/1234567890&quot;, \/\/ \u53ef\u9009\uff1b\u5e2e\u52a9\u63d0\u53ca\u68c0\u6d4b\n      dm: {\n        policy: &quot;pairing&quot;,\n        allowFrom: [&quot;users\/1234567890&quot;, &quot;name@example.com&quot;],\n      },\n      groupPolicy: &quot;allowlist&quot;,\n      groups: {\n        &quot;spaces\/AAAA&quot;: {\n          allow: true,\n          requireMention: true,\n          users: [&quot;users\/1234567890&quot;],\n          systemPrompt: &quot;Short answers only.&quot;,\n        },\n      },\n      actions: { reactions: true },\n      typingIndicator: &quot;message&quot;,\n      mediaMaxMb: 20,\n    },\n  },\n}\n<\/code><\/pre>\n<p>\u6ce8\u610f\u4e8b\u9879\uff1a<\/p>\n<ul>\n<li>\u670d\u52a1\u8d26\u53f7\u51ed\u8bc1\u4e5f\u53ef\u4ee5\u901a\u8fc7 <code>serviceAccount<\/code>\uff08JSON \u5b57\u7b26\u4e32\uff09\u5185\u8054\u4f20\u9012\u3002<\/li>\n<li>\u5982\u679c\u672a\u8bbe\u7f6e <code>webhookPath<\/code>\uff0c\u9ed8\u8ba4 webhook \u8def\u5f84\u4e3a <code>\/googlechat<\/code>\u3002<\/li>\n<li>\u5f53 <code>actions.reactions<\/code> \u542f\u7528\u65f6\uff0c\u53ef\u901a\u8fc7 <code>reactions<\/code> \u5de5\u5177\u548c <code>channels action<\/code> \u4f7f\u7528\u8868\u60c5\u56de\u5e94\u3002<\/li>\n<li><code>typingIndicator<\/code> \u652f\u6301 <code>none<\/code>\u3001<code>message<\/code>\uff08\u9ed8\u8ba4\uff09\u548c <code>reaction<\/code>\uff08reaction \u9700\u8981\u7528\u6237 OAuth\uff09\u3002<\/li>\n<li>\u9644\u4ef6\u901a\u8fc7 Chat API \u4e0b\u8f7d\u5e76\u5b58\u50a8\u5728\u5a92\u4f53\u7ba1\u9053\u4e2d\uff08\u5927\u5c0f\u53d7 <code>mediaMaxMb<\/code> \u9650\u5236\uff09\u3002<\/li>\n<\/ul>\n<h2>\u6545\u969c\u6392\u9664<\/h2>\n<h3>405 Method Not Allowed<\/h3>\n<p>\u5982\u679c Google Cloud Logs Explorer \u663e\u793a\u5982\u4e0b\u9519\u8bef\uff1a<\/p>\n<pre><code>status code: 405, reason phrase: HTTP error response: HTTP\/1.1 405 Method Not Allowed\n<\/code><\/pre>\n<p>\u8fd9\u610f\u5473\u7740 webhook \u5904\u7406\u7a0b\u5e8f\u672a\u6ce8\u518c\u3002\u5e38\u89c1\u539f\u56e0\uff1a<\/p>\n<ol>\n<li><strong>\u6e20\u9053\u672a\u914d\u7f6e<\/strong>\uff1a\u914d\u7f6e\u4e2d\u7f3a\u5c11 <code>channels.googlechat<\/code> \u90e8\u5206\u3002\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u9a8c\u8bc1\uff1a<\/li>\n<\/ol>\n<p><code>bash  theme={\"theme\":{\"light\":\"min-light\",\"dark\":\"min-dark\"}}<br \/>\n   openclaw config get channels.googlechat<\/code><\/p>\n<p>\u5982\u679c\u8fd4\u56de&#8221;Config path not found&#8221;\uff0c\u8bf7\u6dfb\u52a0\u914d\u7f6e\uff08\u53c2\u89c1<a href=\"#\u914d\u7f6e\u8981\u70b9\">\u914d\u7f6e\u8981\u70b9<\/a>\uff09\u3002<\/p>\n<ol start=\"2\">\n<li><strong>\u63d2\u4ef6\u672a\u542f\u7528<\/strong>\uff1a\u68c0\u67e5\u63d2\u4ef6\u72b6\u6001\uff1a<\/li>\n<\/ol>\n<p><code>bash  theme={\"theme\":{\"light\":\"min-light\",\"dark\":\"min-dark\"}}<br \/>\n   openclaw plugins list | grep googlechat<\/code><\/p>\n<p>\u5982\u679c\u663e\u793a&#8221;disabled&#8221;\uff0c\u8bf7\u5728\u914d\u7f6e\u4e2d\u6dfb\u52a0 <code>plugins.entries.googlechat.enabled: true<\/code>\u3002<\/p>\n<ol start=\"3\">\n<li><strong>Gateway \u7f51\u5173 \u7f51\u5173\u672a\u91cd\u542f<\/strong>\uff1a\u6dfb\u52a0\u914d\u7f6e\u540e\uff0c\u91cd\u542f Gateway \u7f51\u5173 \u7f51\u5173\uff1a<br \/>\n   <code>bash  theme={\"theme\":{\"light\":\"min-light\",\"dark\":\"min-dark\"}}<br \/>\n   openclaw gateway restart<\/code><\/li>\n<\/ol>\n<p>\u9a8c\u8bc1\u6e20\u9053\u662f\u5426\u6b63\u5728\u8fd0\u884c\uff1a<\/p>\n<p>&#8220;`bash  theme={&#8220;theme&#8221;:{&#8220;light&#8221;:&#8221;min-light&#8221;,&#8221;dark&#8221;:&#8221;min-dark&#8221;}}<br \/>\nopenclaw \u6e20\u9053s status<\/p>\n<h1>\u5e94\u663e\u793a\uff1aGoogle Chat default: enabled, configured, &#8230;<\/h1>\n<p>&#8220;`<\/p>\n<h3>\u5176\u4ed6\u95ee\u9898<\/h3>\n<ul>\n<li>\u68c0\u67e5 <code>openclaw channels status --probe<\/code> \u4ee5\u67e5\u770b\u8ba4\u8bc1\u9519\u8bef\u6216\u7f3a\u5c11 audience \u914d\u7f6e\u3002<\/li>\n<li>\u5982\u679c\u6ca1\u6709\u6536\u5230\u6d88\u606f\uff0c\u8bf7\u786e\u8ba4 Chat \u5e94\u7528\u7684 webhook URL \u548c\u4e8b\u4ef6\u8ba2\u9605\u3002<\/li>\n<li>\u5982\u679c\u63d0\u53ca\u95e8\u63a7\u963b\u6b62\u4e86\u56de\u590d\uff0c\u8bf7\u5c06 <code>botUser<\/code> \u8bbe\u7f6e\u4e3a\u5e94\u7528\u7684\u7528\u6237\u8d44\u6e90\u540d\u79f0\u5e76\u9a8c\u8bc1 <code>requireMention<\/code>\u3002<\/li>\n<li>\u5728\u53d1\u9001\u6d4b\u8bd5\u6d88\u606f\u65f6\u4f7f\u7528 <code>openclaw logs --follow<\/code> \u67e5\u770b\u8bf7\u6c42\u662f\u5426\u5230\u8fbe Gateway \u7f51\u5173 \u7f51\u5173\u3002<\/li>\n<\/ul>\n<p>\u76f8\u5173\u6587\u6863\uff1a<\/p>\n<ul>\n<li><a href=\"https:\/\/pa.yingzhi8.cn\/?p=120\">Gateway \u7f51\u5173 \u7f51\u5173\u914d\u7f6e<\/a><\/li>\n<li><a href=\"https:\/\/pa.yingzhi8.cn\/?p=747\">\u5b89\u5168<\/a><\/li>\n<li><a href=\"https:\/\/pa.yingzhi8.cn\/?p=290\">\u8868\u60c5\u56de\u5e94<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Google Chat Google Chat\uff08Chat API\uff09 \u72b6\u6001\uff1a\u5df2\u652f\u6301\u901a\u8fc7 Google Chat  [&hellip;]<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-21","post","type-post","status-publish","format-standard","hentry","category-docs"],"_links":{"self":[{"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts\/21","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/comments?post=21"}],"version-history":[{"count":2,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts\/21\/revisions"}],"predecessor-version":[{"id":866,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts\/21\/revisions\/866"}],"wp:attachment":[{"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/media?parent=21"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/categories?post=21"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/tags?post=21"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}