# Analyze YouTube comments with OpenAI: n8n workflow template

> Started by an incoming Telegram message, and works across Gmail, Google Drive and Telegram. It hands the judgement calls to OpenAI.

Source: https://millionrounds.com/workflow/analyze-youtube-comments-with-openai (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)

# Analyze YouTube comments with OpenAI

Started by an incoming Telegram message, and works across Gmail, Google Drive and Telegram. It hands the judgement calls to OpenAI. 20 steps, 4 branches: a working afternoon to understand properly.

Medium Calls a model: OpenAI

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fanalyze-youtube-comments-with-openai)

**20 steps** Medium: a working afternoon

**4** Branches: places the flow splits

**0** Loops or waits

**3** Services it connects to

## The flow

Starts it 1 Model 2 Logic 11 Service 6

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

- 1 **Telegram Trigger1** Telegram trigger *Starts it*
- 2 **OpenAI** Lm Chat Open Ai *Model*
- 3 **If (Check Admin)** If *Logic*
- 4 **YouTube Video Report AI** Agent *Model*
- 5 **No Operation, do nothing** No Op *Logic*
- 6 **If (Check User Message)** If *Logic*
- 7 **Markdown to HTML Format** Markdown *Logic*
- 8 **If (Check Perfect Message for 'SEO Analysis')** If *Logic*
- 9 **Send a alert message to Admin** Telegram *Service*
- 10 **Gmail Report** Gmail *Service*
- 11 **Save Report to Google Drive** Google Drive *Service*
- 12 **Send a text message** Telegram *Service*
- 13 **Rapiwa** Rapiwa *Service*
- 14 **Code (Check Video ID & if exist then Separate it)** Code *Logic*
- 15 **If** If *Logic*
- 16 **Edit Fields (Set API key)** Set *Logic*
- 17 **Code (Make Video Comments Pagination)** Code *Logic*
- 18 **Split Out Comments** Split Out *Logic*
- 19 **Combine Comments** Summarize *Service*
- 20 **Create One JSON Object** Aggregate *Logic*

## How it's built

- **Starts on:** An incoming Telegram message
- **Steps:** 20, with 4 branches
- **Size:** Medium: a working afternoon
- **Connects to:** Gmail, Google Drive, Telegram
- **Model:** OpenAI

## Questions

What does it need to run?

An n8n account, plus your own Gmail, Google Drive and Telegram accounts, and a key for OpenAI. 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 OpenAI. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Plan an afternoon. 20 steps is enough that you should read each one before running it.

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 20 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%2Fanalyze-youtube-comments-with-openai)
- **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 Drive](https://millionrounds.com/workflows?service=Google+Drive#library)[Telegram](https://millionrounds.com/workflows?service=Telegram#library)

## Workflows like it

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

- [**AI lyrics study bot for Telegram: Translation, summary** 20 steps · calls a model · Telegram](https://millionrounds.com/workflow/ai-lyrics-study-bot-for-telegram-translation-summary)
- [**Analyze, classify, and summarize Gmail with OpenAI RAG** 20 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/analyze-classify-and-summarize-gmail-with-openai-rag)
- [**Compare LINE palm images and log Gemini health insights** 20 steps · calls a model · Google Drive, Google Sheets](https://millionrounds.com/workflow/compare-line-palm-images-and-log-gemini-health-insights)
- [**Daily news summarization with OpenAI Perplexity AI** 20 steps · calls a model · RSS, Telegram](https://millionrounds.com/workflow/daily-news-summarization-with-openai-perplexity-ai)
- [**Generate internet research PDF reports with OpenAI and Gmail** 20 steps · calls a model · Gmail](https://millionrounds.com/workflow/generate-internet-research-pdf-reports-with-openai-and-gmail)
- [**Generate tender eligibility summaries and bid checklists** 20 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/generate-tender-eligibility-summaries-and-bid-checklists)
