EvyHelp
Channels

Connect Google Chat

Create your own Google Chat app in Google Cloud, connect it in the Evy app and decide who can talk to your assistant.

With Google Chat you talk to your assistant by direct message or in your company's spaces. To connect it, you create your own Chat app in Google Cloud and paste its key into the Evy app, in Messaging. That's also where you say who can write to it.

This is the connection with the most steps. It goes through several Google Cloud screens and takes a good while. Go step by step and write down the names you choose, because you use them at the end.

Before you start

  • A Google Workspace account, your company's one with your own domain. A regular Gmail account can't create Google Chat apps.
  • Admin permission to publish Chat apps in that Workspace. If you don't have it, ask whoever runs it for help.
  • A Google Cloud project. You create it in the first step, with that same account.
  • The Evy app, on your computer or in your browser.

These steps are the ones in October 2026. If something doesn't match, look for the name we give in bold.

Anyone who can write to it can ask it what it remembers about you

On Google Chat, your assistant answers with what's in its memory, which is what it remembers about you and your business. It also searches the web, sees the photos they send and asks what it needs. It doesn't open your files, run programs, look things up in your connected apps or schedule tasks. Each reply comes out of your AI usage. Only give access to people you trust.

Set up Google Cloud

Create a project

Go to console.cloud.google.com with your Workspace account and create a new project (New Project). Give it a name, for example rosa-flowers-chat. Write down the Project ID. It may not match the name, and you use it in almost every step.

Turn on Google Chat and Pub/Sub

In the menu, open APIs & Services > Library. Search for Google Chat API and click Enable. Do the same with Cloud Pub/Sub API. Pub/Sub is the Google service that carries Chat messages to your assistant. With the messages an assistant handles, both are free.

Create a service account

A service account is the user your assistant signs in to your project with. Open IAM & Admin > Service Accounts and click Create Service Account. Give it a name, for example assistant-chat. Skip the step that offers to give it access to the project (Grant this service account access to project): it doesn't need it. Finish creating it.

Write down its email, which shows in the list. With the example names it's assistant-chat@rosa-flowers-chat.iam.gserviceaccount.com.

Download its key

Open the service account you just created and go to Keys > Add Key > Create new key. Choose JSON and click Create. A file ending in .json downloads. It's the key you paste into the Evy app later.

Treat the key file like a password

Anyone who has that file can pick up the messages that reach your Chat app and answer in its name. Don't send it to anyone and only paste it into the Evy app. Once you've pasted it, you can delete it from your computer: if you ever need it, you create another key. If it gets out, delete it in Keys and create a new one, as we explain in Change the details or who can write.

Create the topic and the subscription

Google Chat drops each message into a Pub/Sub topic. Your assistant picks it up from a subscription to that topic.

Create the topic

Open Pub/Sub > Topics and click Create topic. In Topic ID, write assistant-chat. Leave everything else as it is and create it.

With the example names, the topic's full name is projects/rosa-flowers-chat/topics/assistant-chat.

Create the subscription

On the topic's page, open the Subscriptions tab and create a subscription:

  • In Subscription ID, write assistant-chat-sub.
  • In Delivery type, choose Pull.
  • In Message retention, choose 7 days. That way no messages are lost while your assistant restarts.

Leave everything else as it is and create it. Its full name is projects/rosa-flowers-chat/subscriptions/assistant-chat-sub. That's the one you paste into the Evy app.

Let Google Chat write to the topic

Open the topic, not the subscription, and go to its Permissions. Add chat-api-push@system.gserviceaccount.com as a principal, with the Pub/Sub Publisher role, and save. Without this permission, Google Chat can't drop messages into the topic and your assistant never receives anything.

Let your assistant read the subscription

Now open the subscription and go to its permissions. Add your service account's email as a principal, with two roles: Pub/Sub Subscriber and Pub/Sub Viewer. Save.

Don't give it Pub/Sub roles on the whole project. These two on the subscription are enough.

Set up the Chat app

Open the Google Chat configuration

Go to APIs & Services > Google Chat API and open the Configuration tab.

Fill in the app details

  • In App name, the name you'll see in Chat, for example Rosa's Flower Shop Assistant.
  • In Avatar URL, the address of a public PNG image, for example the logo on your website.
  • In Description, a short sentence, for example Flower shop assistant.

Choose where it can talk

In Functionality, tick Receive 1:1 messages and Join spaces and group conversations.

Connect it to the topic

In Connection settings, choose Cloud Pub/Sub and write the topic's full name: projects/rosa-flowers-chat/topics/assistant-chat. The topic goes here. You paste the subscription into the Evy app.

Decide who can use it

In Visibility, make the app available only to you or to the people in your company who are going to use it, with their emails. Don't publish it for everyone. Click Save.

Connect Google Chat in the app

Open Messaging

Open the Evy app, on your computer or in your browser, and click Messaging in the menu.

Choose Google Chat

In the list, click Google Chat. The card says Disabled and Needs setup. Below it is the How to connect it section, with the Open setup guide link, which opens this same page.

Paste the key

Open the .json file you downloaded with a text editor, like Notepad on Windows or TextEdit on Mac. Select all the text and copy it. In the Required section, paste it into Path to SA JSON (or empty for ADC). The field's name talks about a path, but it takes the whole content of the file. It has to start with { and end with }.

Write the project and the subscription

In the Recommended section:

  • In GCP project ID, your project ID, for example rosa-flowers-chat.
  • In Pub/Sub subscription name, the subscription's full name, for example projects/rosa-flowers-chat/subscriptions/assistant-chat-sub.

Leave the three fields that start with HTTP events empty. They're for another way of connecting Google Chat that doesn't reach your assistant.

Write who can talk to your assistant

In the same section, write your Workspace email in Allowed user emails (comma-separated). If there are several of you, separate them with commas: rosa@rosaflowers.com,lola@rosaflowers.com.

Click Save changes

Click Save changes, at the bottom right. The notice "Google Chat setup saved" appears. The switch at the bottom left of the card turns on by itself. At the top, "Saved. Restart your assistant to apply the changes." appears, with the Restart now button.

Click Restart now

Click Restart now. While your assistant restarts, the button says Restarting… and your assistant doesn't answer on any channel. When it finishes, the card says Connected.

If the card still says Restart needed after a couple of minutes, restart your assistant from the panel: at app.evyagent.ai, click Servers > Manage and, in Health, Restart assistant.

Check that it answers

When your assistant is back, write to it from Google Chat as we explain in the next section.

Write to your assistant on Google Chat

  • By direct message: in Google Chat, click New chat, search for your app's name and write to it. It answers everything you write.
  • In a space: type @ and your app's name. If the app isn't in the space yet, Google Chat offers to add it. If you don't mention it, it doesn't answer.

If you write inside a thread, your assistant answers in that same thread. Each thread is a separate conversation with your assistant.

While your assistant prepares the answer, the app posts a waiting message. When it finishes, it swaps that message for the answer. Answers longer than 4,000 characters arrive in several messages.

Change the details or who can write

In the app, open Messaging > Google Chat. The details you've already saved have the Saved label and show up hidden. Paste only what you're changing and click Save changes. Anything you leave empty stays as it was. Then click Restart now, at the top of the card.

  • To give someone else access: in Allowed user emails (comma-separated), write the full list, with the emails you already had and the new one. What you write replaces the previous list.
  • To remove someone: write the full list without their email.
  • To change the key: in Google Cloud, create a new key in your service account's Keys. Paste the whole content of the new file into its field, in the Required section. Then delete the old key in Keys.

If you leave the list empty

If you don't write any email, your assistant doesn't answer anyone on Google Chat. Anyone who writes to it by direct message gets a notice that they don't have permission to talk to your assistant yet, and in the app they show up on the Google Chat card, in Pending requests. Click Approve next to their name only if you know who they are. The person moves to Approved users and can now talk to your assistant. To take their access away, click Revoke and confirm.

Nobody can ask for permission in spaces. There it only answers the people on your list or the ones you approved.

If you let anyone write to your assistant when you signed up

The box "Let anyone write to your assistant", in the last step of sign-up, applies to your whole main assistant. If you ticked it and leave the Google Chat list empty, anyone who can write to your Chat app can talk to your assistant. Fill in Allowed user emails (comma-separated) so that you decide who writes. To turn it off on all your channels, remove GATEWAY ALLOW ALL USERS in Settings > Tools & Keys > Settings, as we explain in Stop letting anyone write.

Pause or remove Google Chat

  • To stop it: turn off the switch on the card and click Restart now. Your details stay saved. If you turn it back on and restart, your assistant answers again with the same details.
  • To cut off access completely: in Google Cloud, delete your service account's key, in Keys. The key saved in the app stops working.
  • To remove the app from a space: do it in Google Chat, from that space.

If something goes wrong

If none of this fixes it, contact support. Tell us which step fails and what message you see. Never send us the key file.

Keep reading

On this page