Skip to main content
Back to list of integrations Use the Gmail integration to let agents send, reply to, draft, find, and read email, and request approvals by email, through Action Tools.

Supported actions

Triggers

Prerequisites

  • A Google Cloud project with the Gmail API enabled and an OAuth consent screen. In Testing status, only test users can authorize and refresh tokens expire after seven days.

Set up the integration

1

Create a Google OAuth client

Create an OAuth client ID of type Web application, add the Artemis Callback URL to Authorized redirect URIs, and copy the Client ID and Client Secret. See Using OAuth 2.0 to access Google APIs.
2

Create the auth profile

In Integrations, select Gmail > Connect. On Project Auth Profiles, select New Profile > Integration Profile > Gmail > Continue. Enter the Client ID and Client Secret, select Create Profile, and then select Authorize.Artemis pre-fills the Google endpoints, the access_type=offline and prompt=consent parameters, and these scopes: gmail.send, gmail.readonly, gmail.compose, and email. Add the same scopes to the consent screen.Usage Mode: Preconfigured shares one authorization across users; JIT and Preflight ask each user to authorize, during or before the session. See Auth profiles.
3

Create the action tool

In Tools, select New Tool > Action > Gmail > Continue. Select the Action and Auth Profile, set parameter defaults (leave a value empty for the agent to supply at runtime), and select Create Tool. Then assign the tool to an agent.

Action reference

Sends the request and pauses the tool until the recipient approves or rejects it.
Provide at least one search filter.
Sends a request to any Gmail API endpoint. Artemis injects the authorization header from the auth profile.

Troubleshoot common issues