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 JSON workflow
- 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 activates
- 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 Interactive
For support, customization, or questions about this workflow:
Need help implementing this workflow or want custom automation solutions? Get in touch for professional n8n consulting and workflow development services.