# Integrate Google Workspace with OpenAI: n8n workflow template

> Started by an event in a connected app, and works across Gmail, Google Calendar and Google Sheets.

Source: https://millionrounds.com/workflow/integrate-google-workspace-with-openai (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Scheduling](https://millionrounds.com/workflows?category=Scheduling#library)

# Integrate Google Workspace with OpenAI

Started by an event in a connected app, and works across Gmail, Google Calendar and Google Sheets. 39 steps: large, and worth reading before you trust it with anything live.

Large

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fintegrate-google-workspace-with-openai)

**39 steps** Large: read it before trusting it with anything live

**0** Branches: places the flow splits

**0** Loops or waits

**3** Services it connects to

## The flow

Starts it 6 Service 33

The steps in the order they run, from what starts it.

- 1 **Get a message in Gmail** Gmail Tool *Service*
- 2 **Send a message in Gmail** Gmail Tool *Service*
- 3 **Get many messages in Gmail** Gmail Tool *Service*
- 4 **Reply to a message in Gmail** Gmail Tool *Service*
- 5 **Create a draft in Gmail** Gmail Tool *Service*
- 6 **Create an event in Google Calendar** Google Calendar Tool *Service*
- 7 **Get many events in Google Calendar** Google Calendar Tool *Service*
- 8 **Get an event in Google Calendar** Google Calendar Tool *Service*
- 9 **Delete an event in Google Calendar** Google Calendar Tool *Service*
- 10 **Get availability in a calendar in Google Calendar** Google Calendar Tool *Service*
- 11 **Download file in Google Drive** Google Drive Tool *Service*
- 12 **Search files and folders in Google Drive** Google Drive Tool *Service*
- 13 **Get many shared drives in Google Drive** Google Drive Tool *Service*
- 14 **Create file from text in Google Drive** Google Drive Tool *Service*
- 15 **Move file in Google Drive** Google Drive Tool *Service*
- 16 **Create a document in Google Docs** Google Docs Tool *Service*
- 17 **Get a document in Google Docs** Google Docs Tool *Service*
- 18 **Update a document in Google Docs** Google Docs Tool *Service*
- 19 **Get row(s) in sheet in Google Sheets** Google Sheets Tool *Service*
- 20 **Append or update row in sheet in Google Sheets** Google Sheets Tool *Service*
- 21 **Create sheet in Google Sheets** Google Sheets Tool *Service*
- 22 **Delete rows or columns from sheet in Google Sheets** Google Sheets Tool *Service*
- 23 **Update row in sheet in Google Sheets** Google Sheets Tool *Service*
- 24 **Clear sheet in Google Sheets** Google Sheets Tool *Service*
- 25 **Create a presentation in Google Slides** Google Slides Tool *Service*
- 26 **Get a presentation in Google Slides** Google Slides Tool *Service*
- 27 **Get slides from a presentation in Google Slides** Google Slides Tool *Service*
- 28 **Replace text in a presentation in Google Slides** Google Slides Tool *Service*
- 29 **Delete a draft in Gmail** Gmail Tool *Service*
- 30 **Delete a message in Gmail** Gmail Tool *Service*
- 31 **Add label to message in Gmail** Gmail Tool *Service*
- 32 **Remove label from message in Gmail** Gmail Tool *Service*
- 33 **Send message and wait for response in Gmail** Gmail Tool *Service*
- 34 **MCP Gmail Trigger** Mcp trigger *Starts it*
- 35 **MCP Calendar Trigger** Mcp trigger *Starts it*
- 36 **MCP Drive Trigger** Mcp trigger *Starts it*
- 37 **MCP Docs Trigger** Mcp trigger *Starts it*
- 38 **MCP Sheet Trigger** Mcp trigger *Starts it*
- 39 **MCP Slides Trigger** Mcp trigger *Starts it*

## How it's built

- **Starts on:** An event in a connected app
- **Steps:** 39
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Gmail, Google Calendar, Google Sheets
- **Model:** None. This is plumbing, not judgement

## Questions

What does it need to run?

An n8n account, plus your own Gmail, Google Calendar and Google Sheets accounts. You connect your own accounts after importing it; none are included.

What starts it?

It starts on an event in a connected app.

Does it use AI?

No. Every step is fixed logic or a call to a service, so it does the same thing every time.

How long does it take to set up?

Take your time. At 39 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 39 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fintegrate-google-workspace-with-openai)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Gmail](https://millionrounds.com/workflows?service=Gmail#library)[Google Calendar](https://millionrounds.com/workflows?service=Google+Calendar#library)[Google Sheets](https://millionrounds.com/workflows?service=Google+Sheets#library)

## Workflows like it

Also scheduling, with the same services where possible, closest in size first.

- [**Manage HR offboarding and archival with Odoo** 39 steps · Gmail, Google Calendar](https://millionrounds.com/workflow/manage-hr-offboarding-and-archival-with-odoo)
- [**Automated marketing campaign email system with HubSpot** 39 steps · calls a model · Gmail, Google Calendar](https://millionrounds.com/workflow/automated-marketing-campaign-email-system-with-hubspot)
- [**AI daily brief with OpenAI and Gmail** 38 steps · calls a model · Gmail, Google Calendar](https://millionrounds.com/workflow/ai-daily-brief-with-openai-and-gmail)
- [**Priya AI Virtual Assisstant Version 2 with Gemini and OpenAI** 40 steps · calls a model · Gmail, Google Calendar](https://millionrounds.com/workflow/priya-ai-virtual-assisstant-version-2-with-gemini-and-openai)
- [**AI-Powered WhatsApp Chatbot: Complete Booking Assistant** 37 steps · calls a model · Gmail, Google Calendar](https://millionrounds.com/workflow/ai-powered-whatsapp-chatbot-complete-booking-assistant)
- [**Automate agile refinement prep with Gmail and OpenAI** 42 steps · calls a model · Gmail, Google Calendar](https://millionrounds.com/workflow/automate-agile-refinement-prep-with-gmail-and-openai)
