Post images from Google Drive to Discord using Gemini Gemini AI
šÆ What This Does This workflow automatically monitors a specific Google Drive folder for new images. When you drop a file in, it uses Google's Gemini AI to analyze the image, generate an creative title, and write a high-engagement description. It then posts the image and text to a Discord channel and organizes your Google Drive by renaming the file and moving it to a "Processed" folder.
š How It Works Watch:** The workflow detects when a new image file is uploaded to a specific Google Drive folder. Analyze:** It downloads the image and sends it to a Google Gemini AI Agent to identify the "hook" and generate technical/marketing copy. Format:** The AI returns a structured title, description, and a new optimized filename. Publish:** The workflow posts the image and the AI-generated caption directly to your Discord channel as a new thread. Organize:** Finally, it renames the original file in Google Drive and moves it to a separate "Processed" folder to keep your workspace clean.
š Setup Requirements
n8n Version:** Latest stable release recommended. Google Cloud Console Project:* With Google Drive API* enabled. Google Gemini API Key:** For the AI generation. Discord Application:** A Bot Token with permissions to send messages/create threads in your server. Estimated Setup Time:** ~15 minutes.
Set up steps
Configure Google Drive Credentials: Set up a project in Google Cloud Console. Enable the Google Drive API. Create OAuth 2.0 credentials and add them to the Google Drive Trigger and Google Drive nodes in n8n.
Prepare Drive Folders: Create a folder in Google Drive for Input (where you drop files). Copy the Folder ID from the URL. Create a folder for Processed files. Copy this Folder ID as well. Paste the Input Folder ID into the Google Drive Trigger node. Update the processed_folder_id value in the "Get File & Set Channel" (Set) node.
Configure AI Agent: Get your API Key from Google AI Studio. Add a new credential for Google PaLM API in the Chat Model node.
Setup Discord Bot: Go to the Discord Developer Portal and create a new Application/Bot. Copy the Bot Token. Invite the bot to your server. Enable Developer Mode in your Discord User Settings to right-click a channel and "Copy Channel ID". Update the channel_id in the "Get File & Set Channel" node. Open the "Post To Discord Channel" (HTTP Request) node. Under Authentication, select "Predefined Credential Type" -> "Discord Bot API" and paste your token.
Test the Workflow: Click "Test Workflow" in n8n. Upload an image to your Google Drive Input folder. Watch the execution! Check Discord for the new post and Drive to see the file move.
Nodes Used
Google Drive Trigger:** Watches for new content. Google Drive:** Downloads, Updates (Renames), and Moves files. AI Agent (LangChain):** Orchestrates the analysis. Google Gemini Chat Model:** Generates the creative text. Structured Output Parser:** Ensures the AI replies in usable JSON. HTTP Request:** custom API call to Discord for advanced thread creation. Set:** Manages variables and folder IDs.
Customization Guide
Change the Persona:* Edit the "System Message" in the AI Agent* node to change the tone. Want a pirate narrator? Or a strictly professional corporate tone? Change it there!
š Thank You for Trying This Workflow!
Your time and trust mean a lot! I truly appreciate you using this template.
Your feedback shapes future updates:
š” Suggestions for improvement
š Ideas for new features
š Requests for other automation workflows
Please share your thoughts! Every idea helps shape the next update.
šāāļø Join & Follow For More Free Templates! Discord Community: We Work Together Get help, share builds, collaborate! Daily tips, tutorials, and updates Thank you again for being part of this journey! š Together, we automate better! š¤āØ
Related Templates
Automate Daily Keyword Research with Google Sheets, Suggest API & Custom Search
Who's it for This workflow is perfect for SEO specialists, marketers, bloggers, and content creators who want to automa...
USDT And TRC20 Wallet Tracker API Workflow for n8n
Overview This n8n workflow is specifically designed to monitor USDT TRC20 transactions within a specified wallet. It u...
Add product ideas to Google Sheets via a Slack
Use Case This workflow is a slight variation of a workflow we're using at n8n. In most companies, employees have a lot o...
š Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments