Automate research-based newsletters with Perplexity, GPT-4, and image generation
Needs changesWhat this workflow does
This AI workflow has 17 nodes and runs on a schedule (every day). Along the way it connects OpenAI Chat Model, Google Cloud Storage, Google Sheets and Gmail and 1 more.
How it runs
Trigger: On a schedule (every day).
- GetNewsletterTopic (Google Sheets): uses Google Sheets
- GetFirstTopic (Limit): keeps the first few items
- UpdateStatus (Google Sheets): uses Google Sheets
- Input (Edit Fields (Set)): sets or maps fields
- AI Agent: runs an AI agent, with model: OpenAI Chat Model; 1 tool (Perplexity Search); output parser: Structured Output Parser
- GPT Image Generation (HTTP Request): calls an HTTP API
- Convert to Binary File (Convert to File): converts data to a file
- GetClientList (Google Sheets): uses Google Sheets
- Google Cloud Storage: uses Google Cloud Storage
- Merge: merges the data from its input branches
…plus 3 more steps. See the full node list below.
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.
| 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 (13)
- Edit Fields (Set)
n8n-nodes-base.set - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Google Cloud Storage
n8n-nodes-base.googleCloudStorage - Google Sheets
n8n-nodes-base.googleSheets - Merge
n8n-nodes-base.merge - Limit
n8n-nodes-base.limit - HTTP Request
n8n-nodes-base.httpRequest - Convert to File
n8n-nodes-base.convertToFile - AI Agent
@n8n/n8n-nodes-langchain.agent - Gmail
n8n-nodes-base.gmail - Http Request Tool
n8n-nodes-base.httpRequestTool
From the author
This n8n workflow automates the process of creating and sending high-quality newsletters with images generated by a GPT image generator. It is triggered on a schedule. What is included? - 1 n8n workflow (json) - 1 Setup tutorial doc - 1 video guidance on how…