Automation library · Content

Analyze YouTube comments and generate video ideas with Gemini

Started by an incoming Telegram message, and works across Google Sheets and Telegram. It hands the judgement calls to Gemini. 22 steps, 1 branch: large, and worth reading before you trust it with anything live.

LargeCalls a model: Gemini

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

The flow

Starts it 1Model 5Logic 11Service 5

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

  1. 1Telegram TriggerTelegram triggerStarts it
  2. 2Parse Structured OutputOutput Parser StructuredModel
  3. 3Gemini Chat Model AudienceLm Chat Google GeminiModel
  4. 4Gemini Chat Model IdeasLm Chat Google GeminiModel
  5. 5Set Message InfoSetLogic
  6. 6Analyze Audience AgentChain LlmModel
  7. 7Generate Video Ideas AgentChain LlmModel
  8. 8If Is YouTube URLIfLogic
  9. 9Set Repeated QuestionsSetLogic
  10. 10Build Final ReportSetLogic
  11. 11Set Video IDSetLogic
  12. 12Send Invalid URL ReplyTelegramService
  13. 13Set Content OpportunitiesSetLogic
  14. 14Append Analysis to SheetsGoogle SheetsService
  15. 15Fetch YouTube Video DetailsHttp RequestService
  16. 16Send Results to TelegramTelegramService
  17. 17Fetch YouTube CommentsHttp RequestService
  18. 18Split Comment ItemsSplit OutLogic
  19. 19Set Comment FieldsSetLogic
  20. 20Filter Empty CommentsFilterLogic
  21. 21Deduplicate by Comment TextRemove DuplicatesLogic
  22. 22Merge CommentsAggregateLogic

How it's built

Starts on
An incoming Telegram message
Steps
22, with 1 branch
Size
Large: read it before trusting it with anything live
Connects to
Google Sheets, Telegram
Model
Gemini

Questions

What does it need to run?

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

What starts it?

It starts on an incoming Telegram message.

Does it use AI?

Yes. It calls Gemini. 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.