Set up Google connections so robots and agents can use Google Drive, Gmail, Google Calendar and Google Sheets.
Roberty Studio offers four Google connections, each tied to one service:
| Connection | Service |
|---|---|
| Google Drive | Managing files and folders on Drive |
| Gmail | Sending and reading email |
| Google Calendar | Creating and reading events |
| Google Sheets | Reading and writing spreadsheets |
Creating and authenticating works the same way for all four — the only difference is which service each connection unlocks inside your robots and agents.
Authentication modes
Google SSO (the default)
The simplest one. When you create the connection a sign-in window opens — sign in with the account you want and authorise the access. Nothing else to configure.
Your own credentials (bring your own credentials)
For organisations that must use a Google Cloud application of their own — because of security requirements, quota limits, or the need to control the published app. In this mode you supply the Client ID and Client Secret of your own Google Cloud project.
The steps below work for any of the four connections. To enable more than one service, just turn on the matching APIs in the same project.
You need a Google Cloud Console account to create and configure the project.
1. Create a Google Cloud project
- In the Google Cloud Console, click Select a project (or
Ctrl+O) and then New project, top right. - Name the project and click Create.
- Make sure the new project is selected before going on.
2. Enable the APIs you need
-
In the side menu, click APIs & Services.
-
Click + Enable APIs and Services.
-
Search for and enable the API matching each connection you want:
Connection in Roberty API to enable Google Drive Google Drive API Gmail Gmail API Google Calendar Google Calendar API Google Sheets Google Sheets API You can enable several APIs in the same project and reuse the same credentials for every connection.
3. Create the OAuth consent screen
- In the APIs & Services side menu, click OAuth consent screen, then Get started.
- Fill in the application's name and the contact email.
- Under Audience, choose External.
4. Create the OAuth client
- Once the consent screen exists, click Create OAuth client.
- For application type, choose Web application.
- Under Authorised redirect URIs, add:
https://studio.roberty.app/oAuthCallback/redirect
- Click Create.
- When it is done, select the client you created and click the download icon to save the credentials file — you will need the Client ID and Client Secret inside it.
5. Publish the application
In the side menu, open Audience and click Publish app.
6. Configure the connection in Roberty
- In the Studio, go to Workspace → Connections and create a new connection of the type you want (Google Drive, Gmail, Google Calendar or Google Sheets).
- Choose the Your own credentials mode.
- Enter the Client ID and Client Secret from the previous step.
- Complete the OAuth authentication in the window that opens.
Repeat step 6 for each connection type you want — the same project's credentials can be reused.
Switching the authenticated account
Open the connection and click Switch account. A new sign-in window opens so you can authenticate with another account.
Using it in the Designer (RPA robots)
For RPA robots, only the Google Drive connection has a connection action in the Designer. Add the Google Drive connection action to the flow and pick the connection saved in the workspace.
The other Google connections (Gmail, Google Calendar, Google Sheets) are used directly by AI agents — just pick them in the agent's settings.