Back to Integrations
integrationYouTube node
integrationGoogle Sheets node

YouTube and Google Sheets integration

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

How to connect YouTube and Google Sheets

  • 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.

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

Step 2: Add and configure YouTube and Google Sheets nodes

You can find YouTube and Google Sheets 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 YouTube and Google Sheets nodes one by one: input data on the left, parameters in the middle, and output data on the right.

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

Step 3: Connect YouTube and Google Sheets

A connection establishes a link between YouTube and Google Sheets (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.

YouTube and Google Sheets integration: Connect YouTube and Google Sheets

Step 4: Customize and extend your YouTube and Google Sheets 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 YouTube and Google Sheets with any of n8n’s 1000+ integrations, and incorporate advanced AI logic into your workflows.

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

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

Save and run the workflow to see if everything works as expected. Based on your configuration, data should flow from YouTube to Google Sheets 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.

YouTube and Google Sheets integration: Test and activate your YouTube and Google Sheets 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 YouTube and Google Sheets 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 YouTube and Google Sheets integration

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

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

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

FAQs

  • Can YouTube connect with Google Sheets?

  • Can I use YouTube’s API with n8n?

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

  • Is n8n secure for integrating YouTube and Google Sheets?

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

Need help setting up your YouTube and Google Sheets integration?

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

Looking to integrate YouTube and Google Sheets in your company?

Over 3000 companies switch to n8n every single week

Why use n8n to integrate YouTube with Google Sheets

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