Automation library · Content

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.

LargeCalls a model: Gemini

21 stepsLarge: read it before trusting it with anything live
0Branches: places the flow splits
1Loop or waits
2Services it connects to

The flow

Starts it 1Model 8Logic 5Service 7

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

  1. 1Structured Output Parser1Output Parser StructuredModel
  2. 2On form submissionForm triggerStarts it
  3. 3Structured Output Parser2Output Parser StructuredModel
  4. 4Google Gemini Chat ModelLm Chat Google GeminiModel
  5. 5Google Gemini Chat Model1Lm Chat Google GeminiModel
  6. 6Convert Newsletter to HTML (AI)AgentModel
  7. 7HTTP Request2Http RequestService
  8. 8You Tube Transcript ScraperHttp RequestService
  9. 9You Tube Thumbnail ScraperHttp RequestService
  10. 10HTTP Request5Http RequestService
  11. 11AI Agent1AgentModel
  12. 12AI Agent2AgentModel
  13. 13Information ExtractorInformation ExtractorModel
  14. 14Sending Emails to all the SubscribersGmailService
  15. 15Save Newsletter Draft in Google Sheet1Google SheetsService
  16. 16Code in JavaScriptCodeLogic
  17. 17Edit FieldsSetLogic
  18. 18MergeMergeLogic
  19. 19Loop Over ItemsSplit In BatchesLogic
  20. 20AggregateAggregateLogic
  21. 21Get row(s) in sheetGoogle SheetsService

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.