Skip to main content
When you connect AI Helpdesk to Google Chat, users can send inquiries to the AI bot from Google Chat. This works in spaces, threads, and direct messages. Google Chat integration uses the Custom Bot method. With this method, you configure a GCP project and a Google Chat app in your own environment. Replies in threads are supported.

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.
Entering an Admin Email enables the following two features.
  • 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.
If you leave it blank, the bot still answers questions and handles tickets in the spaces it is added to. However, you link Google Chat users to Admina accounts manually. First-time escalation DMs are not sent in Google Chat. Responders still get in-app notifications and are assigned the ticket.You can add the admin email after connecting (Add the admin email later).

Step 1: Create a GCP project

1

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.
2

Create the project

Enter a project name (e.g. minabot-chat) and click Create. Once created, select the project.
3

Copy the Project Number

From the Dashboard, copy the Project number in the Project info card (e.g. 123456789012). This is the GCP Project Number in the connection form.
Use the Project number (numeric value), not the Project ID.

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
The Admin SDK API is used when you enter an Admin Email.

Step 3: Create a service account

1

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
Click Create and Continue, then click Done without assigning roles.
2

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 JSON file cannot be re-downloaded. Store it securely.
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) (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.
1

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.
2

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.create
    • https://www.googleapis.com/auth/admin.directory.user.readonly
    • https://www.googleapis.com/auth/chat.bot
    Copy the following line as-is (no whitespace between commas):
Click Authorize.
3

Decide on the Admin Email

Decide which Google Workspace super admin email address the service account will impersonate (e.g. admin@example.com). This is the Admin Email (optional) value in the connection form.

Step 5: Configure the Google Chat app

1

Open the Google Chat API configuration

In your GCP project, open APIs & Services > Google Chat API > Configuration.
2

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
3

Configure functionality and connection

Under Functionality, enable:
  • Receive 1:1 messages
  • Join spaces and group conversations
Under Connection settings, choose App URL and enter:
4

Set the visibility

Under Permissions, choose the visibility:
  • Specific people and groups in your domain (recommended for testing)
  • Everyone in your domain
Click Save.

Step 6: Add the bot to a space

In Google Chat, open the space where you want to use the bot and:
  1. Click the space name > Apps & integrations > Add apps.
  2. Search for your configured app name and click Add.
The bot is now active in that space.

Step 7: Finish the connection in AI Helpdesk

1

Open integration settings

In Settings > Integration > Messaging of AI Helpdesk, click Add Connection and choose Google Chat — Custom Bot.
2

Enter the credentials

Enter the following values and click Next.
  • 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
3

Enter the admin email

In Admin Email (optional), enter the Google Workspace super admin email from Step 4. If you skipped Step 4, leave it blank.
4

Complete the connection

Click Connect. If the credentials are valid, the connected row appears in the Messaging section.

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.
1

Open the credential editor

In the Settings > Integration > Messaging section, select Edit from the menu (…) of the Google Chat row. If the row needs re-authentication, the menu shows Update credentials instead of Edit. Click Re-install in the confirmation dialog.
2

Re-enter the Service Account JSON

Paste the entire JSON downloaded in Step 3 into Service Account JSON. Click Next.
3

Enter the admin email and save

Enter the super admin email address in Admin Email (optional). Click 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.
Disconnecting stops accepting new inquiries from that Google Workspace.

Supported attachments

Employees can attach images or files to an inquiry and have the Bot look at them when it answers. The AI reads up to 20 images across the whole conversation, starting from the newest. Images over 3.75MB are stored, but the AI cannot read them. The Bot cannot read unsupported formats, such as Office files (DOCX, XLSX, PPTX) or binaries (ZIP). Files over the size limit cannot be read either. The AI tells the user in its answer which files could not be processed. When a knowledge document contains images, the Bot attaches them to its answer as a card with image links. Links are valid for 12 hours. Only images in native knowledge (registered in Admina) and Notion documents can be attached. Images and files that an operator attaches from the reply box on the web arrive in a card, separate from the reply. Images appear in the card, and files open from a link with the file name. Links are valid for 12 hours. For details, see Attachments from the reply box.

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.
You cannot connect or save after entering an admin email When you enter an Admin Email (optional), AI Helpdesk checks domain-wide delegation. If the check fails, an error appears and you cannot connect or save.
  • 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).
“Insufficient permissions”
  • 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).
The bot is not responding
  • 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.
Last modified on November 2, 2026