π¬ Automate SEO blog creation from trends using Gemini AI, Apify, and Google Docs
β‘ 390 views Β· π¬ Content Creation & Video
π‘ Pro Tip β HTTP Request scraping tends to break when sites update their markup. If youβre scraping a major platform, check if ScraperNode covers it β it has maintained scrapers for LinkedIn, Instagram, TikTok, YouTube, and 20+ other platforms that return structured data.
Description
Automate SEO Blog Creation with Apify + Google Docs + KIE AIβs Nano Banana API
Whoβs it for
For content creators, SEO specialists, and digital marketers who want to automatically generate SEO-optimized blog posts from trending topics β no manual writing or formatting required.
How it works / What it does
This workflow turns trending searches into fully structured blog posts using AI:
- Fetch trending topics from India (or any country) using Apifyβs Google Trends scraper.
- Generate a SEO-optimized blog post with title, meta description, headings, and long-form content using Gemini AI.
- Refine the System Message (optional) with Gemini AI for better readability and engagement.
- Create a custom blog image using KIE AIβs Nano Banana API based on the blog title.
- Automatically insert all content and images into a Google Doc, ready for publishing.
How to set up
- Add your Apify API token in the Google Trends node.
- Configure Google Docs OAuth2 credentials for the document update node.
- Add your KIE AI Nano Banana API token for image generation.
- Schedule the Daily Trigger to your preferred time (default is 8 AM).
Requirements
- Apify API token (for trending search scraping)
- Google account with Docs access
- KIE AI Nano Banana API token
How to customize the workflow
- Change country or timeframe for trending searches.
- Update the AI prompt for tone, length, or style of the blog.
- Change the Google Doc ID to insert content into a different document.
- Adjust image generation settings (size, style) in the KIE AI node.
π Nodes Used
HTTP Request, Schedule Trigger, AI Agent, Structured Output Parser, Google Gemini Chat Model
π₯ Import
Download workflow.json and import into n8n:
Workflow menu β Import from File