Prerequisites
- You must have the Admin role in AI Helpdesk.
- To enter an Admin Email, 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 values below. You will collect them as you go through the steps.- The bot matches people in Google Chat to their Admina accounts using your Google Workspace directory.
- The bot can send an escalation DM to a responder who has never messaged it.
Step 1: Create a GCP project
Open the Google Cloud Console
Create the project
minabot-chat) and click Create.
Once created, select the project.Copy the Project Number
123456789012).
This is the GCP Project Number in the connection form.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
- Name: any value (e.g.
minabot-chat-bot) - Description: optional
Download the JSON key
Step 4: Set up domain-wide delegation (DWD) (optional)
Set this up only if you enter an Admin Email. The service account then acts for the admin to look up users in your Google Workspace directory. It also uses this access to open DMs with responders. If you connect without an admin email, go to Step 5.Enable DWD on the service account
Authorize the OAuth scopes in the Google Workspace Admin Console
- 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
Decide on the Admin Email
admin@example.com).
This is the Admin Email (optional) value in the connection form.Step 5: Configure the Google Chat app
Open the Google Chat API configuration
Fill in basic information
- App name: the bot’s display name (e.g.
Admina AI HelpDesk) - Avatar URL: optional (URL of the bot’s icon)
- Description: optional
Configure functionality and connection
- Receive 1:1 messages
- Join spaces and group conversations
Set the visibility
- Specific people and groups in your domain (recommended for testing)
- Everyone in your domain
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
Enter the credentials
- Service Account JSON: the entire JSON downloaded in Step 3
- GCP Project Number: the numeric value from Step 1
- Bot Display Name: the App name configured for the Google Chat app in Step 5
Enter the admin email
Complete the connection
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.Add the admin email later
To add an admin email after connecting without one, first set up domain-wide delegation in Step 4.Open the credential editor
Re-enter the Service Account JSON
Enter the admin email and save
Disconnect Google Chat
In the Messaging section of Settings > Integration, click Disconnect in the menu (…) of the connection’s row. Click Disconnect in the confirmation dialog.Supported attachments
Employees can attach images or files to an inquiry and have the Bot look at them when it answers.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 (optional) is a Google Workspace super admin account.
- Confirm that the Admin SDK API is enabled (Step 2).
- Confirm that the service account’s client ID and scopes are authorized in the Google Workspace Admin Console (Step 4).
- 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.

