Create scheduled social media post packages with forms and Google Drive
Quick overview This workflow collects scheduled social post details via an n8n form and creates a Google Drive package containing a tweet.txt file and 1–4 numbered images, while validating inputs, preventing duplicate package folders, and cleaning up incomplete uploads.
How it works Receives a submission from an n8n Form Trigger with a scheduled date/time, post text, an optional label, and 1–4 uploaded PNG/JPG images. Validates the date and time format, ensures the post text is not empty, verifies the image count and file types, and generates a canonical package folder name. If the submission is invalid, returns a form completion message listing the corrections needed. If valid, checks Google Drive in the configured parent folder to see whether a folder with the generated package name already exists. If a duplicate exists, returns a form completion message indicating nothing was created. If no duplicate exists, creates a new Google Drive folder, writes the post text to tweet.txt, renames images to 01–04 with their original extensions, and uploads all files to the folder. If any upload fails, deletes the newly created folder and returns an error message; otherwise, returns a success message confirming the package was created.
Setup Create a Google Drive OAuth credential in n8n and connect it to the Google Drive nodes. Set the destination parent folder by replacing PASTE_GOOGLE_DRIVE_PARENT_FOLDER_ID_HERE in the workflow with your Google Drive folder ID. Activate the workflow and use the generated form URL to submit scheduled post packages.
Related Templates
Track Demo Bookings with Google Calendar to Meta Conversions API Integration
Who is this workflow for? If you're using Meta Ads to generate new leads to your sales pipeline, this workflow is for yo...
Build an MCP Server which answers questions with Retrieval Augmented Generation
Build an MCP Server which has access to a semantic database to perform Retrieval Augmented Generation (RAG) Tutorial C...
Transcribe & Summarize Audio with Whisper and GPT, from Google Drive to Notion
This workflow contains community nodes that are only compatible with the self-hosted version of n8n. Overview This work...
🔒 Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments