Automation library · Research and reporting

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.

LargeCalls a model: OpenAI

22 stepsLarge: read it before trusting it with anything live
1Branch: places the flow splits
0Loops or waits
3Services it connects to

The flow

Starts it 1Model 4Logic 12Service 5

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

  1. 1Daily Trigger (08:00)Schedule triggerStarts it
  2. 2OpenAI GPT-4 Vision ModelLm Chat Open AiModel
  3. 3OpenAI GPT-4 ModelLm Chat Open AiModel
  4. 4Workflow ConfigurationSetLogic
  5. 5Analyze Visual Hook (GPT-4 Vision)AgentModel
  6. 6Analyze Trend & Adaptation (GPT-4)AgentModel
  7. 7Search ConfigSetLogic
  8. 8Check Super Viral ThresholdIfLogic
  9. 9Scrape TikTokHttp RequestService
  10. 10Scrape InstagramHttp RequestService
  11. 11Mark as Super ViralSetLogic
  12. 12Mark as NormalSetLogic
  13. 13Normalize TikTok ResultsSetLogic
  14. 14Normalize Instagram ResultsSetLogic
  15. 15Merge Viral FlagsMergeLogic
  16. 16Send Super Viral AlertSlackService
  17. 17Combine PlatformsMergeLogic
  18. 18Save to Google SheetsGoogle SheetsService
  19. 19Select Top 5-10 VideosAggregateLogic
  20. 20Filter High-Growth VideosCodeLogic
  21. 21Prepare Email DataCodeLogic
  22. 22Send Daily Digest EmailGmailService

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.