Skip to main content

Overview

Six Google services are available through a shared OAuth flow. Connect once with your Google account — and your AI agents get access to email, documents, spreadsheets, files, calendar, and video meetings.

Supported Services

ServiceToolsDescription
Gmail6Send emails, read inbox, search, reply, create drafts, get attachments
Google Docs5Create, read, append, search, and export documents
Google Sheets7Read/write ranges, append rows, search, create spreadsheets
Google Drive8List, search, upload, download, share files and folders
Google Calendar6Create events, check availability, find free slots
Google Meet1Create video meeting links

Authentication

All Google Workspace integrations use OAuth 2.0 with offline access:
1

Add Integration

Go to IntegrationsAdd Integration → select any Google service (e.g., Gmail).
2

OAuth Consent

Click “Connect with Google”. You’ll be redirected to Google’s consent screen where you authorize access to the specific service.
3

Token Storage

Revol receives an access token and a refresh token. Both are encrypted and stored in the database. The refresh token provides long-term access — Revol automatically refreshes expired access tokens.
4

Tools Provisioned

After successful OAuth, agent tools are created automatically based on the integration type.

OAuth Scopes

Each service requests only the scopes it needs:
ServiceScope
Gmailgmail.modify
Google Docsdocuments, drive.file
Google Sheetsspreadsheets, drive.file
Google Drivedrive
Google Calendarcalendar
Google Meetcalendar (Meet links are created via Calendar API)

Agent Tools

ToolDescription
send_emailCompose and send an email with subject, body, optional CC/BCC
read_inboxList recent emails from inbox
search_emailsSearch emails by Gmail query syntax (from, subject, date, keywords)
reply_to_emailReply to a specific email thread
create_draftCreate a draft email without sending
get_attachmentsDownload or inspect email attachments

Using Tools in Workflow Nodes

Google Workspace tools are especially powerful in workflow nodes where the agent can combine multiple tools in a single conversation:
  1. Connect a Google service and verify via OAuth
  2. The tools appear in the agent’s Tools tab
  3. Add them to custom nodes in the workflow editor
  4. The LLM calls them automatically when relevant
Example workflow: A customer asks to schedule a demo →
  • Agent calls check_availability to find free slots
  • Customer picks a time → agent calls create_event to book it
  • Agent calls create_meeting to generate a Google Meet link
  • Agent calls send_email to send a confirmation email with the link

Use Cases

Agent qualifies a lead via chat → uses send_email to send a follow-up with pricing → logs the interaction in Google Sheets via append_rows.
Customer asks to schedule a meeting → agent uses check_availability to find free slots → create_event to book it → create_meeting to generate a Meet link → sends confirmation via chat or email.
Agent collects information from the customer → uses create_document to generate a proposal or report → share_file to give the customer access.
Every conversation ending with a lead → agent uses append_rows to add lead data to a Google Sheet → send_email to notify the sales team.

Token Refresh

Google access tokens expire after 1 hour. Revol handles this automatically:
  1. Before each API call, Revol checks if the token is within 5 minutes of expiry
  2. If expired, uses the stored refresh token to obtain a new access token
  3. The new token is encrypted and saved back to the database
  4. The API call proceeds with the fresh token
If a refresh token becomes invalid (user revoked access), the integration is marked as disconnected and needs to be re-authorized.