# AI-powered viral trend analysis for TikTok and Instagram: n8n workflow

> Started by a clock, and works across Gmail, Google Sheets and Slack. It hands the judgement calls to OpenAI.

Source: https://millionrounds.com/workflow/ai-powered-viral-trend-analysis-for-tiktok-and-instagram (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Research and reporting](https://millionrounds.com/workflows?category=Research+and+reporting#library)

# AI-powered viral trend analysis for TikTok and Instagram

Started by a clock, and works across Gmail, Google Sheets and Slack. It hands the judgement calls to OpenAI. 22 steps, 1 branch: large, and worth reading before you trust it with anything live.

Large Calls a model: OpenAI

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fai-powered-viral-trend-analysis-for-tiktok-and-instagram)

**22 steps** Large: read it before trusting it with anything live

**1** Branch: places the flow splits

**0** Loops or waits

**3** Services it connects to

## The flow

Starts it 1 Model 4 Logic 12 Service 5

The steps in the order they run, from what starts it.

- 1 **Daily Trigger (08:00)** Schedule trigger *Starts it*
- 2 **OpenAI GPT-4 Vision Model** Lm Chat Open Ai *Model*
- 3 **OpenAI GPT-4 Model** Lm Chat Open Ai *Model*
- 4 **Workflow Configuration** Set *Logic*
- 5 **Analyze Visual Hook (GPT-4 Vision)** Agent *Model*
- 6 **Analyze Trend & Adaptation (GPT-4)** Agent *Model*
- 7 **Search Config** Set *Logic*
- 8 **Check Super Viral Threshold** If *Logic*
- 9 **Scrape TikTok** Http Request *Service*
- 10 **Scrape Instagram** Http Request *Service*
- 11 **Mark as Super Viral** Set *Logic*
- 12 **Mark as Normal** Set *Logic*
- 13 **Normalize TikTok Results** Set *Logic*
- 14 **Normalize Instagram Results** Set *Logic*
- 15 **Merge Viral Flags** Merge *Logic*
- 16 **Send Super Viral Alert** Slack *Service*
- 17 **Combine Platforms** Merge *Logic*
- 18 **Save to Google Sheets** Google Sheets *Service*
- 19 **Select Top 5-10 Videos** Aggregate *Logic*
- 20 **Filter High-Growth Videos** Code *Logic*
- 21 **Prepare Email Data** Code *Logic*
- 22 **Send Daily Digest Email** Gmail *Service*

## How it's built

- **Starts on:** A clock
- **Steps:** 22, with 1 branch
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Gmail, Google Sheets, Slack
- **Model:** OpenAI

## Questions

What does it need to run?

An n8n account, plus your own Gmail, Google Sheets and Slack accounts, and a key for OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on a clock.

Does it use AI?

Yes. It calls OpenAI. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 22 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 22 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fai-powered-viral-trend-analysis-for-tiktok-and-instagram)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Gmail](https://millionrounds.com/workflows?service=Gmail#library)[Google Sheets](https://millionrounds.com/workflows?service=Google+Sheets#library)[Slack](https://millionrounds.com/workflows?service=Slack#library)

## Workflows like it

Also research and reporting, with the same services where possible, closest in size first.

- [**AI-Powered Vendor Policy & RSS Feed Analysis** 22 steps · calls a model · Gmail, RSS](https://millionrounds.com/workflow/ai-powered-vendor-policy-and-rss-feed-analysis)
- [**Analyze competitor Facebook ads with Apify and OpenAI** 22 steps · calls a model · Google Sheets](https://millionrounds.com/workflow/analyze-competitor-facebook-ads-with-apify-and-openai)
- [**Audit AI decisions and route risks with OpenAI and Slack** 22 steps · calls a model · Email, Slack](https://millionrounds.com/workflow/audit-ai-decisions-and-route-risks-with-openai-and-slack)
- [**Automate UX research planning with Gemini and Google Docs** 22 steps · calls a model · Gmail, Google Docs](https://millionrounds.com/workflow/automate-ux-research-planning-with-gemini-and-google-docs)
- [**Automate satellite data analysis and regulatory reporting** 22 steps · calls a model · Email, Postgres](https://millionrounds.com/workflow/automate-satellite-data-analysis-and-regulatory-reporting)
- [**CryptoMind AI: Multi-Model Market Analyst with Gemini** 22 steps · calls a model · Google Sheets, RSS](https://millionrounds.com/workflow/cryptomind-ai-multi-model-market-analyst-with-gemini)
