Edit & deliver images with DALL-E 2, Google Drive & Telegram messaging
π¨ AI Image Editor with Form Upload + Telegram Delivery π
Whoβs it for? π₯
This workflow is built for content creators, social media managers, designers, and agencies who need fast, AI-powered image editing without the hassle. Whether you're batch-editing for clients or spicing up personal projects, this tool gets it done β effortlessly.
What it does π οΈ
A seamless pipeline that:
π₯ Accepts uploads + prompts via a clean form βοΈ Saves images to Google Drive automatically π§ Edits images with OpenAIβs image API π Converts results to downloadable PNGs π¬ Delivers the final image instantly via Telegram Perfect for AI-enhanced workflows that need speed, structure, and simplicity.
How it works βοΈ
User Uploads: Fill a form with an image + editing prompt Cloud Save: Auto-upload to your Google Drive folder AI Editing: OpenAI processes the image with your prompt Convert & Format: Image saved as PNG Telegram Delivery: Final result sent straight to your chat π¬ Youβll need β
π OpenAI API key π Google Drive OAuth2 setup π€ Telegram bot token & chat ID βοΈ n8n instance (self-hosted or cloud) Setup in 4 Easy Steps π οΈ
1. Connect APIs
Add OpenAI, Google Drive, and Telegram credentials to n8n Store keys securely (avoid hardcoding!)
2. Configure Settings
Set Google Drive folder ID Add Telegram chat ID Tweak image size (default: 1024Γ1024)
3. Deploy the Form
Add a Webhook Trigger node Test with a sample image Share the form link with users π― 4. Fine-Tune Variables In the Set node, customize:
π Image size π Folder path π² Delivery options β±οΈ Timeout duration Want to customize more? ποΈ
πΌοΈ Image Settings
Change size (e.g. 512x512 or 2048x2048) Update the model (when new versions drop) π Storage
Auto-organize files by date/category Add dynamic file names using n8n expressions π€ Delivery
Swap Telegram with Slack, email, Discord Add multiple delivery channels Include image prompt or metadata in messages π Form Upgrades
Add fields for advanced editing Validate file types (e.g. PNG/JPEG only) Show a progress bar for long edits β‘ Advanced Features
Add error handling or retry flows Support batch editing Include approvals or watermarking before delivery β οΈ Notes & Best Practices β Check OpenAI credit balance πΌοΈ Test with different image sizes/types β±οΈ Adjust timeout settings for larger files π Always secure your API keys
n8n Workflow: Deliver DALL-E 2 Images to Google Drive and Telegram
This n8n workflow automates the process of generating an image using DALL-E 2 based on a user-provided prompt, saving the generated image to Google Drive, and then sharing it via Telegram. It streamlines the creation and distribution of AI-generated visuals.
What it does
- Triggers on Form Submission: The workflow starts when a user submits a form, likely containing a text prompt for image generation.
- Generates Image with DALL-E 2: It uses an HTTP Request node to send the user's prompt to the DALL-E 2 API, requesting an image generation.
- Prepares Image Data: The
Edit Fields (Set)node processes the API response to extract the image URL and potentially other relevant data. - Converts Image to File: The
Convert to Filenode takes the image URL and converts it into a binary file format, making it suitable for upload and sharing. - Uploads to Google Drive: The generated image is then uploaded to a specified folder in Google Drive.
- Sends to Telegram: Finally, the workflow sends the generated image, along, with a message, to a Telegram chat.
Prerequisites/Requirements
To use this workflow, you will need:
- n8n Instance: A running n8n instance.
- OpenAI API Key: For DALL-E 2 image generation. This will be configured within the
HTTP Requestnode. - Google Drive Credentials: An authenticated Google Drive account connected to your n8n instance to save the images.
- Telegram Bot Token and Chat ID: A Telegram bot and the chat ID where you want to send the images. This will be configured within the
Telegramnode.
Setup/Usage
- Import the Workflow: Import the provided JSON into your n8n instance.
- Configure Credentials:
- HTTP Request (DALL-E 2): Edit the
HTTP Requestnode. You will need to set up the URL to the DALL-E 2 API endpoint and add your OpenAI API key as an authorization header (e.g., Bearer token). The body of the request should include the prompt from the incoming form data. - Google Drive: Configure your Google Drive credentials in the
Google Drivenode. Specify the folder where you want to save the images. - Telegram: Configure your Telegram credentials in the
Telegramnode. Provide your Bot Token and the Chat ID where messages should be sent.
- HTTP Request (DALL-E 2): Edit the
- Configure Form Trigger: The
n8n Form Triggernode will provide a URL. You can embed this form or link to it from your application or website to allow users to submit image prompts. - Activate the Workflow: Once all credentials and configurations are set, activate the workflow.
Now, whenever the n8n form is submitted with an image prompt, the workflow will automatically generate the image, save it to your Google Drive, and send it to your Telegram chat.
Related Templates
Track meal nutrition from meal photos with LINE, Google Gemini and Google Sheets
AI Meal Nutrition Tracker with LINE and Google Sheets Who's it for This workflow is designed for health-conscious individuals, fitness enthusiasts, and anyone who wants to track their daily food intake without manual calorie counting. It is best suited for users who want a simple, AI-powered meal logging system that analyzes food photos one at a time and provides instant nutritional feedback via LINE. What it does This workflow processes a single meal photo sent via LINE, analyzes it using Google Gemini AI to identify foods and estimate nutritional content, and stores the data in Google Sheets for tracking. The workflow focuses on simplicity and encouragement: it receives a meal image, performs AI-based food recognition, estimates calories and macronutrients, calculates a health score, provides personalized advice, and replies with a detailed nutritional breakdown on LINE. How it works A single meal photo is sent to the LINE bot. The workflow is triggered via a LINE webhook. The image file is downloaded and sent to Google Gemini AI for food analysis. The AI identifies foods and estimates nutritional values (calories, protein, carbs, fat, fiber). A health score (1-10) is calculated with personalized improvement tips. The data is appended to Google Sheets for meal history tracking. The image is uploaded to Google Drive for reference. A formatted nutritional report with advice is sent back as a LINE reply. This workflow is intentionally designed to handle one image per execution. Requirements To use this workflow, you will need: A LINE Messaging API account A Google Gemini API key A Google account with access to Google Sheets and Google Drive A Google Sheets document with the following column names: Date Time Meal Type Food Items Calories Protein (g) Carbs (g) Fat (g) Fiber (g) Health Score Advice Image URL Important limitations This workflow does not support multiple images sent in a single message. Sending images in quick succession may trigger multiple executions and lead to unexpected results. Only the first image in an event payload is processed. Nutritional values are AI estimates based on visual analysis and typical serving sizes. Accuracy depends on image quality, lighting, and food visibility. This tool should not replace professional dietary advice. These limitations are intentional to keep the workflow simple and easy to understand. How to set up Create a LINE Messaging API channel and obtain a Channel Access Token. Generate a Google Gemini API key. Update the Config node with your LINE token, Google Sheets ID, Google Drive folder ID, and daily calorie goal. Configure credentials for LINE, Google Gemini, Google Sheets, and Google Drive. Register the n8n webhook URL in your LINE channel settings. Activate the workflow in n8n and test it with a single meal photo. How to customize Modify the AI prompt in the "Analyze Meal with AI" node to support different languages or dietary frameworks (keto, vegan, etc.). Adjust the daily calorie goal in the Config node to match individual needs. Add additional nutritional fields such as sodium, sugar, or vitamins. Replace Google Sheets with a fitness app API or database. Integrate with other services to send daily/weekly nutrition summaries. --- Note: This workflow was tested using real meal photos sent individually via the LINE Messaging API. Nutritional estimates are approximations and may vary from actual values. For accurate dietary tracking, consult a registered dietitian.
Track free Udemy courses automatically with RapidAPI and Google Sheets
This workflow fetches free Udemy courses hourly via the Udemy Coupons and Courses API on RapidAPI, filters them, and updates a Google Sheet. It sends alerts on errors for smooth monitoring. --- Node-by-Node Explanation Schedule Trigger: Runs the workflow every hour automatically. Fetch Udemy Coupons: Sends POST request to the Udemy Coupons and Courses API on RapidAPI to get featured courses. Check API Success: Verifies if the API response is successful; routes accordingly. Filter Free Courses: Selects only courses with sale_price of zero (free courses). Send Error Notification: Emails admin if API fetch fails for quick action. Sync Courses to Google Sheet: Appends or updates the filtered free courses into Google Sheets. --- Google Sheets Columns id name price sale_price image lectures views rating language category subcategory slug store sale_start --- Google Sheets Setup & Configuration Steps Create Google Sheet: Create or open a Google Sheet where you want to sync courses. Set Headers: Add columns headers matching the fields synced (id, name, price, etc.). Enable Google Sheets API: Go to Google Cloud Console, enable Google Sheets API for your project. Create Service Account: In Google Cloud Console, create a Service Account with editor access. Download Credentials: Download the JSON credentials file from the service account. Share Sheet: Share your Google Sheet with the Service Account email (found in JSON file). Configure n8n Google Sheets Node: Use the service account credentials, set operation to βAppend or Updateβ, provide Sheet URL and sheet name or gid. Match Columns: Map the course fields to your sheet columns and set id as the unique key for updates. --- How to Obtain RapidAPI Key & Setup API Request Sign up/Login: Visit RapidAPI Udemy Coupons and Courses API and create an account or log in. Subscribe to API: Subscribe to the Udemy Coupons and Courses API plan (free or paid). Get API Key: Navigate to your dashboard and copy your x-rapidapi-key. Configure HTTP Request: In your workflowβs HTTP Request node: Set method to POST. URL: https://udemy-coupons-and-courses.p.rapidapi.com/featured.php Add headers: x-rapidapi-host: udemy-coupons-and-courses.p.rapidapi.com x-rapidapi-key: your copied API key Set content type to multipart/form-data. Add body parameter: page=1 (or as needed). Test API: Run the node to ensure the API responds with data successfully before continuing workflow setup. --- Use Cases & Benefits Automates daily updates of free Udemy courses in your sheet using the Udemy Coupons and Courses API on RapidAPI. Saves manual effort in tracking coupons and deals. Enables quick error alerts to maintain data accuracy. Ideal for course aggregators, affiliate marketers, or learning platforms needing fresh course data. --- Who This Workflow Is For Content curators and edtech platforms tracking free courses. Affiliate marketers promoting Udemy deals. Anyone needing real-time access to updated free Udemy coupons.
Daily Magento 2 customer sync to Google Contacts & Sheets without duplicates
Automatically sync newly registered Magento 2 customers to Google Contacts and Google Sheets every 24 hours β with full duplication control and seamless automation. This workflow is a plug-and-play customer contact automation system designed for Magento 2 store owners, marketers, and CRM teams. It fetches customer records registered within the last 24 hours (from 00:00:00 to 23:59:59), checks against an existing Google Sheet to avoid reprocessing, and syncs only the new ones into Google Contacts. This ensures your contact list is always fresh and up to date β without clutter or duplicates. β What This Workflow Does: Automates Customer Syncing Every day, it fetches newly registered Magento 2 customers via API based on the exact date range (midnight to midnight). Deduplicates Using Google Sheets A master Google Sheet tracks already-synced emails. Before adding a customer, the workflow checks this list and skips if already present. Creates Google Contacts Automatically For each unique customer, it creates a new contact in your Google Contacts, saving fields like first name, last name, and email. Logs New Entries to Google Sheets In Google Sheets, it even records magento 2 customer group, createdat, websiteid & store_id After syncing, it adds each new email to the tracking sheet, building a cumulative record of synced contacts. Fully Scheduled & Automated Can be scheduled with the Cron node to run daily (e.g., 12:05 AM) with no manual intervention required. π§ Modules Used: HTTP Request (Magento 2 API) Date & Time (for filtering registrations) Google Sheets (for reading/writing synced emails) Google Contacts (for contact creation) Set, IF, and Merge nodes (for control logic) Cron (for scheduling the automation) πΌ Use Cases: Keep your email marketing tools synced with Magento 2 customer data. Build a CRM-friendly contact base in Google Contacts without duplicates. Share customer data with sales or support teams through synced Google Sheets. Reduce manual work and human error in data transfer processes. π Credentials Required Magento 2 Bearer Auth: Set up as a credential in n8n using your Magento 2 API access token. Google API π Category E-commerce β Magento 2 (Adobe Commerce) π¬ Need Help? π‘ Having trouble setting it up or want to customize this workflow further? Feel free to reach out β Iβm happy to help with setup, customization, or Magento 2 API integration issues. Contact: Author π€ Author Kanaka Kishore Kandregula Certified Magento 2 Developer https://gravatar.com/kmyprojects https://www.linkedin.com/in/kanakakishore