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 h...
Template notes
šÆ 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
1. 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.
2. 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 processedfolderid value in the "Get File & Set Channel" (Set) node.
3. Configure AI Agent: Get your API Key from Google AI Studio. Add a new credential for Google PaLM API in the Chat Model node.