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.