Social Media Automation with n8n

Google Drive → Google Sheets → X (Twitter). Auto-post images with captions, and log Tweet IDs & metadata—end to end, no manual work.

  • 📁 Drive folder trigger
  • 📃 Caption lookup in Sheets
  • Tweet with media
  • 📝 Post log & dedupe
n8n workflow hero

🎬 Demo Video

Short walkthrough of the automation in action.

📸 Screenshots

Key steps and execution views.

📋 Workflow Overview

  1. 📁 Upload image to a specific Google Drive folder
  2. 🔔 Google Drive Trigger fires in n8n (new file)
  3. 📄 Match caption in Google Sheets by filename
  4. 🡻 Download file, ✅ Upload media to X, then post Tweet + caption
  5. 🧾 Append log in Sheets (Time, FileID, Filename, CaptionUsed, TweetID, Status)
  6. ⚡ Dedupe by File ID + handle missing caption gracefully

Tech Stack

n8n Google Drive API Google Sheets API X (Twitter) API
Must-haves implemented
  • Missing caption fallback
  • Dedupe by file ID
  • Post log in Sheets
Outputs
  • n8n workflow (JSON)
  • GitHub repo & screenshots
  • Automation Walkthrough

📂 Resources

workflow.json

Download the exact n8n workflow used in this demo.

GitHub Repository

Source code, workflow.json, and project files.