Generate and send AI news newsletters automatically with GPT & Gmail
Needs changesWhat this workflow does
This AI workflow has 6 nodes and runs on a schedule (every day). Along the way it connects Gmail and Azure OpenAI Chat Model.
How it runs
Trigger: On a schedule (every day).
- Set Dates (Edit Fields (Set)): sets 2 fields: currentDate, lastweekDate
- AI Agent: runs an AI agent, with model: Azure OpenAI Chat Model
- Format Email Content (Code): runs custom JavaScript code
- Gmail: uses Gmail
Services it uses
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- AI Agent v1 (old agent modes) in AI Agent (v1.9): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) AI Agent (v1.9) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (6)
- Edit Fields (Set)
n8n-nodes-base.set - Gmail
n8n-nodes-base.gmail - Code
n8n-nodes-base.code - AI Agent
@n8n/n8n-nodes-langchain.agent - Azure OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatAzureOpenAi - Schedule Trigger
n8n-nodes-base.scheduleTrigger
From the author
Description: Automate your AI newsletter creation and delivery using this ready-to-deploy n8n workflow template. Powered by GPT (OpenAI/Azure) and integrated with Gmail, this workflow generates rich, structured, and engaging AI-focused newsletters and sends…