FM
FlowMarket
AI Agents Advanced ⚡ 29 n8n Nodes

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)

Output Parser Structured Lm Chat Open Ai Google Cloud Storage Google Sheets Limit HTTP Request Convert To File Agent Gmail Http Request Tool

📖 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:

  1. **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:

  1. Click the Direct Download JSON button above to save Automate_research_based_newsletters_with_Perplexity_GPT_4_and.json.
  2. Log in to your n8n Cloud or self-hosted n8n instance.
  3. In your workflow canvas, click the menu in top-right and select Import from File (or paste the JSON directly).
  4. Configure your credentials (e.g. API keys, database URLs) in the corresponding node settings.
  5. Click Execute Workflow to test and switch to Active!

Related AI Agents Workflows

View All in AI Agents →