Back to Integrations
integrationGoogle Drive node
integrationX (Formerly Twitter) node

Google Drive and X (Formerly Twitter) integration

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

How to connect Google Drive and X (Formerly Twitter)

  • 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 Drive and X (Formerly Twitter) integration: Create a new workflow and add the first step

Step 2: Add and configure Google Drive and X (Formerly Twitter) nodes

You can find Google Drive and X (Formerly Twitter) 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 Drive and X (Formerly Twitter) nodes one by one: input data on the left, parameters in the middle, and output data on the right.

Google Drive and X (Formerly Twitter) integration: Add and configure Google Drive and X (Formerly Twitter) nodes

Step 3: Connect Google Drive and X (Formerly Twitter)

A connection establishes a link between Google Drive and X (Formerly Twitter) (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 Drive and X (Formerly Twitter) integration: Connect Google Drive and X (Formerly Twitter)

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

Google Drive and X (Formerly Twitter) integration: Customize and extend your Google Drive and X (Formerly Twitter) integration

Step 5: Test and activate your Google Drive and X (Formerly Twitter) workflow

Save and run the workflow to see if everything works as expected. Based on your configuration, data should flow from Google Drive to X (Formerly Twitter) 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 Drive and X (Formerly Twitter) integration: Test and activate your Google Drive and X (Formerly Twitter) workflow

✨🩷Automated social media content publishing factory + system prompt composition

Social Media Content Publishing Factory for Streamlined Content Creation Across Platforms

Who is this for?
This workflow is designed for content creators, social media managers, and marketing teams who need to efficiently create and publish content across multiple social media platforms. It's perfect for businesses looking to maintain a consistent presence across X (Twitter), Instagram, Facebook, LinkedIn, Threads, and YouTube Shorts without spending hours crafting platform-specific content manually.

What problem is this workflow solving?
Creating tailored content for different social media platforms is time-consuming and requires understanding each platform's unique requirements and audience expectations. This workflow solves the challenge of:
Maintaining consistent messaging across platforms while respecting platform-specific formats
Generating optimized content that follows best practices for each platform
Creating accompanying visuals without graphic design skills
Streamlining the approval process before publishing
Reducing the time spent on repetitive content creation tasks

What this workflow does
This automated content factory takes your content idea and transforms it into platform-optimized posts for all major social media channels. The workflow:

Accepts your content idea or topic through a chat interface
Leverages AI to generate tailored content for each platform (X/Twitter, Instagram, Facebook, LinkedIn, Threads, YouTube Shorts)
Creates appropriate images using AI image generation
Sends content for approval via email before publishing
Publishes approved content to selected platforms
Maintains chat memory to improve future content generation

Setup
Connect your social media platform credentials (X/Twitter, Instagram, Facebook, LinkedIn)
Set up your email account for the approval process
Configure your OpenAI API key for AI content generation
Update the image generation service credentials (Pollinations.ai is used by default)
Customize the system prompts and schemas in the Google Docs nodes with your brand voice and content requirements

How to customize this workflow to your needs
Modify the system prompts in the Google Docs nodes to match your brand voice and content strategy
Adjust the social media schemas to include specific fields relevant to your content
Update the approval process to include additional stakeholders if needed
Add or remove social media platforms based on your marketing strategy
Customize the image generation prompts to better match your visual branding
Integrate with your existing content calendar or CRM systems

This workflow eliminates the need to manually craft different versions of the same content for each platform, saving hours of work while ensuring your social media presence remains consistent and optimized for maximum engagement.

Nodes used in this workflow

Popular Google Drive and X (Formerly Twitter) workflows

+9

✨🩷Automated Social Media Content Publishing Factory + System Prompt Composition

Social Media Content Publishing Factory for Streamlined Content Creation Across Platforms Who is this for? This workflow is designed for content creators, social media managers, and marketing teams who need to efficiently create and publish content across multiple social media platforms. It's perfect for businesses looking to maintain a consistent presence across X (Twitter), Instagram, Facebook, LinkedIn, Threads, and YouTube Shorts without spending hours crafting platform-specific content manually. What problem is this workflow solving? Creating tailored content for different social media platforms is time-consuming and requires understanding each platform's unique requirements and audience expectations. This workflow solves the challenge of: Maintaining consistent messaging across platforms while respecting platform-specific formats Generating optimized content that follows best practices for each platform Creating accompanying visuals without graphic design skills Streamlining the approval process before publishing Reducing the time spent on repetitive content creation tasks What this workflow does This automated content factory takes your content idea and transforms it into platform-optimized posts for all major social media channels. The workflow: Accepts your content idea or topic through a chat interface Leverages AI to generate tailored content for each platform (X/Twitter, Instagram, Facebook, LinkedIn, Threads, YouTube Shorts) Creates appropriate images using AI image generation Sends content for approval via email before publishing Publishes approved content to selected platforms Maintains chat memory to improve future content generation Setup Connect your social media platform credentials (X/Twitter, Instagram, Facebook, LinkedIn) Set up your email account for the approval process Configure your OpenAI API key for AI content generation Update the image generation service credentials (Pollinations.ai is used by default) Customize the system prompts and schemas in the Google Docs nodes with your brand voice and content requirements How to customize this workflow to your needs Modify the system prompts in the Google Docs nodes to match your brand voice and content strategy Adjust the social media schemas to include specific fields relevant to your content Update the approval process to include additional stakeholders if needed Add or remove social media platforms based on your marketing strategy Customize the image generation prompts to better match your visual branding Integrate with your existing content calendar or CRM systems This workflow eliminates the need to manually craft different versions of the same content for each platform, saving hours of work while ensuring your social media presence remains consistent and optimized for maximum engagement.
+8

Automated Viral Content Engine for LinkedIn & X with AI Generation & Publishing

Social Media Spark (SMS) — Automated Viral Content Engine Automate your entire content workflow: discover viral ideas, generate posts in your tone, repurpose for X, and auto-publish — reducing 90% of manual effort. 🚀 What it Does Scrapes competitors or niche profiles on LinkedIn to find high-performing posts. Classifies and saves evergreen content ideas for later use. Generates fresh posts in your own voice with matching images. Repurposes content for X (Twitter) in a platform-optimized style. Automatically publishes content to LinkedIn and X on your schedule. Allows on-demand commands via Telegram for research or instant content generation. 🧩 Why Use It Save time:** no more manual scraping, idea collection, or formatting. Stay consistent:** maintain a daily content pipeline. Multi-platform leverage:** create once, adapt for LinkedIn and X. Creative control:** mix automation with optional human review. Scalable:** extend to more platforms, analytics, and workflows as you grow. 🔧 Prerequisites & Setup Before importing or activating the workflow, prepare these: AI Provider (OpenAI / Gemini / OpenRouter)** For classifying posts, generating new content, repurposing for X. Google Sheets** Central database for competitors, ideas, generated posts, and posting status. Google Drive** Stores generated images. Apify & Browseract** Scrapes LinkedIn profiles, posts, and performs research tasks. LinkedIn API** Needed for automated LinkedIn publishing. X (Twitter) API** Requires OAuth 1.0a for image uploads and OAuth 2.0 for text posting. Telegram Bot** Enables on-demand commands and notifications. Set your Telegram User ID in the trigger node. > 🔎 In each sub-workflow, look for nodes marked “Configure Me!” to replace example prompts, search keywords, sheet IDs, etc. ⚙️ How It Works (Simplified Flow) Scrape & Classify: Collect high-engagement posts → keep evergreen ones. Generate Content: Rewrite ideas into new posts in your voice → create images. Repurpose for X: Adapt LinkedIn posts for short-form, high-impact tweets. Auto-Publish: Post daily on LinkedIn and X. Control via Telegram: Manually trigger scraping, research, or post generation. 💡 Best Practices & Tips Keep all API keys private — never share them in public repos or screenshots. Adjust cron schedules (e.g., scraping on weekends, posting on weekdays) to fit your content rhythm. Add Human-in-the-Loop review steps for brand-sensitive content. Extend to other platforms (Instagram, TikTok, YouTube Shorts) as needed. Experiment with prompt variations for different tones or creative styles. Add analytics logging (likes, comments, clicks) to measure content performance. 🙋‍♂️ Who is This For Solo creators & founders** who want to post consistently but don’t have time for daily ideation. Small marketing teams** that need to keep up with trends without spending hours on research. Consultants & thought leaders** who want to amplify their personal brand on LinkedIn and X. Startups & bootstrapped businesses** that need a lean but reliable content engine. Content strategists** who want a data-driven, repeatable pipeline for finding and using what works. Or anyone who wants to boost social presence by 300% 💡 Why SMS Stands Out Authentic voice:** Uses your own tone and style (defined in prompts and examples), so posts feel personal — not generic AI fluff. Data-driven:** Pulls from real, viral posts in your niche to inspire fresh content. Quality over quantity:** Focuses only on proven viral ideas instead of churning random posts. Consistent growth:** Keeps your posting regular, so you stay visible and relevant. Efficient workflow:** Minimizes manual work while letting you step in when needed (e.g., for approvals or special campaigns). > ⚡ SMS combines real market data with your unique voice — so you post smarter, not just more often.
+5

Automate LinkedIn Posts with Claude AI, DALL-E Images & Google Sheets Approval

How it works This workflow automates your entire LinkedIn content strategy, from ideation to publishing. Daily Idea Generation:** Every day, the workflow uses an advanced AI agent (Anthropic's Claude model) to generate a new, viral-optimized LinkedIn post idea, complete with a title, full text, and a detailed image description. It analyzes your past posts from a Google Sheet to ensure content is fresh and aligns with one of your four content pillars: timeless principles, case studies, growth hacks, or controversial ads. AI Image Creation:** It then uses OpenAI's DALL-E to create a custom, high-quality image based on the generated description and a style reference image you provide, ensuring brand consistency. Review & Approval Workflow:** The generated post and its accompanying image are automatically saved as a new row in a Google Sheet, marked with a "review" status. This gives you full editorial control. Automated Publishing:** Once you approve a post by changing its status to "ready" in the Google Sheet, a separate part of the workflow picks it up and automatically publishes it to your LinkedIn profile at a scheduled time. Status Tracking:** After publishing, the workflow updates the status in your Google Sheet to "posted," so you always have a clear overview of your content pipeline. Set up steps This workflow integrates several services. Follow these steps to get it running: Copy the Google Sheet: Make a copy of the AI Posts Content Machine Google Sheet template and select your copy in the Get Past Ideas, Save Post, Get Ready Posts, and Update Status nodes. Set Up Credentials: You will need to create and add API credentials for the following services within the corresponding n8n nodes: Google Sheets & Google Drive: Create a Google credential. Anthropic: Add your API key in the Anthropic Chat Model node. OpenAI: Add your API key as a Header Auth credential in the OpenAI Image node. Perplexity AI: Add your API key as a Header Auth credential inside the Perplexity Research sub-workflow. LinkedIn: Create a LinkedIn credential. Customize Your Content: In the Idea Generator node, adjust the system prompt to reflect your specific audience, topics, and content style. Create a folder in Google Drive for your post images. Add a reference image to this folder that defines your desired visual style. Paste the shareable link to your style reference image into the Image Style node. Activate the Workflow: Enable the workflow to start the automated content creation and publishing process.
+9

Extract text from PDFs and images in Google Drive and post to WordPress and social media with OpenAI GPT-4.1 and DALL·E

Who is this for? This workflow is designed for content creators, social media managers, digital marketers, and business owners who want to automate their content creation and distribution process across multiple platforms. It's perfect for those who regularly create content from PDFs or images and want to streamline their social media posting workflow. Key Features Monitors a specific Google Drive folder for new PDFs or images Extracts text from PDFs or images using AI Optionally generates new images from text using OpenAI's DALL-E Automatically posts content with images to multiple platforms Sends notifications about successful posts Handles different file types with specialized extraction methods Workflow Does This workflow automates monitoring a Google Drive folder for new PDFs and images, extracting content using AI, and distributing it across social media platforms like WordPress, Facebook, Telegram, LinkedIn, and Discord. It can also generate new images from text and sends notifications about successful posts. The process ensures efficient handling of different file types and streamlines content sharing across multiple channels. Requirements Google Drive account with a dedicated folder for content OpenAI API credentials for image generation WordPress API credentials for website posting Social media API credentials: Facebook Graph API Telegram Bot API LinkedIn OAuth2 API Discord Bot API X/Twitter OAuth2 API Gmail credentials for email notifications Rapiwa account for WhatsApp notifications Important Notes Make sure all API credentials are properly configured before running the workflow The workflow handles both PDF and image files differently based on their MIME type Image generation is optional and can be disabled if not needed All social media posting nodes can be individually enabled or disabled based on your needs The workflow includes rate limiting to avoid API restrictions Support & Help WhatsApp**: Chat on WhatsApp Discord**: SpaGreen Community Facebook Group**: SpaGreen Support Website**: https://spagreen.net Developer Portfolio**: Codecanyon SpaGreen
+43

Explore n8n Nodes in a Visual Reference Library

WATCH THE n8n STARTER GUIDE 👇 This template is featured in the n8n Starter Guide series. The template is free, but comes with two additional PDFs and a Quick Start video if you grab the full download pack on gumroad. How it works This template is a visual map of many useful n8n nodes. It groups nodes like Triggers, AI tools, and App connectors onto the canvas. Explore the sections to learn about different nodes and easily copy them for your own workflows. It acts as a handy visual reference guide. Set up steps • Setup takes about 5 minutes. • Import the template into your n8n instance. • Explore the node categories visually on the canvas. • A Quick Start video is included in the download pack, along with a prompts PDF and PDF with links to other awesome n8n templates here on the n8n template gallery.
+9

Hacker News to Video Content

Hacker News to Video Content Overview This workflow converts trending articles from Hacker News into engaging video content. It integrates AI-based tools to analyze, summarize, and generate multimedia content, making it ideal for content creators, educators, and marketers. Features Article Retrieval: Pulls trending articles from Hacker News. Limits the number of articles to process (configurable). Content Analysis: Uses OpenAI's GPT model to: Summarize articles. Assess their relevance to specific topics like automation or AI. Extract key image URLs. Image and Video Generation: Leonardo.ai: Creates stunning AI-generated images based on extracted prompts. RunwayML: Converts images into high-quality videos. Structured Content Creation: Parses content into structured formats for easy reuse. Generates newsletter-friendly blurbs and social media-ready captions. Cloud Integration: Uploads generated assets to: Dropbox Google Drive Microsoft OneDrive MinIO Social Media Posting (Optional): Supports posting to YouTube, X (Twitter), LinkedIn, and Instagram. Workflow Steps Trigger Initiated manually via the "Test Workflow" button. Fetch Articles Retrieves articles from Hacker News. Limits the results to avoid processing overload. Content Filtering Evaluates if articles are related to AI/Automation using OpenAI's language model. Image and Video Generation Generates: AI-driven image prompts via Leonardo.ai. Videos using RunwayML. Asset Management Saves the output to cloud storage services or uploads directly to social media platforms. Prerequisites API Keys**: Hacker News OpenAI Leonardo.ai RunwayML Creatomate n8n Installation**: Ensure n8n is installed and configured locally or on a server. Credentials**: Set up credentials in n8n for all external services used in the workflow. Customization Replace Hacker News with any other data source node if needed. Configure the "Article Analysis" node for different topics. Adjust the cloud storage services or add custom storage options. Usage Import this workflow into your n8n instance. Configure your API credentials. Trigger the workflow manually or schedule it as needed. Check the outputs in your preferred cloud storage or social media platform. Notes Extend this workflow further by automating social media posting or newsletter integration. For any questions, refer to the official documentation or reach out to the creator. About the Creator This workflow was built by AlexK1919, an AI-native workflow automation architect. Check out the overview video for a quick demo. Tools Used Leonardo.ai** RunwayML** Creatomate** Hacker News API** OpenAI GPT** Feel free to adapt and extend this workflow to meet your specific needs! 🎉

Build your own Google Drive and X (Formerly Twitter) integration

Create custom Google Drive and X (Formerly Twitter) 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 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

X (Formerly Twitter) supported actions

Create
Send a direct message to a user
Add Member
Add a member to a list
Create
Create, quote, or reply to a tweet
Delete
Delete a tweet
Like
Like a tweet
Retweet
Retweet a tweet
Search
Search for tweets from the last seven days
Get
Retrieve a user by username

FAQs

  • Can Google Drive connect with X (Formerly Twitter)?

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

  • Can I use X (Formerly Twitter)’s API with n8n?

  • Is n8n secure for integrating Google Drive and X (Formerly Twitter)?

  • How to get started with Google Drive and X (Formerly Twitter) integration in n8n.io?

Need help setting up your Google Drive and X (Formerly Twitter) integration?

Discover our latest community's recommendations and join the discussions about Google Drive and X (Formerly Twitter) integration.
hubschrauber
Jon
David O'Neil
lexgabrees
Andrey Khokhlov

Looking to integrate Google Drive and X (Formerly Twitter) in your company?

Over 3000 companies switch to n8n every single week

Why use n8n to integrate Google Drive with X (Formerly Twitter)

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