Skip to main content

AI-powered viral trend analysis for TikTok and Instagram with GPT-4

Workflow preview

Workflow preview
100%
AI-powered viral trend analysis for TikTok and Instagram with GPT-4 preview
Open on n8n.io

Important notice

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

1. Workflow Overview

Automatically discover, analyze, and report the most viral TikTok and Instagram videos in your niche every day. This workflow leverages AI and Apify to help you stay ahead of ...

Best for

  • Market Research automation workflows
  • AI Summarization automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.scheduletrigger, n8n-nodes-base.set, n8n-nodes-base.httprequest, n8n-nodes-base.merge, n8n-nodes-base.code, @n8n/n8n-nodes-langchain.lmchatopenai, @n8n/n8n-nodes-langchain.agent, n8n-nodes-base.if

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Țugui Dragoș.

Original n8n.io source

1.1 Workflow description

Title
AI-powered viral trend analysis for TikTok and Instagram with GPT-4
Workflow name
AI-powered viral trend analysis for TikTok and Instagram with GPT-4

Automatically discover, analyze, and report the most viral TikTok and Instagram videos in your niche every day. This workflow leverages AI and Apify to help you stay ahead of social media trends.


What This Workflow Does

  • Scrapes trending videos from TikTok and Instagram using Apify.
  • Filters and analyzes content based on engagement, growth rate, and recency.
  • Uses AI (OpenAI GPT-4 Vision & GPT-4) to provide visual and trend analysis for each video.
  • Identifies “super viral” content and sends instant Slack alerts.
  • Saves results to Google Sheets and sends a daily email report with the top trends.

Use Cases

  • Social Media Managers: Instantly spot viral trends to inform your content strategy.
  • Content Creators: Get daily inspiration from the fastest-growing videos in your niche.
  • Marketing Teams: Monitor competitor performance and adapt to new trends quickly.
  • Agencies: Automate trend research and reporting for multiple clients.

How to Configure

  1. Workflow Configuration:
    Add your API keys, set engagement thresholds, and adjust main workflow settings.

  2. Search Config:
    Enter your keywords, hashtags, language, and time window for content discovery.

  3. Scrape TikTok & Scrape Instagram:
    Set up your Apify API credentials and endpoints.

  4. Save to Google Sheets:
    Connect your Google account and select the destination spreadsheet.

  5. Send Daily Digest Email:
    Add the recipient’s email address and customize the message if needed.

  6. Send Super Viral Alert (optional):
    Configure your Slack webhook for instant notifications.

> Tip: Test each integration and double-check your credentials before activating the workflow.


Requirements

  • Apify account and API token
  • Google account for Sheets integration
  • OpenAI API key (for AI analysis)
  • Slack webhook URL (optional, for viral alerts)

Stay ahead of the curve and never miss a viral trend again!

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 - Daily Trigger (08:00)

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.3

Block 2 - Workflow Configuration

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

Block 3 - Search Config

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

Block 4 - Scrape TikTok

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

Block 5 - Scrape Instagram

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

Block 6 - Normalize TikTok Results

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

Block 7 - Normalize Instagram Results

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

Block 8 - Combine Platforms

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

Block 9 - Filter High-Growth Videos

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

Block 10 - OpenAI GPT-4 Vision Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.3

Block 11 - Analyze Visual Hook (GPT-4 Vision)

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 3

Block 12 - OpenAI GPT-4 Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.3

Block 13 - Analyze Trend & Adaptation (GPT-4)

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 3

Block 14 - Check Super Viral Threshold

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 15 - Mark as Super Viral

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

Block 16 - Mark as Normal

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

Block 17 - Merge Viral Flags

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

Block 18 - Save to Google Sheets

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

Block 19 - Select Top 5-10 Videos

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

Block 20 - Send Daily Digest Email

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.1

Block 21 - Send Super Viral Alert

Type / Role
n8n-nodes-base.slack - slack
Config choices
Version 2.3

Block 22 - Prepare Email Data

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

Block 23 - Sticky Note

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

Block 24 - Sticky Note1

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

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

3. Summary Table

Workflow AI-powered viral trend analysis for TikTok and Instagram with GPT-4
Complexity advanced
Nodes 29
Categories Market Research, AI Summarization
Author Țugui Dragoș
Published 01 Dec 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/11411/11411.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 AI-powered viral trend analysis for TikTok and Instagram with GPT-4 do?

Automatically discover, analyze, and report the most viral TikTok and Instagram videos in your niche every day. This workflow leverages AI and Apify to help you stay ahead of ...

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 Market Research, AI Summarization use case.