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:
-
Access Google Cloud Console
-
Create or Select a Project
- Click the project dropdown at the top
- Select "New Project"
- Name it (e.g., "TaskAGI Content Automation")
- Click "Create"
-
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)
-
Generate API Key
- Go to "Credentials" in the left sidebar
- Click "Create Credentials" → "API Key"
- Copy the generated key immediately
-
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:
-
Access Nano Banana Platform
- Visit nanobanana.ai (or your organization's endpoint)
- Sign up or log in with your account
-
Navigate to API Settings
- Go to Account Settings → API Keys
- Click "Generate New Key"
- Select "Image Generation" permissions
-
Copy Your API Credentials
- Copy both the API Key and API Secret
- Store these securely (you'll need both)
-
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:
-
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
-
Enable Google Docs API
-
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
-
Share the Document
- Open your Google Doc
- Click "Share"
- Add the service account email (from the JSON file)
- Grant "Editor" permissions
-
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
- Click the trigger node to open configuration
- Set Trigger Type to
Schedule Interval
- Configure timing:
-
Frequency: Daily
-
Time: 08:00 (8 AM)
-
Timezone: Select your timezone
- Enable Active toggle
- 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:
- Open the node and locate the Body section
- Verify these parameters are set:
{
"enableTrendingSearches": true,
"fetchRegionalData": true,
"region": "US",
"limit": 5
}
- Adjust
region to your target market (e.g., "GB", "CA", "AU")
- Set
limit to the number of trends to fetch (5 is recommended for daily content)
- 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:
- Open the node and review the Prompt field
- The prompt automatically includes:
- Trending topics from the previous node
- Instructions for SEO optimization
- Content structure requirements
- Verify the Model is set to
gemini-2.5-flash
- Set Temperature to
0.7 (balances creativity with consistency)
- Set Max Tokens to
2000 (ensures complete blog posts)
- 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:
- Set Input Source to the previous node (Generate SEO Blog Content)
- 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
- Enable Strict Mode for consistent parsing
- Test with sample data
Step 5: Generate Blog Image
Node: Generate Blog Image
Creates a professional featured image for your blog post.
Configuration:
- Set Prompt Template to:
Professional blog featured image for article titled: [BLOG_TITLE]
Style: Modern, clean, professional
Dimensions: 1200x630px
Include relevant visual elements
- Set Image Size to
1200x630 (optimal for web)
- Set Quality to
high
- Enable Auto-Naming to save with blog title
- 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:
- Set Function Type to
Format Document
- 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
- Add metadata:
- Publication date (auto-generated)
- Author name
- Category/tags
- 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:
- Paste your Document ID (from Step 1 of integrations)
- Set Append Location to
End of Document
- Configure formatting:
-
Add Date Header: Yes
-
Add Page Break: Yes
-
Include Image: Yes
- Set Permissions to ensure the service account has Editor access
- 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
- Open each integration node (Gemini, Nano Banana, Google Docs)
- Click "Test Connection" for each
- Verify all show ✓ Connected status
- If any fail, review API keys and permissions
Step 2: Run a Test Execution
- In your workflow, click "Run Workflow" (not "Schedule")
- Select "Run Now" to execute immediately
- 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
-
Check Blog Quality:
- Read the generated blog post for coherence
- Verify SEO keywords are naturally integrated
- Ensure proper heading structure
-
Inspect the Featured Image:
- Confirm image is professional and relevant
- Check dimensions (1200x630)
- Verify it matches your brand aesthetic
-
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:
-
Enable Scheduling: Toggle the trigger to "Active" to run daily at 8 AM
-
Monitor Performance: Check generated content quality for the first week
-
Optimize Prompts: Refine Gemini prompts based on content quality
-
Customize Styling: Adjust image generation prompts to match your brand
-
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. 🚀