Generate social media posts and images with Groq, OpenAI and Google Drive
Ready for 3.0What this workflow does
This AI workflow has 13 nodes and runs when someone submits an n8n form (“Image Generation Agent”). Along the way it connects Groq Chat Model, OpenAI and Google Drive.
How it runs
Trigger: When someone submits an n8n form (“Image Generation Agent”).
- Prompt Creation Agent (AI Agent): runs an AI agent, with model: Language Model Processor; output parser: Output Structuring Parser
- AI Image Generator (OpenAI): work with image
- Upload to Google Drive (Google Drive): uses Google Drive
- Post Content Generator (AI Agent): runs an AI agent, with model: Chat Model Execution; output parser: Output Parsing Agent
- HTML Generation Agent (AI Agent): runs an AI agent, with model: Groq Chat Model; output parser: Structured Output Parser
- Display Final Result (n8n Form): shows the next form page
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (7)
- n8n Form Trigger
n8n-nodes-base.formTrigger - AI Agent
@n8n/n8n-nodes-langchain.agent - Groq Chat Model
@n8n/n8n-nodes-langchain.lmChatGroq - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - OpenAI
@n8n/n8n-nodes-langchain.openAi - Google Drive
n8n-nodes-base.googleDrive - n8n Form
n8n-nodes-base.form
From the author
Quick overview This workflow collects an image idea via an n8n Form, uses Groq to generate an optimized image prompt, creates an image with OpenAI, uploads it to Google Drive, then generates Instagram/LinkedIn/X copy and returns an HTML page showing the posts…