---
id: "asgard-ext-google-cloud-pubsub"
lang: "zh-TW"
name: "Google Cloud Pub/Sub"
vendor: "Google"
product: "Cloud Pub/Sub"
category: "developer"
summary: "讓 Agent 回答一個 Google Cloud 專案的 Pub/Sub 設定：有哪些主題與訂閱、訊息推到哪裡、dead-letter 與重試怎麼設定。"
url: "https://www.asgard-ai.com/zh/extensions/asgard-ext-google-cloud-pubsub"
docs: "https://cloud.google.com/pubsub/docs/reference/rest"
source: null
usages: ["shared-account"]
produces: ["OAuthProvider","OAuthCredential","Workflow","Toolset"]
requires: {"asgard_cli":">=0.2.0","skills":[],"extensions":[],"platform":[]}
command: "asgard-cli extension get asgard-ext-google-cloud-pubsub"
handoff: "請用 asgard-cli 取得 asgard-ext-google-cloud-pubsub 這個 Extension，帶我判斷要走哪幾條路線，再開始導入。"
updated: "2026-11-25"
---

# Google Cloud Pub/Sub

Agent 回答一個 Google Cloud 專案裡 Pub/Sub 的設定問題：

- 有哪些主題，每個主題底下掛了哪些訂閱
- 訂閱是用拉取的、推送到某個網址，還是寫進 BigQuery 或 Cloud Storage
- 訂閱的篩選條件、dead-letter 主題、重試、保留期間與到期設定

Agent 只讀設定。它不建立、不修改、不刪除主題與訂閱，也不發送或接收訊息。它看不到訊息內容，也看不到有多少訊息在等待處理。

## 要準備什麼

- Google Workspace。OAuth client 建在組織自己的 Google Cloud 專案，設成只給組織內部使用，Google 不用審核。
- 放那張 client 的 Google Cloud 專案。FDE Agent 會帶管理員建立專案、啟用 Cloud Pub/Sub API。
- 部署上線後，有人能用共用帳號登入一次，同意存取。
