Automation library · Content

Generate and send AI newsletters with OpenAI and Tavily

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

LargeCalls a model: OpenAI

25 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 12Logic 5Service 7

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

  1. 1Structured Output ParserOutput Parser StructuredModel
  2. 2Structured Output Parser1Output Parser StructuredModel
  3. 3OpenAI Chat ModelLm Chat Open AiModel
  4. 4OpenAI Chat Model1Lm Chat Open AiModel
  5. 5OpenAI Chat Model2Lm Chat Open AiModel
  6. 6On form submissionForm triggerStarts it
  7. 7Structured Output Parser2Output Parser StructuredModel
  8. 8OpenAI Chat Model4Lm Chat Open AiModel
  9. 9Generate Draft Topics (AI)AgentModel
  10. 10Convert Newsletter to HTML (AI)AgentModel
  11. 11Generate Newsletter Content (AI)AgentModel
  12. 12HTTP RequestHttp RequestService
  13. 13HTTP Request2Http RequestService
  14. 14HTTP Request6Http RequestService
  15. 15AI AgentAgentModel
  16. 16Information Extractor1Information ExtractorModel
  17. 17Split TopicsSplit OutLogic
  18. 18Save Newsletter Draft in Google SheetGoogle SheetsService
  19. 19Sending Emails to all the SubscribersGmailService
  20. 20Merge Content PiecesAggregateLogic
  21. 21MergeMergeLogic
  22. 22TavilyHttp RequestService
  23. 23Loop Over ItemsSplit In BatchesLogic
  24. 24AggregateAggregateLogic
  25. 25Get row(s) in sheetGoogle SheetsService

How it's built

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

Questions

What does it need to run?

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

How long does it take to set up?

Take your time. At 25 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 25 steps before you point it at anything that matters.