Install the Google chat (sn_va_google-chat) application so that Now Virtual Agent and Google chat users can interact with each other.
Procédure
-
On the Google workspace, navigate to Build a Google Chat app with Google Apps Script.
-
Verify that you have fulfilled the prerequisites.
-
Follow the instructions in the Open your Cloud project in the Google Cloud console section.
-
Follow the instructions in the Turn on the Chat API section.
-
Navigate to https://console.cloud.google.com/.
-
Select APIs & Services from the Quick Access view or from the side menu.
-
In the list of APIs, select Google Chat API.
-
On the Google chat API screen, select the Configuration tab.
-
Verify Build this Chat app as a Workspace add-on is selected.
-
Complete the Application info fields:
| Field |
Description |
| App name |
Application name. |
| Avatar URL |
Publicly accessible avatar image for the application. |
| Description |
Application description. |
-
In the Interactive features section, verify Enable interactive features is selected.
-
In the Connection Settings section, select HTTP endpoint URL.
-
In the Triggers section, select Use a common HTTP endpoint URL for all triggers.
-
In the HTTP endpoint URL field, enter the instance name and the URL extension: <instance url>/api/sn_va_google_chat/va_google_chat_inbound/events.
-
In the Visibility section, select Make this Chat app available to specific people and groups in servicenow.
-
In the Enter email addresses to add individuals and groups in your domain field, enter your email address.
-
Select Save.
-
Scroll back to the top of the screen.
-
In the Connection settings section, find and note the Service Account Email - this is your Inbound Service Account Email.
-
In the side menu, navigate to Credentials.
-
In the Service Accounts section, select Manage service accounts.
-
Select + Create service account.
-
On the Create service account screen, fill out the fields:
| Field |
Description |
| Service account name |
Name for the service account. |
| Service account ID |
This will be automatically generated for you. |
| Service account description |
Description for the service account. |
-
Find and note the email account under the Service account ID field - this is your Outbound Service Account email.
-
Select Done.
-
On the Service Accounts screenn,navigate to the Manage Keys page and select your new outbound service account.
-
Select the Keys tab.
-
From the Add Key drop-down list, select Create new key.
-
On the Create private key for 'Outbound Service Account' window, select P12.
-
Select Create - this automatically downloads a file to your machine.
-
On the Private key saved to your computer window, enter a private key password.