# Create AI newsletters from YouTube with LangChain and Gemini: n8n workflow

> Started by someone submitting a form, and works across Gmail and Google Sheets. It hands the judgement calls to Gemini.

Source: https://millionrounds.com/workflow/create-ai-newsletters-from-youtube-with-langchain-and-gemini (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Content](https://millionrounds.com/workflows?category=Content#library)

# Create AI newsletters from YouTube with LangChain and Gemini

Started by someone submitting a form, and works across Gmail and Google Sheets. It hands the judgement calls to Gemini. 21 steps, 1 loop or waits: large, and worth reading before you trust it with anything live.

Large Calls a model: Gemini

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fcreate-ai-newsletters-from-youtube-with-langchain-and-gemini)

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

**0** Branches: places the flow splits

**1** Loop or waits

**2** Services it connects to

## The flow

Starts it 1 Model 8 Logic 5 Service 7

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

- 1 **Structured Output Parser1** Output Parser Structured *Model*
- 2 **On form submission** Form trigger *Starts it*
- 3 **Structured Output Parser2** Output Parser Structured *Model*
- 4 **Google Gemini Chat Model** Lm Chat Google Gemini *Model*
- 5 **Google Gemini Chat Model1** Lm Chat Google Gemini *Model*
- 6 **Convert Newsletter to HTML (AI)** Agent *Model*
- 7 **HTTP Request2** Http Request *Service*
- 8 **You Tube Transcript Scraper** Http Request *Service*
- 9 **You Tube Thumbnail Scraper** Http Request *Service*
- 10 **HTTP Request5** Http Request *Service*
- 11 **AI Agent1** Agent *Model*
- 12 **AI Agent2** Agent *Model*
- 13 **Information Extractor** Information Extractor *Model*
- 14 **Sending Emails to all the Subscribers** Gmail *Service*
- 15 **Save Newsletter Draft in Google Sheet1** Google Sheets *Service*
- 16 **Code in JavaScript** Code *Logic*
- 17 **Edit Fields** Set *Logic*
- 18 **Merge** Merge *Logic*
- 19 **Loop Over Items** Split In Batches *Logic*
- 20 **Aggregate** Aggregate *Logic*
- 21 **Get row(s) in sheet** Google Sheets *Service*

## How it's built

- **Starts on:** Someone submitting a form
- **Steps:** 21, 1 loop or waits
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Gmail, Google Sheets
- **Model:** Gemini

## Questions

What does it need to run?

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

What starts it?

It starts on someone submitting a form.

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 21 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 21 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%2Fcreate-ai-newsletters-from-youtube-with-langchain-and-gemini)
- **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)

## Workflows like it

Also content, with the same services where possible, closest in size first.

- [**AI agent for LinkedIn post with OpenAI and Google Sheets** 21 steps · calls a model · Google Sheets, LinkedIn](https://millionrounds.com/workflow/ai-agent-for-linkedin-post-with-openai-and-google-sheets)
- [**AI-powered content analysis with Decodo and OpenAI** 21 steps · calls a model · Gmail, Google Docs](https://millionrounds.com/workflow/ai-powered-content-analysis-with-decodo-and-openai)
- [**Analyze YouTube videos with OpenAI** 21 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/analyze-youtube-videos-with-openai)
- [**Automate AI video creation & multi-platform publishing** 21 steps · calls a model · Google Drive, Google Sheets](https://millionrounds.com/workflow/automate-ai-video-creation-and-multi-platform-publishing)
- [**Classify and summarize WeChat articles with OpenAI and Notion** 21 steps · calls a model · Google Sheets, Notion](https://millionrounds.com/workflow/classify-and-summarize-wechat-articles-with-openai-and-notio)
- [**Create LinkedIn posts and WordPress blogs with OpenAI** 21 steps · calls a model · Google Drive, Google Sheets](https://millionrounds.com/workflow/create-linkedin-posts-and-wordpress-blogs-with-openai)
