This workflow automates the creation of AI-generated viral selfie images with celebrities using Nano Banana Pro Edit via RunPod, generates engaging social media captions, and publishes the content to Instagram via Postiz. It starts with a form submission where the user provides an image URL, a custom prompt, and an aspect ratio.
| START |
RESULT |
 |
 |
Key Advantages
1. ✅ Full Automation, Zero Manual Effort
From image generation to caption writing and publishing, the entire process is automated. This drastically reduces production time and eliminates repetitive manual tasks.
2. ✅ Scalable Content Creation
The workflow can handle unlimited submissions, making it ideal for:
- Creators
- Agencies
- Growth teams
- SaaS products offering AI-generated content
3. ✅ Consistent Viral Quality
By using a dedicated AI content agent with strict guidelines, every post is:
- Optimized for engagement
- Consistent in tone and quality
- Designed to maximize comments, shares, and saves
4. ✅ No Technical Skills Required for End Users
The form-based entry point allows anyone to generate high-quality, celebrity-style content without understanding AI, APIs, or automation.
5. ✅ Multi-Tool Integration in One Pipeline
The workflow seamlessly connects:
- AI image generation (RunPod)
- AI content intelligence (Google Gemini)
- Asset storage (Google Drive)
- Social media distribution (Postiz)
6. ✅ Brand-Safe and Platform-Native Output
The captions are written to feel human and authentic, avoiding:
- Obvious AI language
- Overuse of emojis
- Mentions of AI generation
This increases trust and platform compatibility.
7. ✅ Perfect for Growth and Monetization
This workflow is ideal for:
- Viral growth experiments
- Personal brand scaling
- Automated influencer-style content
- AI-powered SaaS or lead magnets
How it works
The workflow then:
- Sends the image and prompt to RunPod’s Nano Banana Pro Edit API for AI image generation.
- Periodically checks the generation status until it is completed.
- Once the image is ready, it is downloaded and analyzed by Google Gemini to generate a viral-ready Instagram caption and hashtags.
- The final image is uploaded to Google Drive and to Postiz for social media publishing.
- The caption and image are combined and scheduled for posting on Instagram through the Postiz integration.
The process includes conditional logic, waiting intervals, and error handling to ensure reliable execution from input to publication.
Set up steps
To use this workflow in n8n:
-
Configure credentials:
- Add RunPod API credentials under
httpBearerAuth named “Runpods”.
- Set up Google Gemini (PaLM) API credentials for caption generation.
- Add Postiz API credentials for social media posting.
- Configure Google Drive OAuth2 credentials for image backup.
-
Prepare nodes:
- Ensure the Form Trigger node is properly set up with the required fields:
IMAGE_URL, PROMPT, and FORMAT.
- Update the RunPod API endpoints in the “Generate selfie” and “Get status clip” nodes if needed.
- Verify the Google Drive folder ID in the “Upload file” node.
- Replace
XXX in the “Upload to Social” node with a valid Postiz integration ID.
-
Test the flow:
- Use the pinned test data in the “On form submission” node to simulate a form entry.
- Activate the workflow and submit the form to trigger the process.
- Monitor execution in n8n’s workflow view to ensure all nodes run successfully.
👉 Subscribe to my new YouTube channel. Here I’ll share videos and Shorts with practical tutorials and FREE templates for n8n.

Need help customizing?
Contact me for consulting and support or add me on Linkedin.