Global AI Network
Agent Template v1.0

SEO Blog Generator from Google Trends

Automate daily SEO blog creation with AI-powered trending topic research, image generation, and Google Docs publishing—all scheduled and hands-free.

421+
Deployments
10m
Setup Time
Free
Pricing

Need custom configuration?

Our solution engineers can help you adapt this agent to your specific infrastructure and requirements.

Enterprise Grade Best Practices Production Optimized

INTEGRATED_MODULES

Google Docs
Google Docs
Google Gemini
Google Gemini
Google Nano-Banana
Google Nano-Banana
Step by Step

Setup Tutorial

mission-briefing.md

What This Agent Does

This SEO Content Automation Agent is a powerful workflow that automatically discovers trending topics from Google Trends, generates optimized blog content using AI, creates professional featured images, and publishes everything directly to your Google Doc. Running daily at 8 AM, this agent eliminates the manual work of content research, writing, and formatting—allowing you to maintain a consistent, trend-responsive content calendar with minimal effort.

Key Benefits:

  • Save 3-4 hours daily on content research, writing, and formatting
  • Stay ahead of trends by automatically capturing what's trending in real-time
  • Maintain consistency with daily automated publishing to your content repository
  • Reduce content creation costs by leveraging AI-powered generation
  • Improve SEO performance with trend-aligned, keyword-optimized content

Target Use Cases:

  • Content marketing teams managing multiple blog channels
  • Digital agencies producing daily content for clients
  • Solo entrepreneurs who need consistent content without hiring writers
  • News and trend-focused publications requiring rapid content turnaround
  • Marketing departments supporting product launches with trend-aligned content

Who Is It For

This workflow is ideal for:

  • Content Marketers who need to publish regularly but lack time for daily research and writing
  • SEO Specialists looking to capitalize on trending search queries with optimized content
  • Agency Owners managing multiple client blogs and needing scalable automation
  • Entrepreneurs building content authority without a dedicated writing team
  • Marketing Teams supporting product launches with timely, trend-responsive articles
  • Bloggers seeking to maintain publishing schedules while focusing on strategy

Prerequisites: Basic familiarity with TaskAGI workflow creation, access to Google accounts (for Gemini, Docs), and comfort with API integrations.


Required Integrations

Google Gemini (googlegemini)

Why It's Needed: Google Gemini powers the AI-driven blog content generation. It analyzes trending topics and creates SEO-optimized, engaging blog posts tailored to your audience. Using the advanced Gemini 2.5 Flash model ensures fast, high-quality content generation suitable for daily automation.

Setup Steps:

  1. Access Google Cloud Console

  2. Create or Select a Project

    • Click the project dropdown at the top
    • Select "New Project"
    • Name it (e.g., "TaskAGI Content Automation")
    • Click "Create"
  3. Enable the Generative AI API

    • In the search bar, type "Generative Language API"
    • Click the result and select "Enable"
    • Wait for activation (usually 1-2 minutes)
  4. Generate API Key

    • Go to "Credentials" in the left sidebar
    • Click "Create Credentials" → "API Key"
    • Copy the generated key immediately
  5. Configure in TaskAGI

    • In your TaskAGI workflow, locate the "Generate SEO Blog Content" node
    • Paste your API key in the authentication field
    • Verify the model is set to gemini-2.5-flash
    • Test the connection by clicking "Validate"

Configuration Notes:

  • The Gemini 2.5 Flash model balances speed and quality—ideal for daily automation
  • Keep your API key secure; never share it publicly
  • Monitor your API usage in Google Cloud Console to manage costs

Google Nano Banana (googlenanobanana)

Why It's Needed: This integration generates professional, branded featured images for each blog post. Visual content dramatically increases engagement and shareability, and automated image generation ensures consistency across your content calendar.

Setup Steps:

  1. Access Nano Banana Platform

    • Visit nanobanana.ai (or your organization's endpoint)
    • Sign up or log in with your account
  2. Navigate to API Settings

    • Go to Account Settings → API Keys
    • Click "Generate New Key"
    • Select "Image Generation" permissions
  3. Copy Your API Credentials

    • Copy both the API Key and API Secret
    • Store these securely (you'll need both)
  4. Configure in TaskAGI

    • Open the "Generate Blog Image" node
    • Enter your API Key in the api_key field
    • Enter your API Secret in the api_secret field
    • Set image dimensions to 1200x630 (optimal for blog featured images)
    • Test by clicking "Generate Sample Image"

Configuration Notes:

  • The prompt automatically pulls your blog title for context-aware image generation
  • Images are generated in high resolution suitable for web and social media
  • Consider setting a consistent style prompt (e.g., "professional, modern, minimalist") for brand consistency

Google Docs (googledocs)

Why It's Needed: Google Docs serves as your centralized content repository. The workflow automatically appends each new blog post to a master document, creating a searchable archive and backup of all generated content.

Setup Steps:

  1. Create a Google Doc

    • Go to docs.google.com
    • Click "Create" → "Document"
    • Name it (e.g., "TaskAGI Generated Blog Posts")
    • Note the Document ID from the URL: docs.google.com/document/d/{DOCUMENT_ID}/edit
  2. Enable Google Docs API

  3. Create Service Account (Recommended)

    • Go to Credentials → "Create Credentials" → "Service Account"
    • Name it "TaskAGI Content Bot"
    • Grant "Editor" role
    • Create a JSON key file and download it
  4. Share the Document

    • Open your Google Doc
    • Click "Share"
    • Add the service account email (from the JSON file)
    • Grant "Editor" permissions
  5. Configure in TaskAGI

    • In the "Append to Google Doc" node, paste your Document ID
    • Upload the JSON key file in the authentication section
    • Test by clicking "Send Test Content"

Configuration Notes:

  • Keep your Google Doc organized with clear date headers for easy navigation
  • Consider creating separate docs for different content categories
  • The workflow automatically formats content with timestamps for easy tracking

Configuration Steps

Step 1: Set Up the Daily Trigger

Node: Daily Trigger 8AM

  1. Click the trigger node to open configuration
  2. Set Trigger Type to Schedule Interval
  3. Configure timing:
    • Frequency: Daily
    • Time: 08:00 (8 AM)
    • Timezone: Select your timezone
  4. Enable Active toggle
  5. Save and proceed

Why 8 AM? This timing ensures content is ready for morning team reviews and can be published during business hours.


Step 2: Fetch Trending Topics

Node: Fetch Google Trends

This node queries Google Trends to identify what's currently trending in your region.

Configuration:

  1. Open the node and locate the Body section
  2. Verify these parameters are set:
    {
      "enableTrendingSearches": true,
      "fetchRegionalData": true,
      "region": "US",
      "limit": 5
    }
    
  3. Adjust region to your target market (e.g., "GB", "CA", "AU")
  4. Set limit to the number of trends to fetch (5 is recommended for daily content)
  5. Test by clicking "Run Node"

Expected Output: A JSON array of trending topics with search volume data.


Step 3: Generate SEO Blog Content

Node: Generate SEO Blog Content

This is where AI magic happens—Gemini creates optimized blog posts from trending topics.

Configuration:

  1. Open the node and review the Prompt field
  2. The prompt automatically includes:
    • Trending topics from the previous node
    • Instructions for SEO optimization
    • Content structure requirements
  3. Verify the Model is set to gemini-2.5-flash
  4. Set Temperature to 0.7 (balances creativity with consistency)
  5. Set Max Tokens to 2000 (ensures complete blog posts)
  6. Configure output format:
    • Include Title: Yes
    • Include Meta Description: Yes
    • Include Keywords: Yes

Example Prompt Structure:

Generate an SEO-optimized blog post about: [TRENDING_TOPIC]
- Include an engaging title (60 characters max)
- Write 800-1000 words
- Include 3-5 relevant keywords naturally
- Structure with H2 and H3 headers
- Add a meta description (155 characters max)

Step 4: Parse Blog Output

Node: Parse Blog Output

This node extracts structured data from Gemini's response.

Configuration:

  1. Set Input Source to the previous node (Generate SEO Blog Content)
  2. Define extraction rules:
    • Title: Extract text between <title> tags
    • Content: Extract text between <content> tags
    • Meta Description: Extract text between <meta> tags
    • Keywords: Extract comma-separated values
  3. Enable Strict Mode for consistent parsing
  4. Test with sample data

Step 5: Generate Blog Image

Node: Generate Blog Image

Creates a professional featured image for your blog post.

Configuration:

  1. Set Prompt Template to:
    Professional blog featured image for article titled: [BLOG_TITLE]
    Style: Modern, clean, professional
    Dimensions: 1200x630px
    Include relevant visual elements
    
  2. Set Image Size to 1200x630 (optimal for web)
  3. Set Quality to high
  4. Enable Auto-Naming to save with blog title
  5. Test image generation

Pro Tip: Customize the style prompt to match your brand guidelines (e.g., "minimalist tech aesthetic" or "vibrant, colorful design").


Step 6: Format Blog Content

Node: Format Blog Content

This function node structures the blog post for Google Docs.

Configuration:

  1. Set Function Type to Format Document
  2. Configure formatting rules:
    • Title Formatting: Bold, 24pt font
    • Heading Formatting: Bold, 16pt font
    • Body Text: 11pt font, 1.5 line spacing
    • Meta Info: Italicized, 10pt font
  3. Add metadata:
    • Publication date (auto-generated)
    • Author name
    • Category/tags
  4. Include image reference from previous node

Step 7: Append to Google Doc

Node: Append to Google Doc

Publishes the formatted content to your Google Doc repository.

Configuration:

  1. Paste your Document ID (from Step 1 of integrations)
  2. Set Append Location to End of Document
  3. Configure formatting:
    • Add Date Header: Yes
    • Add Page Break: Yes
    • Include Image: Yes
  4. Set Permissions to ensure the service account has Editor access
  5. Test by clicking "Send Test Content"

Expected Result: Content appears in your Google Doc with proper formatting and the featured image.


Testing Your Agent

Pre-Launch Testing

Step 1: Validate All Integrations

  1. Open each integration node (Gemini, Nano Banana, Google Docs)
  2. Click "Test Connection" for each
  3. Verify all show ✓ Connected status
  4. If any fail, review API keys and permissions

Step 2: Run a Test Execution

  1. In your workflow, click "Run Workflow" (not "Schedule")
  2. Select "Run Now" to execute immediately
  3. Monitor the execution in real-time

Step 3: Verify Each Node

Node What to Check Success Indicator
Fetch Google Trends API response 5 trending topics returned
Generate SEO Blog Content quality 800+ word blog post generated
Parse Blog Output Data extraction Title, content, keywords extracted
Generate Blog Image Image creation Professional image generated
Format Blog Content Formatting Proper headers, spacing, styling
Append to Google Doc Document update Content appears in Google Doc

Step 4: Review Generated Content

  1. Check Blog Quality:

    • Read the generated blog post for coherence
    • Verify SEO keywords are naturally integrated
    • Ensure proper heading structure
  2. Inspect the Featured Image:

    • Confirm image is professional and relevant
    • Check dimensions (1200x630)
    • Verify it matches your brand aesthetic
  3. Validate Google Doc Output:

    • Open your Google Doc
    • Scroll to the end
    • Confirm all content, formatting, and image are present
    • Check that metadata (date, author) is correct

Success Indicators

Workflow is ready for scheduling when:

  • All integration tests pass
  • Generated blog post is 800+ words
  • Content includes 3-5 relevant keywords
  • Featured image is professional and on-brand
  • Google Doc contains properly formatted content with image
  • No errors appear in execution logs

Troubleshooting Common Issues

Issue: "API Key Invalid" error

  • Solution: Verify API key in Google Cloud Console hasn't expired; regenerate if needed

Issue: Blog content is too short or incomplete

  • Solution: Increase Max Tokens in Gemini node to 2500; adjust prompt for more detail

Issue: Image generation fails

  • Solution: Verify Nano Banana API credentials; check image dimensions are valid

Issue: Content doesn't appear in Google Doc

  • Solution: Confirm service account has Editor access; verify Document ID is correct

Next Steps

Once testing is complete:

  1. Enable Scheduling: Toggle the trigger to "Active" to run daily at 8 AM
  2. Monitor Performance: Check generated content quality for the first week
  3. Optimize Prompts: Refine Gemini prompts based on content quality
  4. Customize Styling: Adjust image generation prompts to match your brand
  5. Scale Up: Consider running multiple workflows for different topics or regions

Congratulations! Your SEO Content Automation Agent is now live and working to save you hours every day. 🚀

Similar Solutions

Related Agents

Explore these powerful automation agents that complement your workflow.

SEO Traffic Drop Auditor AI Agent with GSC

SEO Traffic Drop Auditor AI Agent with GSC

Automatically detect Google Search Console traffic drops, analyze affected pages with AI-powered SEO insights, and recei...

SEO Blog Content Automation AI

SEO Blog Content Automation AI

Generate SEO-optimized blog content with AI and automatically save topics, outlines, and drafts to Google Sheets for str...