This page explains how to configure and install a test version of your Google Chat app so that you can try out interactive features—such as slash commands, direct messaging, and link previews—before releasing them to end users.
By testing your Chat app, you can ensure that it offers a high-quality user experience and functions as expected. If you're publishing your Chat app publicly, testing also helps you make sure that your Chat app meets the requirements for being listed in the Google Workspace Marketplace.
To safely test at each phase of your Chat app's lifecycle, we recommend that you set up separate environments for development, staging, and production. In each environment, you should create and deploy a different Chat app. To learn how to set up environments, see Create and manage deployments for your Google Chat app.
Prerequisites
-
A Google Chat app that's enabled for interactive features. To create an
interactive Chat app, complete one of the following quickstarts based
on the app architecture that you want to use:
- HTTP service with Google Cloud Functions
- Google Apps Script
- Google Cloud Dialogflow CX
- Google Cloud Pub/Sub
To grant access to your Chat app for testing:
- You must have the
chat.owner
IAM role . You can also have this role as an editor or owner of the Google Cloud project associated with the Chat app. For details, see Grant an IAM role by using the Google Cloud console in the Google Cloud documentation. - Anyone who tests the Chat app must belong to the same Google Workspace organization where your Chat app is configured.
- You must have the
Add trusted testers
For interactive Chat apps, the Chat API lets you share your Chat app with specific people in your Google Workspace organization. The people that you specify can add the Chat app to a space and test its features before you publish it to the Marketplace. To test your own Chat app, you must add yourself as a trusted tester.
To make your test Chat app available to you and others in your organization, update the Chat API Visibility setting in Google Cloud console:
- In the Google Cloud console, open the Google Chat API page:
- Click the Configuration tab.
- Go to Interactive features > Visibility, and then select the
Make this Chat app available to specific people and groups in
GOOGLE_WORKSPACE_ORGANIZATION
, whereGOOGLE_WORKSPACE_ORGANIZATION
is the name of your organization. - In the field that appears after selecting the checkbox, enter the email addresses of the people or Google Groups that you want to access your Chat app, separated by commas. To test your own Chat app, enter the email address that you use to access Google Chat.
- Click Save.
Add your Chat app to spaces
To start testing interactive features, you must add your Chat app to one or more spaces, such as a direct message, group message, or named space. If you haven't added all the members in the space as trusted testers, they might be able to see the Chat app in the space but can't interact directly with it.
Chat apps that haven't been published don't appear in the listing results from the Google Workspace Marketplace. To find unpublished Chat apps in Google Chat, you can search for the Chat app, find it under
Google Workspace tools while composing a message, or @mention the Chat app in a message.To add your Chat app to a space, do the following:
Open Google Chat using the Google Workspace account that you provided when you added yourself as a trusted tester.
- To start a direct message with the Chat app, do the following:
- Click New chat.
- In the Add 1 or more people field, type the name of your Chat app.
- Select your Chat app from the results. A direct message opens.
- To add the Chat app to an existing space, do to the following:
- Under Spaces, click the name of the space.
- In the Chat space's new message field, enter
@
and the name of the Chat app. Select your Chat app from the results - Press
Enter
or click Send. - If the Add to space name window appears, click Add to space. Your message with the @mention is posted to the Chat space. A text also appears that explains that you added the Chat app to the space.
You can now test the Chat app in the space.
When you test your Chat app, you should review all features and then log and fix any errors that you encounter. To understand and address any error messages, see Troubleshoot and fix Google Chat errors.
Review and test your Chat app for the Google Workspace Marketplace
To distribute and share a Chat app to anyone not listed as a trusted tester, you must configure and publish the Chat app to the Google Workspace Marketplace. For details, see Publish Google Chat apps.
If you want to publish your Chat app publicly on the Google Workspace Marketplace, you must submit your Chat app for a review. Google reviews your Chat app to make sure that it meets all Marketplace requirements. To learn about the process and requirements, see App review process and requirements for the Google Workspace Marketplace.
Related topics
- Create and manage deployments for your Google Chat app
- Troubleshoot and fix Google Chat errors
- Query error logs for Google Chat apps
- Publish Google Chat apps