๐ฌ Generate Twitter/X captions from Google Drive images using Cloudinary & GPT-4o-mini
โก 199 views ยท ๐ฌ Content Creation & Video
Description
Description
Turn images into viral-ready Twitter/X captions in seconds!
This n8n automation watches a Google Drive folder for new images, uploads them to Cloudinary, and uses Azure OpenAI (GPT-4o-mini) to generate engaging, platform-optimized captions. Each caption package includes:
- Punchy headlines and primary tweets (โค280 characters)
- Mini tweet threads with insights & actions
- Hashtags, @mentions & posting time recommendations
- HTML email delivery for quick publishing
Perfect for social media managers, creators, and marketing teams who want to speed up content creation while keeping posts high-quality and on-brand.
Step-by-Step Workflow:
๐ Google Drive Trigger (Google Drive Trigger Node)
- Watches a specific folder for new or updated image files.
- Instantly starts the workflow on detection.
๐ฅ File Download (Google Drive Node)
- Downloads the new file from Google Drive for processing.
โ๏ธ Cloud Upload (HTTP Request Node โ Cloudinary)
- Uploads the image to Cloudinary.
- Returns a publicly accessible URL for AI analysis.
๐ง AI Caption Generation (LangChain + Azure OpenAI GPT-4o-mini) Analyzes the image and produces:
- Short headline & primary tweet
- A 3-part tweet thread (Hook โ Insight โ Action)
- Alt text for accessibility
- Suggested first-reply content
- 10โ12 optimized hashtags
- Recommended @mentions
- Ideal posting times (IST)
๐ง Email Delivery (SMTP Node) Sends a professionally formatted HTML email with:
- The analyzed image
- All generated Twitter/X content blocks
- Key visual summary
- Feature & user targeting notes
Perfect For:
- Social Media Managers โ Automate caption creation for client accounts.
- Content Creators โ Turn visuals into instantly postable Twitter/X threads.
- Marketing Teams โ Maintain consistency & posting frequency without manual work.
- Built With:
- Google Drive API โ File monitoring & download
- Cloudinary API โ Image hosting & URL generation
- Azure OpenAI GPT-4o-mini โ AI caption creation & formatting
- n8n LangChain Integration โ Structured AI prompt execution
- SMTP Email โ Automated content delivery
Key Benefits:
โ Save hours on manual caption writing. ๐ Boost engagement with AI-optimized hashtags & post timing. ๐ง Get both short posts & full threads ready to publish. โก Fully automated โ runs whenever you upload a file.
๐ Nodes Used
Send Email, HTTP Request, Google Drive, Google Drive Trigger, Basic LLM Chain, Azure OpenAI Chat Model
๐ฅ Import
Download workflow.json and import into n8n:
Workflow menu โ Import from File