Generate social media posts and images with Groq, OpenAI and Google Drive
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 and image link.
How it works Receives an image idea and a target resolution from an n8n Form submission. Uses Groq (openai/gpt-oss-120b) to turn the user input into a structured image-generation prompt. Generates an image with OpenAI (gpt-image-1-mini) using the prompt and selected resolution. Uploads the generated image to a specified Google Drive folder and captures a shareable link. Uses Groq to generate platform-specific posts for Instagram, LinkedIn, and X (Twitter) based on the image prompt. Uses Groq to convert the social posts plus the Google Drive image link into a structured HTML page. Displays the generated HTML as the form completion response.
Setup Add Groq API credentials for the prompt generator, post generator, and HTML generator steps. Add OpenAI API credentials (or enable the managed AI gateway) for the image generation step. Connect Google Drive OAuth2 credentials and select the target Drive and folder ID where images are uploaded. Review the Form fields (input and resolution options) and update the Google Drive folder selection if you want to store images elsewhere.
Related Templates
Transform Gmail Newsletters into Insightful LinkedIn Posts Using OpenAI
Who Is This For? This workflow is perfect for content creators, marketers, and business professionals who receive regu...
AI Email Classifier & Auto-Delete for Gmail (SPAM/OFFER Cleaner)
This workflow is designed for freelancers, solopreneurs, and business owners who receive a high volume of irrelevant mes...
Generate Product Ad Copy & CTAs with GPT-4 for Slack and Airtable
⚡ AI Copywriter Pro: Instant Ad Copy & CTA Generator Transform product details into compelling marketing copy in second...
🔒 Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments