Prerequisites
- You must have the Admin role in AI Helpdesk.
- You must have Google Workspace super admin access (required to configure domain-wide delegation).
- You need access to the Google Cloud Console (GCP) (it can be the same account as your Google Workspace admin, or a different one).
Required information
The connection form asks for the four values below. You will collect them as you go through the steps.| Item | Description |
|---|---|
| GCP Project Number | The Project number of your GCP project (numeric — not the Project ID) |
| Service Account JSON | The full JSON key file of the service account |
| Bot Display Name | The bot’s display name in Google Chat (same value as the App name set in Step 5) |
| Admin Email | The Google Workspace super admin email address the service account will impersonate |
Step 1: Create a GCP project
Open the Google Cloud Console
Go to https://console.cloud.google.com and click the project selector at the top of the page, then click New Project.
Create the project
Enter a project name (e.g.
minabot-chat) and click Create.
Once created, select the project.Step 2: Enable the required APIs
In the GCP project, open APIs & Services > Library and enable the following two APIs.- Google Chat API
- Admin SDK API
Step 3: Create a service account
Create the service account
Open IAM & Admin > Service Accounts in the GCP project and click Create Service Account.
- Name: any value (e.g.
minabot-chat-bot) - Description: optional
Download the JSON key
Click the service account you just created and open the Keys tab.
Click Add Key > Create new key, choose JSON, and click Create.A JSON file is downloaded automatically.The entire JSON (including the surrounding braces) is the value you will paste into the Service Account JSON field.
Step 4: Set up domain-wide delegation (DWD)
This allows the service account to look up users in your Google Workspace directory.Enable DWD on the service account
In GCP, open IAM & Admin > Service Accounts and select your service account.
On the Details tab, expand Advanced settings and enable Domain-wide delegation, then save.Take note of the Client ID (numeric) that appears after saving.
Authorize the OAuth scopes in the Google Workspace Admin Console
Open https://admin.google.com and go to Security > Access and data control > API controls.
Under Manage Domain Wide Delegation, click Add new.
- Client ID: the value noted in the previous step
-
OAuth scopes: enter the three scopes below as a single comma-separated line
https://www.googleapis.com/auth/chat.spaces.createhttps://www.googleapis.com/auth/admin.directory.user.readonlyhttps://www.googleapis.com/auth/chat.bot
Step 5: Configure the Google Chat app
Open the Google Chat API configuration
In your GCP project, open APIs & Services > Google Chat API > Configuration.
Fill in basic information
- App name: the bot’s display name (e.g.
Mina) - Avatar URL: optional (URL of the bot’s icon)
- Description: optional
Configure functionality and connection
Under Functionality, enable:
- Receive 1:1 messages
- Join spaces and group conversations
Step 6: Add the bot to a space
In Google Chat, open the space where you want to use the bot and:- Click the space name > Apps & integrations > Add apps.
- Search for your configured app name and click Add.
Step 7: Finish the connection in AI Helpdesk
Open integration settings
In Settings > Integrations > Messaging of AI Helpdesk, click Add connection and choose Google Chat — Custom Bot.
Enter the credentials
Enter the following values:
- GCP Project Number: the numeric value from Step 1
- Service Account JSON: the entire JSON downloaded in Step 3
- Bot Display Name: the App name configured for the Google Chat app in Step 5
- Admin Email: the Google Workspace super admin email from Step 4
Using the bot
Once connected, users can interact with the bot from Google Chat.Ask questions via direct message
Send a question to the bot in a direct message to receive an AI response.Mention the bot in a space
Mention the bot inside a space to receive an AI response in a thread. Continue replying in the same thread to keep the session going.Disconnect Google Chat
In the Messaging section of Settings > Integrations, click the trash icon on the card to disconnect.Troubleshooting
“Invalid credentials”- Confirm that the GCP Project Number is the numeric value (not the Project ID).
- Confirm that the Service Account JSON includes the outer braces
{}and is pasted in full. - Confirm that the Admin Email is a Google Workspace super admin account.
- Confirm that Google Chat API and Admin SDK API are both enabled (Step 2).
- Confirm that all required OAuth scopes are authorized in the Google Workspace Admin Console (Step 4).
- Confirm that the Connection settings > App URL in Step 5 points to the correct webhook URL.
- Confirm that the bot has been added to the space in Step 6.
- Confirm that you are correctly mentioning the bot in the space.

