Automation library · Content

Detect viral YouTube videos with OpenAI and Gmail

Started by a clock, and works across Gmail. It hands the judgement calls to OpenAI. 22 steps: 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
0Branches: places the flow splits
0Loops or waits
1Service it connects to

The flow

Starts it 2Model 3Logic 13Service 4

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

  1. 1When clicking ‘Test workflow’Manual triggerStarts it
  2. 2ThinkTool ThinkModel
  3. 3OpenAI Chat ModelLm Chat Open AiModel
  4. 4Schedule TriggerSchedule triggerStarts it
  5. 5SetupSetLogic
  6. 6AI AgentAgentModel
  7. 7SearchVideosHttp RequestService
  8. 8MarkdownMarkdownLogic
  9. 9Split Out1Split OutLogic
  10. 10Send_ReportGmailService
  11. 11Split Out2Split OutLogic
  12. 12GetChannelInfoHttp RequestService
  13. 13GetVidStatsHttp RequestService
  14. 14ChannelInfoCodeLogic
  15. 15VidStatsCodeLogic
  16. 16MergeMergeLogic
  17. 17Remove_DuplicatesRemove DuplicatesLogic
  18. 18CalculateMetricsCodeLogic
  19. 19AlgorithmicLiftScoreCodeLogic
  20. 20SortSortLogic
  21. 21LimitLimitLogic
  22. 22AggregateAggregateLogic

How it's built

Starts on
A clock
Steps
22
Size
Large: read it before trusting it with anything live
Connects to
Gmail
Model
OpenAI

Questions

What does it need to run?

An n8n account, plus your own Gmail account, 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.