Generate and Quality Control Images with DALL-E 2 and Human Review Loop
This n8n workflow automates the process of generating AI images using OpenAI's DALL-E 2 model with built-in human review and quality control. The workflow creates an image based on a predefined prompt, sends it for human review, and if the image is rejected, automatically generates a new version with an improved prompt. This is perfect for content creators, marketers, or anyone who needs high-quality AI-generated images with human oversight to ensure they meet specific standards.
Key Features: Automated image generation using DALL-E 2 Human-in-the-loop review process Automatic regeneration if images are rejected Customizable prompts and review criteria Quality assurance workflow
Step-by-Step Implementation Guide
Prerequisites Before setting up this workflow, you'll need:
n8n instance (cloud or self-hosted) OpenAI API account with DALL-E access GotoHuman account for review management
Step 1: Set Up OpenAI API Credentials
Go to OpenAI's website Create an account or sign in Navigate to "API Keys" in your dashboard Click "Create new secret key" Copy the API key and save it securely In n8n, go to Credentials → Add Credential → OpenAI API Paste your API key and save as "OpenAI account"
Step 2: Set Up GotoHuman Credentials
Visit GotoHuman and create an account Navigate to your API settings/dashboard Generate an API key In n8n, go to Credentials → Add Credential → GotoHuman API Enter your API credentials and save as "gotoHuman account"
Step 3: Configure the Review Template
In your GotoHuman dashboard, create a new review template with ID: 3473LaRDbdf03sd6uzYG Set up the template with: Image field: For displaying the generated image Prompt field: For showing the original prompt Review options: Approve/Reject buttons Configure reviewers and notification settings
Step 4: Import and Configure the Workflow
Copy the provided workflow JSON In n8n, click Import from File or Import from Clipboard Paste the workflow JSON The workflow will automatically create the following nodes:
Node Configuration Details:
Start Workflow (Manual Trigger) No configuration needed Used to manually start the workflow
Set Image Prompt Prompt**: "Make an image of an attractive person standing in new york city" Name**: "woman-nyc" Customize these values for your specific use case
Loop Over Items1 (Split in Batches) Processes items in batches No additional configuration needed
Initial Image Generation (OpenAI) Resource**: Image Model**: DALL-E 2 Prompt**: Uses the prompt from "Set Image Prompt" Credentials**: Select your "OpenAI account"
Initial Review (GotoHuman) Review Template ID**: 3473LaRDbdf03sd6uzYG Fields**: Maps image URL and prompt to review form Credentials**: Select your "gotoHuman account"
If Rejected (Conditional Logic) Checks if review response equals "rejected" Routes to regeneration if rejected
Second Image Generation (OpenAI) Same configuration as initial generation Uses updated prompt from review feedback
Second Review (GotoHuman) Same configuration as initial review Final quality check
Step 5: Customize for Your Use Case
Update Image Prompts: Modify the "Set Image Prompt" node with your specific requirements Adjust Review Criteria: Update your GotoHuman template with specific quality guidelines Configure Notifications: Set up email or Slack notifications in GotoHuman for reviewers
Step 6: Test the Workflow
Click Execute Workflow on the manual trigger Monitor the execution flow Check that images are generated and sent for review Verify the conditional logic works when images are rejected Confirm final approved images are properly handled
Step 7: Production Deployment
Set up proper error handling and logging Configure webhooks if you need external triggers Set up monitoring and alerts for failed executions Document your specific prompt guidelines for reviewers
Workflow Flow Summary
Start → Manual trigger initiates the workflow Set Prompt → Define the image generation parameters Generate Image → DALL-E 2 creates the initial image Human Review → GotoHuman presents image for approval Quality Check → If rejected, generate new image with improved prompt Final Review → Second human review ensures quality standards Complete → Approved images are ready for use
Troubleshooting Tips
API Rate Limits**: Ensure your OpenAI account has sufficient credits Review Template Issues**: Verify the template ID matches exactly Image URLs**: Check that image URLs are accessible for review Webhook Failures**: Ensure GotoHuman webhooks are properly configured
Contact Information
Robert A Ynteractive
For support, customization, or questions about this workflow:
📧 Email: rbreen@ynteractive.com 🌐 Website: https://ynteractive.com/ 💼 LinkedIn: https://www.linkedin.com/in/robert-breen-29429625/
Need help implementing this workflow or want custom automation solutions? Get in touch for professional n8n consulting and workflow development services.
Related Templates
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...
Instagram Full Profile Scraper with Apify and Google Sheets
📸 Instagram Full Profile Scraper with Apify and Google Sheets This n8n workflow automates the process of scraping ful...
Compare Lists and Identify Common Items & Differences Using Custom Keys
This workflow compares two lists of objects (List A and List B) using a user-specified key (e.g. email, id, domain) and ...
🔒 Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments