Deploy your chatbot on Google Chat

You have finished and tested your chatbot, deploy it now on Google Chat!

Step 1 - Create a Google project for your bot

First, make sure you have rights to create projects on Google Developers Console.

Go to the Google documentation which allows the automatic creation of a pre-configured project then click on ” Enable the API “.

Once the pop-up window appears, create a new project by assigning it a name:

After clicking on ” Next “, download the file containing the authentication elements by clicking on ” Download private key as JSON “:

Step 2 - Configure your Google project

Now you need to configure your freshly created Google project.

Go to the Google Cloud Platform and make sure your project is selected in the banner at the top of the page. If not, select your project.

Once on the dashboard of your Google project, in the lower part of it, click on “ Hangouts Chat API ”:

The interface changes slightly and you see a ” Configuration ” tab appear in the left side menu.

Fill in the “application information ” section then check ” the bot works in private messages “.

In the ” Connection settings ” section, click on ” Bot URL “. A new field then appears, fill in the following url: https://developers.vizir.co/hangouts/messages

Then define in the ” Permissions ” section, the installation parameters of the bot in your organization.

Once saved, your page should look like this:

Retrieve your project number (application ID) located in the red box above.

Step 3 - Deploy your bot in the Google Marketplace

Go to your application access settings in the Google Marketplace.

Return to the Google Admin console .

Once on the console, check that your Google project is selected. Once the project is selected, in the search bar, type “ Google Workspace Marketplace SDK ”:

Click ” Enable “. You arrive at the application configuration screen.
Enable the OAuth authorization screen.

Set the “User Type” to ” Internal ” then ” Create ” the OAuth authorization.

You then arrive on a configuration screen:

  1. Fill in the application information
  2. Field of application:
    1. Homepage: https://vizir.co
    2. GDPR: https://www.vizir.co/en/rgpd/
    3. Terms of use: https://www.vizir.co/en/mentions-legales/
    4. Fill in your domain name in the authorized domains.
  3. Developer contact details

You should have a screen like this:

Remember to click ” Save and continue “. Once in step 2, make no changes and click ” Save and continue “.

Once the authorization screen is configured, we will configure the application’s Google Workspace API.

Go to the Google Console . Check that your project (here GchatDemo) is still selected, if not, select it.

In the ” Application integration ” section, check ” Bot Hangouts Chat “.

Leave the default values in the ” OAuth scopes ” section.

Fill in the ” Links for developers ” section with your developer information.

Select the ” installation settings ” on ” individual + administrator ” and the visibility of the application on ” Private ” then save your changes.

Now go to the ” Play Store Sheet ” tab.

Fill in the items in the ” Application Details ” section with your application information.

Add the icons / screenshots in the ” Graphic elements ” part

Finally in ” Support Links “, add the following URLs:

You can now publish your application.

Your application is now on the store but is available for download only  if it is “whitelisted”.

For this, in the whitelist Google Workspace Marketplace , click ” Add application to whitelist “.
Search for your application with the name you defined in the previous step, then add it.

Step 4 - Link your Vizir chatbot to your Google project

Now that your Google project is ready, all that remains is to link the google project to your Vizir chatbot.

To do this, go to the Vizir dashboard and select the bot to share on Google Chat.

In the side menu, click on “ Sharing ” then “ Google Hangouts ”.

Fill in the fields that appear:

  • APPID: the project number that you retrieved at the end of step 2.
  • SECRET APP: paste the full contents of the file you downloaded at the end of step 1.

Remember to ” publish ” your changes to the bot.

On Google Chat , click the ” + ” sign in the ” Bots ” section:

On the page that appears, find the name of your bot:

Your bot’s presentation page appears and you can click on the ” Message ” button to chat with it.

🙏 Pré-Requis

🍔 Menu

To know all about the  chatbots and AI, subscribe to the Newsletter

You seem to like what you read...

Why not subscribe to our newsletter?

Receive this type of content and many others (tools, news, testimonials, podcasts…) every week directly to the mailbox of your choice. Unsubscribe at any time.