Automate research based newsletters with Perplexity GPT 4 and
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...
🔌 Nodes & Integrations Used (10)
📖 Implementation & Setup Guide
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 to connect n8n with all Google products
- 1 video guidance on how to connect n8n with Google Cloud Storage
Who is this for?
This template is ideal for:
- Content creators looking to automate their newsletter process.
- Marketers seeking to efficiently produce engaging newsletters with AI-generated content and imagery.
- Anyone wanting to create and send personalized newsletters on a schedule.
What problem is this workflow solving?
Manually creating and sending newsletters can be time-consuming, especially when including relevant and engaging content and imagery. This workflow automates the content generation (using AI and web search), image creation, and sending process, freeing up time and ensuring consistent communication with clients.
What this workflow does:
This workflow automates the following steps:
**Scheduled Trigger:** The workflow is triggered automatically on a predefined schedule.
**Get Newsletter Topic:** Retrieves the first unpublished newsletter topic from a Google Sheet titled "Newsletter Topics". It then updates the status of this topic and records the publication date to avoid duplication in future runs.
**AI Newsletter & Image Generator:** This is the core content creation step. It uses an AI agent (configured with OpenAI and Perplexity APIs) to generate an engaging newsletter and a detailed, ultra-realistic image prompt based on the selected topic and real-time web research.
**GPT Image Generation:** Uses the OpenAI API to generate an image based on the detailed image prompt created in the previous step.
**Get Client List:** Retrieves client names and email addresses from a Google Sheet titled "Clients".
**Send Newsletter:** Sends the personalized newsletter via Gmail to each client on the list, including the AI-generated title, content, and the uploaded image. The email body HTML is customizable.
Setup:
- **Configure the workflow's run frequency** within the "Schedule Trigger" node.
2. **Create a Google Sheet named "Newsletter Topics" and "Clients"** in your Google Drive.
3. **Enter your OpenAI and Perplexity API key** in the 'Input' node.
4. **Connect your Gmail account** to the "SendNewsletter" node.
How to customize this workflow:
**Adjust the prompt for your newsletter style** in the "AI Agent" node.
**Adjust the Email Body HTML for your newsletter style** in the "SendNewsletter" node.
Optionally, enable the "Tavily WebSearch" node and configure it if you prefer to use Tavily instead of Perplexity for web search.
Category:
Marketing, Content Creation, Automation
⚡ How to import this workflow into n8n:
- Click the Direct Download JSON button above to save
Automate_research_based_newsletters_with_Perplexity_GPT_4_and.json. - Log in to your n8n Cloud or self-hosted n8n instance.
- In your workflow canvas, click the menu in top-right and select Import from File (or paste the JSON directly).
- Configure your credentials (e.g. API keys, database URLs) in the corresponding node settings.
- Click Execute Workflow to test and switch to Active!
Related AI Agents Workflows
View All in AI Agents →5 ways to process images PDFs with Gemini AI in n8n
How it works Many users have asked in the support forum about different methods to analyze images and PDF documents with Google Gemini AI in n8n. This workfl...
7 AI Sales Assistant
Production-ready n8n automation template for 7 AI Sales Assistant built by AhiXLight. Seamlessly connects Airtop Tool, Slack, Airtop with 24 configured nodes.
AAVE portfolio professional AI agent Telegram Email GPT 4o
A next-generation AI-powered DeFi health monitor that tracks wallet positions across Aave V3 using GPT-4o and LangChain. It delivers human-readable reports v...
Access control for AI agents RBAC using Airtable and Telegram
Purpose This workflow allows granular control over the access to tools connected to AI Agents (including Multi-Agent setups) using Role Based Access Control....