Skip to main content

Extract trends, auto-generate social content with AI, Reddit, Google & post

Workflow preview

Workflow preview
100%
Extract trends, auto-generate social content with AI, Reddit, Google & post preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Extract Trends and Auto Generate Social Media Content with OpenAI, Reddit, and Google Trends: Approve and Post to Instagram, TikTok, and More Description What Problem Does This Solve? ️ This work...

Best for

  • Social Media automation workflows
  • Multimodal AI automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.set, n8n-nodes-base.httprequest, @n8n/n8n-nodes-langchain.openai, n8n-nodes-base.merge, n8n-nodes-base.code, n8n-nodes-base.reddit, n8n-nodes-base.stickynote, n8n-nodes-base.googlesheets

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Immanuel.

Original n8n.io source

1.1 Workflow description

Title
Extract trends, auto-generate social content with AI, Reddit, Google & post
Workflow name
Extract trends, auto-generate social content with AI, Reddit, Google & post

Extract Trends and Auto-Generate Social Media Content with OpenAI, Reddit, and Google Trends: Approve and Post to Instagram, TikTok, and More


Description

What Problem Does This Solve? 🛠️

This workflow automates trend extraction and social media content creation for businesses and marketers. It eliminates manual trend research and content generation by fetching trends, scoring them with AI, and posting tailored content to multiple platforms. Target audience: Social media managers, digital marketers, and businesses aiming to streamline content strategies.

What Does It Do? 🌟

  • Fetches trending topics from Reddit, X and Google Trends
  • Scores trends for relevance using OpenAI.
  • Generates content for Twitter/X, LinkedIn, Instagram and Facebook
  • Posts to supported platforms
  • Stores results in Google Sheets for tracking

Key Features 📋

  • Real-time trend fetching from Reddit and Google Trends.
  • AI-driven trend scoring and content generation (OpenAI).
  • Automated posting to Twitter/X, LinkedIn, Instagram, and Facebook.
  • Persistent storage in Google Sheets.

Setup Instructions

Prerequisites ⚙️

  • n8n Instance: Self-hosted or cloud n8n instance.
  • API Credentials:
    • Reddit API: Client ID and secret from Reddit.
    • SerpApi (Google Trends): API key from SerpApi, stored in n8n credentials
    • OpenAI API: API key with GPT model access.
    • Twitter/X API: OAuth 1.0a credentials with write permissions.
    • LinkedIn API: OAuth 2.0 credentials with w_organization_social scope.
    • Instagram/Facebook API: Meta Developer app with posting permissions.
    • Google Sheets API: Credentials from Google Cloud Console.

Installation Steps 📦

  1. Import the Workflow:

    • Copy the workflow JSON from the "Template Code" section below.
    • Import it into n8n via "Import from File" or "Import from URL".
  2. Configure Credentials:

    • Add API credentials in n8n’s Credentials section for Reddit, SerpApi, OpenAI, Twitter/X, LinkedIn, Instagram/Facebook, and Google Sheets.
    • Assign credentials to respective nodes. For example:
      • In the Fetch Google Trends node (HTTP Request), use n8n credentials for SerpApi instead of hardcoding the API key.
      • Example: Set the API key in n8n credentials as SerpApiKey and reference it in the node’s query parameter: api_key={{ $credentials.SerpApiKey }}.
  3. Set Up Google Sheets with the following columns (exact column names are case-sensitive) -Timestamp | Trend | Score | BrandVoice | AudienceMood |

  4. Customize Nodes:

  • OpenAI Nodes (Trend Relevance Scoring, Generate Social Media Content): Update the model (e.g., gpt-4o) and prompt as needed.
  • HTTP Request Nodes (Post to Twitter/X, Post to LinkedIn, etc.): Verify URLs, authentication, and payloads.
  • Brand Voice/Audience Mood: Adjust Prepare Trend Scoring Input for your desired brand_voice (e.g., "casual") and audience_mood (e.g., "curious").
  1. Test the Workflow:
  • Fetch Reddit Trends to Store Selected Trends- to score and store trends.
  • Retrieve Latest Trends to end) to generate and post content
  • Check Google Sheets for posting statuses

How It Works

High-Level Steps 🔍

  • Fetch Trends: Pulls trends from Reddit,X and Google Trends.
  • Score Trends: Uses OpenAI to score trends for relevance.
  • Generate Content: Creates platform-specific social media content.
  • Post Content: Posts to LinkedIn, Facebook or X

Detailed descriptions are available in the sticky notes within the workflow screenshot above.


Node Names and Actions

Trend Extraction and Scoring

  • Daily Trigger Idea: Triggers the workflow daily.
  • Set Default Inputs: Sets default brand_voice and inputs.
  • Fetch Reddit Trends: Fetches Reddit posts.
  • Extract Reddit Trends: Extracts trends from Reddit.
  • Fetch Google Trends: Fetches Google Trends via SerpApi.
  • Extract Google Trends2: Processes Google Trends data.
  • Fetch Twitter Mentions: Fetches Twitter mentions.
  • Translate Tweets to English: Translates tweets.
  • Fix Tweet Translation Output: Fixes translation format.
  • Detect Audience Mood: Detects audience mood.
  • Fix Audience Mood Output: Fixes mood output format.
  • Analyze News Sentiment: Analyzes news sentiment.
  • Combine Data (Merge): Merges all data sources.
  • Merge Items into Single Item: Combines data into one item.
  • Combine Trends and UGC: Combines trends with UGC.
  • Prepare Trend Scoring Input: Prepares data for scoring.
  • Trend Relevance Scoring: Scores trends with OpenAI.
  • Parse Trend Scores: Parses scoring output.
  • Store Selected Trends: Stores trends in Google Sheets.

Content Generation and Posting

  • Retrieve Latest Trends: Retrieves trends from Google Sheets.
  • Parse Retrieved Trends: Parses retrieved trends.
  • Select Top Trends: Selects the top trend.
  • Generate Social Media Content: Generates platform-specific content.
  • Parse Social Media Content: Parses generated content.
  • Generate Images: Generates images for posts (if applicable). -Handle Approvals/Rejection before Posting
  • Post to Instagram: Posts to Instagram.
  • Post to Facebook: Posts to Facebook.
  • Post to LinkedIn: Posts to LinkedIn.

Customization Tips

  • Add Trend Sources 📡: Include more sources (e.g., Instagram trends) by adding nodes to Combine Data (Merge).
  • Change Content Tone ✍️: Update the Generate Social Media Content prompt for a different tone (e.g., "humorous").
  • Adjust Schedule ⏰: Modify Daily Trigger Idea to run hourly or weekly.
  • Automate TikTok/YouTube 🎥: Add video generation (e.g., FFMPEG) to post TikTok and YouTube Shorts

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Set Default Inputs

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 2 - Fetch Twitter Trends

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 3 - Fetch Twitter Mentions

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 4 - SERP-Google Trends

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 5 - Fetch Breaking News

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 6 - Analyze News Sentiment

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 1.8

Block 7 - Detect Audience Mood

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 1.8

Block 8 - Translate Tweets to English

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 1.8

Block 9 - Combine All Data

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.1

Block 10 - Merge Items into Single Item

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 11 - Fix Translated Tweets Output

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 12 - Fix Audience Mood Output

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 13 - Fix News Sentiment Output

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 14 - Trend Relevance Scoring (Wow Factor)

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 1.8

Block 15 - Extract Google Trends

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 16 - Extract News Headlines

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 17 - Log Reddit Response

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 18 - Posts from Reddit

Type / Role
n8n-nodes-base.reddit - reddit
Config choices
Version 1

Block 19 - Exctract Reddit Trends

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 20 - Parse Trend Scores

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 21 - Generate Social Media Content

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 1.8

Block 22 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 23 - Parse Social Media Content

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 24 - Retrieve Latest Trend Scores

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.5

Showing the first 24 of 62 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Extract trends, auto-generate social content with AI, Reddit, Google & post
Complexity advanced
Nodes 62
Categories Social Media, Multimodal AI
Author Immanuel
Published 15 Apr 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/3560/3560.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Extract trends, auto-generate social content with AI, Reddit, Google & post do?

Extract Trends and Auto Generate Social Media Content with OpenAI, Reddit, and Google Trends: Approve and Post to Instagram, TikTok, and More Description What Problem Does This Solve? ️ This work...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Social Media, Multimodal AI use case.