Back to Integrations
integrationGoogle Drive node
integrationOpenAI node

Google Drive and OpenAI integration

n8n lets you integrate Google Drive with OpenAI to build powerful workflows. Design automation that extracts, transforms and loads data between your apps and services. You can choose from thousands of ready-made apps or use our universal HTTP connector to sync apps not yet in our library.

Integrate Google Drive and OpenAI

Build your own Google Drive and OpenAI integration

Create custom Google Drive and OpenAI workflows by choosing triggers and actions. Nodes come with global operations and settings, as well as app-specific parameters that can be configured. You can also use the HTTP Request node to query data from any app or service with a REST API.

How to connect Google Drive and OpenAI

  • Step 1: Add the first step

  • Step 2: Add Google Drive and OpenAI nodes

  • Step 3: Connect Google Drive and OpenAI

  • Step 4: Run workflow

OpenAI Assistant workflow: upload file, create an Assistant, chat with it!

This is an end-to-end workflow for creating a simple OpenAI Assistant. The whole process is done with n8n nodes and do not require any programming experience.

The workflow is divided into three main steps:

Step 1: Get a Google Drive File and Upload to OpenAI

  • The workflow starts by retrieving a file from Google Drive using the "Get File" node.
  • The example file used is a Music Festival document.
  • The retrieved file is then uploaded to OpenAI using the "Upload File to OpenAI" node.
  • Run this section only once. The file is stored persistently on the OpenAI side.

Step 2: Set Up a New Assistant

  • In this step, a new assistant is created using the "Create new Assistant" node.
  • The assistant is given a name, description, and system prompt.
  • The uploaded file from Step 1 is attached as a knowledge source for the assistant.
  • Same as for Step 1, run this section only once.

Step 3: Chat with the Assistant

  • The "Chat Trigger" node initiates the conversation with the assistant.
  • The "OpenAI Assistant" node handles the conversation, using the assistant created in Step 2.

Step 4: Expand the Assistant

By following this workflow, users can create their own AI-powered assistants using OpenAI's API and integrate them with various platforms like WhatsApp and Telegram.

Nodes used in this workflow

Over 3000 companies switch to n8n every single week

Google Drive supported actions

Copy
Create a copy of an existing file
Create From Text
Create a file from a provided text
Delete
Permanently delete a file
Download
Download a file
Move
Move a file to another folder
Share
Add sharing permissions to a file
Update
Update a file
Upload
Upload an existing file to Google Drive
Search
Search or list files and folders
Create
Create a folder
Delete
Permanently delete a folder
Share
Add sharing permissions to a folder
Create
Create a shared drive
Delete
Permanently delete a shared drive
Get
Get a shared drive
Get Many
Get the list of shared drives
Update
Update a shared drive

OpenAI supported actions

Create an Assistant
Create a new assistant
Delete an Assistant
Delete an assistant from the account
List Assistants
List assistants in the organization
Message an Assistant
Send messages to an assistant
Update an Assistant
Update an existing assistant
Message a Model
Create a completion with GPT 3, 4, etc.
Classify Text for Violations
Check whether content complies with usage policies
Analyze Image
Take in images and answer questions about them
Generate an Image
Creates an image from a text prompt
Generate Audio
Creates audio from a text prompt
Transcribe a Recording
Transcribes audio into the text
Translate a Recording
Translate audio into the text in the english language
Delete a File
Delete a file from the server
List Files
Returns a list of files that belong to the user's organization
Upload a File
Upload a file that can be used across various endpoints

Looking to integrate Google Drive and OpenAI in your company?

Why use n8n to integrate Google Drive with OpenAI

Build complex workflows, really fast

Build complex workflows, really fast

Handle branching, merging and iteration easily.
Pause your workflow to wait for external events.

Code when you need it, UI when you don't

Simple debugging

Your data is displayed alongside your settings, making edge cases easy to track down.

Use templates to get started fast

Use 1000+ workflow templates available from our core team and our community.

Reuse your work

Copy and paste, easily import and export workflows.

Implement complex processes faster with n8n

red iconyellow iconred iconyellow icon