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
Send Email
Send Email
Request Approval in Email
Request Approval in Email
Sends the request and pauses the tool until the recipient approves or rejects it.
Create Draft Reply
Create Draft Reply
Get Email
Get Email
Find Email
Find Email
Provide at least one search filter.
Custom API Call
Custom API Call
Sends a request to any Gmail API endpoint. Artemis injects the authorization header from the auth profile.