Spot social media trends and generate post ideas with Claude and Google Sheets
Needs changesNeeds changes. This template uses 1 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes). 1 breaking item(s) found. Static check, last run 2026-10-19.
What to replace before upgrading
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) Generate Content Ideas with Claude AI (v1.6) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (9)
- Webhook
n8n-nodes-base.webhook - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - Merge
n8n-nodes-base.merge - Wait
n8n-nodes-base.wait - AI Agent
@n8n/n8n-nodes-langchain.agent - Anthropic Chat Model
@n8n/n8n-nodes-langchain.lmChatAnthropic - Google Sheets
n8n-nodes-base.googleSheets - Respond to Webhook
n8n-nodes-base.respondToWebhook
What it does
This AI-powered workflow monitors trending topics across multiple social platforms, generates creative post ideas with captions and visual suggestions, and recommends optimal posting times based on engagement data. How it works 1. Trigger - Runs on schedule or webhook to start trend monitoring 2. Fetch Trends - Pulls trending topics from Twitter, Reddit, Google Trends 3. Wait & Aggregate - Allows trend data to settle for better analysis 4. Filter & Parse - JavaScript code filters relevant trends for your niche 5. AI Content Generation - Claude creates post ideas, captions, hashtags 6. Visual Suggestions - Recommends image/video concepts 7. Wait for Analysis - Pauses before engagement time calculation 8. Optimal Timing - JavaScript calculates best posting times 9. Log & Track - Records all ideas in Google Sheets 10. Response - Returns ready-to-use content ideas Setup Steps 1. Import this workflow into your n8n instance 2. Configure credentials: - Twitter API v2 - For trending hashtags and topics - Reddit API - For subreddit trending posts - Google Trends (no auth) - For search trends - Anthropic API - For Claude AI content generation - Google Sheets - To track generated ideas 3. Update your brand profile and niche in the config node 4. Set your target social platforms and audience 5. Activate the workflow Sample Trigger Payload json { "platforms": "twitter", "instagram", "linkedin", "niche": "AI & Technology", "trendSources": "twitter", "reddit", "google", "contentTypes": "educational", "entertaining", "news", "targetAudience": "tech professionals, 25-45", "brandVoice": "professional yet approachable", "minTrendScore": 60, "maxIdeasPerTrend": 3, "includeVisuals": true } Features - Multi-platform trend monitoring (Twitter, Reddit, Google Trends) - AI-powered content generation with brand voice matching - Visual concept suggestions for each post idea - Optimal timing recommendations based on engagement patterns - Hashtag strategy with trending and niche tags - Content calendar integration via Google Sheets - Duplicate prevention - tracks used trends - Performance tracking - logs which ideas perform best