Automate Image Editing with OpenAI and Google Drive
detail.loadingPreview
This workflow leverages n8n to automate image editing using OpenAI's DALL-E API. It downloads an image from Google Drive, sends it for editing with a specific prompt, and then uploads the modified image back to Google Drive, finally sending it via Telegram.
🚀Ready to Deploy This Workflow?
About This Workflow
Overview
This n8n workflow is designed to automate the process of editing images programmatically. It utilizes the power of OpenAI's image editing capabilities, triggered by another workflow. The process begins by downloading a specified image from Google Drive, then sending it along with a user-defined prompt to the OpenAI API for editing. The edited image is then converted to a file format suitable for upload and stored back into a designated Google Drive folder. Finally, the edited image is sent as a photo via Telegram to a specified chat ID. This workflow solves the problem of manual image editing by enabling batch processing and integration into larger automation pipelines.
Key Features
- Triggers execution via another n8n workflow.
- Downloads images from Google Drive using file ID.
- Edits images using OpenAI's API with custom prompts.
- Converts edited image data for storage.
- Uploads edited images to a specified Google Drive folder.
- Sends the edited image via Telegram.
How To Use
- Configure Trigger: Ensure this workflow is executed by another n8n workflow that provides
image,request(the editing prompt),chatID, andpictureIDas input. - Set up OpenAI Credentials: Authenticate your OpenAI API access within n8n.
- Configure Google Drive Credentials: Connect your Google Drive account to n8n.
- Adjust Node Settings:
- In the
Downloadnode, ensure thefileIdis correctly mapped from the trigger input. - In the
Edit Imagenode, verify thepromptis correctly passed from the trigger and the OpenAI model and size are set as desired. - In the
Upload Imagenode, specify the correct Google Drive folder ID (folderId). - In the
Send Photonode, ensure thechatIDis correctly mapped from the trigger input.
- In the
- Run the Workflow: Trigger the workflow from your parent n8n automation or manually for testing.
Apps Used
Workflow JSON
{
"id": "81432a4b-b559-4805-96db-303f77a385cb",
"name": "Automate Image Editing with OpenAI and Google Drive",
"nodes": 0,
"category": "Media Automation",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: 81432a4b-b559...
About the Author
Crypto_Watcher
Web3 Developer
Automated trading bots and blockchain monitoring workflows.
Statistics
Verification Info
Related Workflows
Discover more workflows you might like
Automated Breaking News Summarization with n8n and Langchain
This n8n workflow automates the summarization of breaking news using Langchain and Weaviate. It receives news via a webhook, processes it with a text splitter and embeddings, stores it in a vector database, and then summarizes it using an AI agent.
AI-Powered Image to Video Generation with Fal.ai and Google Drive Integration
Automate the creation of videos from images using Fal.ai's advanced AI. This workflow triggers video generation, retrieves results, uploads to Google Drive, and shares the output via Telegram.
Automated TV Rating Trend Report Generation with n8n
This n8n workflow automatically generates TV rating trend reports by processing incoming data via a webhook, splitting it, creating embeddings, storing them in a vector database, and then querying and analyzing trends using AI.
Automated Multi-Platform Social Media Publisher
Streamline your social media content creation and publishing with this n8n workflow. Simply fill out a web form with your caption, media (image or video), and target platforms, and let n8n automate the posting process across multiple social networks.
AI Music Generator with Suno V3.5 (KIE.ai)
This n8n workflow automates AI music generation using the KIE.ai API, powered by the Suno V3.5 model. Users simply submit music prompts, styles, and titles via a web form, and the system handles real-time generation and delivery of the final audio output. It's perfect for quickly creating custom music for various needs.
Automate Instagram Reel Analysis with Gemini and Apify
Unlock deeper insights into your Instagram Reels by automating analysis. This workflow leverages Apify to fetch reel data and Gemini AI to dissect key elements like background, pose, text, and context, enabling better content replication.