Create researched newsletter drafts from Google Sheets with Tavily, OpenAI, and MailerLite
Ready for 3.0What this workflow does
This AI workflow has 22 nodes and runs on a schedule (every week). Along the way it connects Google Sheets, OpenAI Chat Model and Google Gemini. It also calls api.tavily.com and connect.mailerlite.com over HTTP.
How it runs
Trigger: On a schedule (every week).
- Configure Newsletter (Edit Fields (Set)): sets 8 fields: spreadsheetId, sheetName, senderName…
- Read Content Calendar (Google Sheets): uses Google Sheets
- Select One Due Topic (Code): runs custom JavaScript code
- Mark Topic In Progress (Google Sheets): update
- Research Main Topic (HTTP Request): calls api.tavily.com (POST)
- Plan Newsletter Sections (AI Agent): runs an AI agent, with model: Planning Model; output parser: Parse Newsletter Plan
- Validate and Split Topics (Code): runs custom JavaScript code
- Process Sections One at a Time (Loop Over Items (Split in Batches)): loops over the items in batches
- Assemble Newsletter (Code): runs custom JavaScript code
- Research Section (HTTP Request): calls api.tavily.com (POST)
…plus 7 more steps. See the full node list below.
Services it uses
Other OpenAI + Google Sheets templates (2,011) · Other Google Gemini + Google Sheets templates (819) · Other OpenAI + Google Gemini templates (249)
HTTP calls to: api.tavily.com, connect.mailerlite.com
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (10)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - Google Sheets
n8n-nodes-base.googleSheets - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - AI Agent
@n8n/n8n-nodes-langchain.agent - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Google Gemini Tool
@n8n/n8n-nodes-langchain.googleGeminiTool
From the author
Quick overview This workflow runs weekly, reads a Google Sheets newsletter calendar to pick one due “Ready” topic, researches it with Tavily, drafts a three-section HTML newsletter using OpenAI and optional Gemini image analysis, then creates a draft campaign…