Google Workspace
Connect to Gmail, Google Sheets, Drive, Calendar, and Docs
Google Workspace Integration
Nodes2Cloud provides deep integration with Google Workspace, allowing you to automate emails, manage spreadsheets, organize files, and handle calendar events.
How to get credentials
Most Google Workspace nodes use OAuth 2.0 or a Google Service Account.
Method 1: OAuth (Recommended for Personal Accounts)
- In Nodes2Cloud, add a Google node to your workflow.
- Select Create New Credential.
- Choose the OAuth method and click Sign in with Google.
- Grant the requested permissions for the specific app (Gmail, Sheets, etc.).
Method 2: Service Account (Recommended for Organizations / Headless Bots)
- Go to the Google Cloud Console.
- Create a new project and enable the APIs you need (e.g., Google Sheets API, Gmail API).
- Go to IAM & Admin → Service Accounts and create a service account.
- Generate a new JSON key for the service account and download it.
- In Nodes2Cloud, create a new Google credential using the Service Account method and paste the JSON contents. (Note: Service accounts have their own email address. You must explicitly share your Google Sheets/Folders with this service account email for it to access them).
1. Gmail
What the node does
Gmail: Send Email sends mail from your own Gmail or Google Workspace account. It asks Google only for permission to send (the gmail.send scope), so it can't read your inbox. The full Gmail node (reply, drafts, labels, search) is coming soon.
Options / Fields
- To / CC / BCC: One address or a comma-separated list. Display names work too, including ones with commas or accents:
"Doe, Jane" <[email protected]>. - Subject and Body: Accents, emoji and non-Latin scripts are encoded correctly in both.
- Email Type:
Plain Text,HTML, orHTML + plain-text fallback. The fallback sends your HTML with a plain-text copy, which mail clients and spam filters prefer over HTML alone. Plain-Text Version sets that copy yourself. Leave it blank and the node derives it from the HTML, keeping links. - Attachment(s): A file, or a list of files, from an upstream file node.
- Sender Name: The display name in front of the sending address.
- From Address (Send-as alias): Send from one of your verified Send mail as aliases (Gmail Settings → Accounts). Gmail replaces an unverified address with your own.
- Reply-To: Where replies should go.
- Thread ID: Files the message in an existing conversation in your mailbox. Use the
threadIdfrom an earlier send. Gmail only threads it when the subject matches the original, e.g.Re: <original subject>. - In-Reply-To (Message-ID) and References: Make the recipient's mail client thread your reply. Use the
messageIdandreferencesan Email Trigger gives you when someone writes back. Angle brackets are added if you leave them off. - Custom Headers: Extra headers, for example
List-Unsubscribewith a value like<mailto:[email protected]>. Values can use expressions. Headers the node sets itself (From, To, Subject and so on) can't be overridden here.
The output is Gmail's response, e.g. {{$node.send_1.id}} and {{$node.send_1.threadId}}. Store threadId if you plan to follow up.
Outreach and follow-ups
- Sending: run Gmail: Send Email from a list (Google Sheets, a webhook, or an MCP Tool trigger your own agent calls). Record each send in D1 Query so the same person is never emailed twice.
- Follow-up in the same thread: a later run sends with the stored Thread ID and a
Re:subject. - Detecting replies: set Reply-To to an address on your own domain that an Email Trigger listens on. The trigger gives you
from,subject,text,messageIdandreferences. Mark the lead as replied there, so the follow-up is skipped, and forward the message to your inbox. - Respect Gmail's limits: Gmail caps how many messages an account can send per day. Space sends out with Loop and Delay, and keep outreach personal and low-volume.
The send-only connection can't read your inbox, so it can't see a sent message's Message-ID. Thread ID keeps follow-ups together in your own mailbox. The recipient's client threads them reliably once you have a Message-ID from their reply.
2. Google Sheets
What the node does
Read, write, and manipulate data within Google Sheets.
Sub-Nodes / Actions
- Google Sheets: Read Row(s): Fetches rows from a specific Sheet and Range.
- Google Sheets: Append Row: Adds a new row of data to the bottom of a sheet.
- Google Sheets: Update Row: Updates an existing row based on a matching column value or row number.
- Google Sheets: Clear Row(s): Clears data from specified rows.
- Google Sheets: On Updated Row (Trigger): Triggers a workflow when a row is added or modified in a sheet.
Common Fields
- Spreadsheet ID: The long ID found in the URL of your Google Sheet.
- Sheet Name: The name of the specific tab (e.g.,
Sheet1). - Data (JSON): The payload to append or update, formatted as a JSON object mapping column headers to values.
3. Google Drive
What the node does
Manage files and folders in your Google Drive.
Sub-Nodes / Actions
- Google Drive: Upload File: Uploads a file to a specific folder.
- Google Drive: Download File: Retrieves a file's contents for use in downstream nodes.
- Google Drive: List Files / Folders: Searches for files matching specific criteria.
- Google Drive: Delete File: Moves a file to the trash.
Common Fields
- File ID: The unique ID of the file.
- Folder ID: The unique ID of the destination folder (found in the folder's URL).
4. Google Calendar
What the node does
Automate event creation and calendar management.
Sub-Nodes / Actions
- Google Calendar: Create Event: Creates a new event. You can specify the
Start Time,End Time,Summary,Description, andAttendees. - Google Calendar: List Events: Fetches upcoming events from a specific calendar.
- Google Calendar: Update Event: Modifies an existing event.
- Google Calendar: Delete Event: Removes an event.
Common Fields
- Calendar ID: Usually your email address (for your primary calendar) or a specific Calendar ID found in the calendar's settings.
- Event ID: The unique identifier for a specific event.
5. Google Docs
What the node does
Automate document creation and modification.
Sub-Nodes / Actions
- Google Docs: Create Document: Creates a new, blank document.
- Google Docs: Append Text: Adds text to the end of a document.
- Google Docs: Replace Text: Finds and replaces specific text within a document (useful for filling out templates).
- Google Docs: On Updated (Trigger): Triggers when a document's content changes.
Common Troubleshooting
- Permission Denied / 403 Error: If using a Service Account, ensure you have opened the Google Sheet/Doc/Folder in your browser and explicitly shared it with the service account's email address (e.g.,
[email protected]). - API Not Enabled: If you are using your own Google Cloud Project credentials, you must explicitly enable the specific API (e.g., Google Sheets API) in the Google Cloud Console.
- Spreadsheet ID vs URL: Make sure you are only extracting the ID from the URL. For example, in
https://docs.google.com/spreadsheets/d/1BxiMVs0X/edit, the ID is1BxiMVs0X.
