Google Chat
A project’s members can talk to their agent from Google Chat: in a DM with a Chat app, and in threads of spaces they add the app to. The app is your own: you build it in a Google Cloud project of your Workspace and point it at AgentSpaces. Google Workspace accounts only.
You need to be an owner or admin of the organization in AgentSpaces, and able to create a Chat app and a service-account key in a Google Cloud project.
1. A Google Cloud project
Use a project for this only, or one you already have. Note its project number (digits, on the project’s dashboard or under IAM & Admin, Settings; not the project id).
Enable the Google Chat API in it.
2. A service-account key
AgentSpaces posts as the app with a key of a service account of the same project. Chat treats every service account of the app’s project as the app, so make one for this only:
- IAM & Admin, Service accounts, Create service account. Give it no roles.
- On the account, Keys, Add key, Create new key, JSON. Keep the file until step 4.
The key is used only with Chat’s chat.bot scope: whoever has it acts as the app in
Chat, in spaces the app is a member of (posting, updating and deleting its messages,
reading those spaces’ details and members), and nothing outside Chat. Keys don’t expire. Keep the account limited to the
app, and delete the key in Google Cloud when you remove the app from AgentSpaces.
If key creation is refused, an organization policy blocks it
(iam.disableServiceAccountKeyCreation); your Google Cloud admin can make an exception
for this project.
3. Add the app in AgentSpaces
In the project’s Settings, Channels, Google Chat, Add Chat app: the app’s name (as members
will find it in Chat), the project number and the key file’s contents. AgentSpaces checks
the key with Google and shows the app’s endpoint URL:
https://app.agent-spaces.eu/channels/google_chat/<id>.

4. Configure the Chat app
In Google Cloud, Google Chat API, Manage, Configuration:
- App name: the name you gave the app in step 3, so members find it in Chat by the name the portal shows them.
- Avatar URL, Description: what members see.
- Build this Chat app as a Google Workspace add-on: on (the default for a new app; keep it on for an existing one). AgentSpaces understands only the add-on’s requests, and an app without it doesn’t answer.
- Functionality: Join spaces and group conversations.
- Connection settings: HTTP endpoint URL, with Use a common HTTP endpoint URL for all triggers, and the endpoint URL from step 3.
- Visibility: the people or groups of your domain who may use it.
Save. There is nothing else to grant: Google signs each request to the endpoint, and AgentSpaces accepts only those signed for your project’s number.
Using it
- Linking. Until a member links their account, their own agent’s card on the canvas
shows the app’s icon in orange, with a bubble under it: pressing either opens the link
dialog (the bubble’s ×, or “Not now” in the dialog, hides it for good). Or they go to Account, Chat apps, pick the app and get a code. They DM
the app
link <code>within 10 minutes; the same dialog then asks them to confirm. The DM is then their conversation with their agent in the app’s project (their root agent, started if it wasn’t yet). The admin who added the app gets this dialog right after step 3: link once the app is configured (step 4), or close it and link from Account later. - A message is a prompt. Thinking... shows at once, then what the agent is doing,
and its reply takes that message’s place. A question the agent asks (may it run a
command?) comes as a card with a button per answer.
/cancelstops what it does for you there. The agent can also write first, when it has news. - Spaces. A member adds the app to a space and @mentions it: that thread becomes a conversation with their agent, a session of its own (the DM is the agent’s main session), and the agent answers in it. The app sees only messages that @mention it, so replies in the thread mention it too. Others in the thread who mention the app reach the same agent, marked as not its owner. Removing the app from a space ends its threads there.
- Files. Files uploaded to the DM or a thread reach the agent as artifacts of the project. Drive files reach it as a link only. Chat takes no files from apps: the agent names an artifact instead.
Removing it
In the project’s Settings, Channels, Google Chat, Remove. Members’ links and conversations end. Then delete the service account’s key (or the account) in Google Cloud, and the Chat app’s configuration if you don’t use it elsewhere.