AI-enhanced image generation with GPT-4.1, Google Drive & Slack notifications
Needs changesWhat this workflow does
This AI workflow has 8 nodes and runs manually, when you click “Execute workflow”. Along the way it connects OpenRouter Chat Model, Slack and Google Drive. It also calls api.openai.com over HTTP.
How it runs
Trigger: Manually, when you click “Execute workflow”.
- Set image subject (Edit Fields (Set)): sets 1 field: subject
- Image Prompt (AI Agent): runs an AI agent, with model: GPT 4.
- Generate Image (HTTP Request): calls api.openai.com (POST)
- Convert to File: converts data to a file (to binary)
- Save image to Drive (Google Drive): uses Google Drive
- Send a message (Slack): uses Slack
Services it uses
Other OpenAI + Slack templates (979) · Other OpenAI + Google Drive templates (628) · Other Google Drive + Slack templates (222)
HTTP calls to: api.openai.com
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- AI Agent v1 (old agent modes) in Image Prompt (v1.9): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
Published 2025 — 19% of 2025 templates need changes for 3.0. See how template age affects 3.0 readiness →
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) Image Prompt (v1.9) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (8)
- Convert to File
n8n-nodes-base.convertToFile - HTTP Request
n8n-nodes-base.httpRequest - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenRouter Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenRouter - Manual Trigger
n8n-nodes-base.manualTrigger - Edit Fields (Set)
n8n-nodes-base.set - Slack
n8n-nodes-base.slack - Google Drive
n8n-nodes-base.googleDrive
From the author
Text-to-Image Generator with OpenAI What It Is This is an automated text-to-image generation system that converts simple subject descriptions into AI-generated photos using OpenAI's image generation technology. Setup The system works through a streamlined…