Back to Integrations
integrationGoogle Sheets node
integrationYouTube node

Google Sheets and YouTube integration

Save yourself the work of writing custom integrations for Google Sheets and YouTube and use n8n instead. Build adaptable and scalable Data & Storage, Productivity, and Marketing workflows that work with your technology stack. All within a building experience you will love.

How to connect Google Sheets and YouTube

  • Step 1: Create a new workflow
  • Step 2: Add and configure nodes
  • Step 3: Connect
  • Step 4: Customize and extend your integration
  • Step 5: Test and activate your workflow

Step 1: Create a new workflow and add the first step

In n8n, click the "Add workflow" button in the Workflows tab to create a new workflow. Add the starting point – a trigger on when your workflow should run: an app event, a schedule, a webhook call, another workflow, an AI chat, or a manual trigger. Sometimes, the HTTP Request node might already serve as your starting point.

Google Sheets and YouTube integration: Create a new workflow and add the first step

Step 2: Add and configure Google Sheets and YouTube nodes

You can find Google Sheets and YouTube in the nodes panel. Drag them onto your workflow canvas, selecting their actions. Click each node, choose a credential, and authenticate to grant n8n access. Configure Google Sheets and YouTube nodes one by one: input data on the left, parameters in the middle, and output data on the right.

Google Sheets and YouTube integration: Add and configure Google Sheets and YouTube nodes

Step 3: Connect Google Sheets and YouTube

A connection establishes a link between Google Sheets and YouTube (or vice versa) to route data through the workflow. Data flows from the output of one node to the input of another. You can have single or multiple connections for each node.

Google Sheets and YouTube integration: Connect Google Sheets and YouTube

Step 4: Customize and extend your Google Sheets and YouTube integration

Use n8n's core nodes such as If, Split Out, Merge, and others to transform and manipulate data. Write custom JavaScript or Python in the Code node and run it as a step in your workflow. Connect Google Sheets and YouTube with any of n8n’s 1000+ integrations, and incorporate advanced AI logic into your workflows.

Google Sheets and YouTube integration: Customize and extend your Google Sheets and YouTube integration

Step 5: Test and activate your Google Sheets and YouTube workflow

Save and run the workflow to see if everything works as expected. Based on your configuration, data should flow from Google Sheets to YouTube or vice versa. Easily debug your workflow: you can check past executions to isolate and fix the mistake. Once you've tested everything, make sure to save your workflow and activate it.

Google Sheets and YouTube integration: Test and activate your Google Sheets and YouTube workflow

Automatically promote your YouTube video on X

YouTube to X Post

Overview

This n8n workflow automates the process of promoting your latest YouTube videos on X (formerly Twitter). It ensures that posts are engaging, concise, and follow platform-specific requirements. Additionally, the workflow logs social posts into a Google Sheet for record-keeping.

Features

Fetch Latest YouTube Videos:** Pulls recently uploaded videos from a specified channel.
Generate Engaging X Posts:** Uses OpenAI's GPT-4 to create tailored, witty posts about your videos.
Character Limit Validation:** Ensures posts comply with X's character limit by rewriting if necessary.
Post Scheduling:** Automates post publishing to X.
Google Sheets Integration:** Logs posts and their status for tracking and management.
Optional Notifications:** Sends updates via Discord, Slack, or Gmail (disabled by default).

How It Works

Trigger:
Manually trigger the workflow or set a scheduled check for new videos (disabled by default).

Fetch YouTube Videos:
Retrieves the latest videos from your YouTube channel, filtering duplicates.

Content Creation:
OpenAI generates a witty and humanized post under 220 characters, using video title and description.
If the post exceeds the character limit, it is rewritten automatically.

Google Sheets Logging:
Logs the generated post to a Google Sheet with details like time, date, and post status.

Post to X:
Publishes the generated post on X. Updates the Google Sheet with the post URL.

Optional Notifications:
Sends notifications about the published post via Discord, Slack, or Gmail.

Setup Instructions

Credentials:
Add credentials for:
YouTube API
OpenAI API
Google Sheets API
X (formerly Twitter) API
Use the accounts associated with "AlexK1919."

YouTube Node:
Specify your YouTube Channel ID in the Fetch Latest Videos node.
Find your Channel ID here.

Google Sheets Node:
Configure the node with your Google Sheet for logging posts. Use the linked sheet: AlexK1919 Social Posts.

OpenAI Node:
Set up your OpenAI API key for generating posts.

X Post Node:
Connect your X account to the Post to X node.

Optional Notifications:
Configure Discord, Slack, or Gmail nodes for custom notifications.

Customization

Schedule:**
Enable and modify the Check Every 2 Hours node to automatically check for new videos.

Post Format:**
Edit the OpenAI prompt in the Generate X Post node to tweak the tone or style of the generated posts.

Additional Platforms:**
Expand this workflow to post on other social platforms by adding respective nodes (e.g., Facebook, LinkedIn).

Notes

Posts are validated for character limits but are restricted to 220 characters to ensure compliance with X's guidelines and leave space for links.
Posts are logged in the Google Sheet with details, including post status and timestamps.
Current integrations are focused on promoting YouTube content; additional types can be supported with minor adjustments.

Contact

For support or inquiries:
Alex Kim**
About Me

Nodes used in this workflow

Popular Google Sheets and YouTube workflows

+4

Automatically promote your YouTube video on X

YouTube to X Post Overview This n8n workflow automates the process of promoting your latest YouTube videos on X (formerly Twitter). It ensures that posts are engaging, concise, and follow platform-specific requirements. Additionally, the workflow logs social posts into a Google Sheet for record-keeping. Features Fetch Latest YouTube Videos:** Pulls recently uploaded videos from a specified channel. Generate Engaging X Posts:** Uses OpenAI's GPT-4 to create tailored, witty posts about your videos. Character Limit Validation:** Ensures posts comply with X's character limit by rewriting if necessary. Post Scheduling:** Automates post publishing to X. Google Sheets Integration:** Logs posts and their status for tracking and management. Optional Notifications:** Sends updates via Discord, Slack, or Gmail (disabled by default). How It Works Trigger: Manually trigger the workflow or set a scheduled check for new videos (disabled by default). Fetch YouTube Videos: Retrieves the latest videos from your YouTube channel, filtering duplicates. Content Creation: OpenAI generates a witty and humanized post under 220 characters, using video title and description. If the post exceeds the character limit, it is rewritten automatically. Google Sheets Logging: Logs the generated post to a Google Sheet with details like time, date, and post status. Post to X: Publishes the generated post on X. Updates the Google Sheet with the post URL. Optional Notifications: Sends notifications about the published post via Discord, Slack, or Gmail. Setup Instructions Credentials: Add credentials for: YouTube API OpenAI API Google Sheets API X (formerly Twitter) API Use the accounts associated with "AlexK1919." YouTube Node: Specify your YouTube Channel ID in the Fetch Latest Videos node. Find your Channel ID here. Google Sheets Node: Configure the node with your Google Sheet for logging posts. Use the linked sheet: AlexK1919 Social Posts. OpenAI Node: Set up your OpenAI API key for generating posts. X Post Node: Connect your X account to the Post to X node. Optional Notifications: Configure Discord, Slack, or Gmail nodes for custom notifications. Customization Schedule:** Enable and modify the Check Every 2 Hours node to automatically check for new videos. Post Format:** Edit the OpenAI prompt in the Generate X Post node to tweak the tone or style of the generated posts. Additional Platforms:** Expand this workflow to post on other social platforms by adding respective nodes (e.g., Facebook, LinkedIn). Notes Posts are validated for character limits but are restricted to 220 characters to ensure compliance with X's guidelines and leave space for links. Posts are logged in the Google Sheet with details, including post status and timestamps. Current integrations are focused on promoting YouTube content; additional types can be supported with minor adjustments. Contact For support or inquiries: Alex Kim** About Me

Build your own Google Sheets and YouTube integration

Create custom Google Sheets and YouTube 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.

Google Sheets supported actions

Create
Create a spreadsheet
Delete
Delete a spreadsheet
Append or Update Row
Append a new row or update an existing one (upsert)
Append Row
Create a new row in a sheet
Clear
Delete all the contents or a part of a sheet
Create
Create a new sheet
Delete
Permanently delete a sheet
Delete Rows or Columns
Delete columns or rows from a sheet
Get Row(s)
Retrieve one or more rows from a sheet
Update Row
Update an existing row in a sheet

YouTube supported actions

Get
Retrieve a channel
Get Many
Retrieve many channels
Update
Update a channel
Upload Banner
Upload a channel banner
Create
Create a playlist
Delete
Delete a playlist
Get
Get a playlist
Get Many
Retrieve many playlists
Update
Update a playlist
Add
Add an item to a playlist
Delete
Delete a item from a playlist
Get
Get a playlist's item
Get Many
Retrieve many playlist items
Delete
Delete a video
Get
Get a video
Get Many
Retrieve many videos
Rate
Rate a video
Update
Update a video
Upload
Upload a video
Get Many
Retrieve many video categories

FAQs

  • Can Google Sheets connect with YouTube?

  • Can I use Google Sheets’s API with n8n?

  • Can I use YouTube’s API with n8n?

  • Is n8n secure for integrating Google Sheets and YouTube?

  • How to get started with Google Sheets and YouTube integration in n8n.io?

Need help setting up your Google Sheets and YouTube integration?

Discover our latest community's recommendations and join the discussions about Google Sheets and YouTube integration.
Sergey Komardenkov
sérgio eduardo floresta filho
Julian
therealJMT
Guilherme

Looking to integrate Google Sheets and YouTube in your company?

Over 3000 companies switch to n8n every single week

Why use n8n to integrate Google Sheets with YouTube

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