Skip to main content

Automate research-based newsletters with Perplexity, GPT-4, and image generation

Workflow preview

Workflow preview
100%
Automate research-based newsletters with Perplexity, GPT-4, and image generation preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

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 workf...

Best for

  • Social Media automation workflows
  • Multimodal AI automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.set, n8n-nodes-base.stickynote, n8n-nodes-base.scheduletrigger, @n8n/n8n-nodes-langchain.outputparserstructured, @n8n/n8n-nodes-langchain.lmchatopenai, n8n-nodes-base.googlecloudstorage, n8n-nodes-base.googlesheets, n8n-nodes-base.merge

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Tianyi.

Original n8n.io source

1.1 Workflow description

Title
Automate research-based newsletters with Perplexity, GPT-4, and image generation
Workflow name
Automate research-based newsletters with Perplexity, GPT-4, and image generation

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

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Input

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 2 - Sticky Note7

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 3 - Sticky Note20

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 4 - Schedule Trigger

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.2

Block 5 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 6 - Structured Output Parser1

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.2

Block 7 - OpenAI Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 8 - Sticky Note10

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 9 - Sticky Note15

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 10 - Sticky Note19

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 11 - SetImageURL1

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 12 - Google Cloud Storage 2

Type / Role
n8n-nodes-base.googleCloudStorage - googleCloudStorage
Config choices
Version 1

Block 13 - Sticky Note21

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 14 - GetClientList

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.5

Block 15 - Merge

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.1

Block 16 - GetNewsletterTopic

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.5

Block 17 - UpdateStatus

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.5

Block 18 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 19 - GetFirstTopic

Type / Role
n8n-nodes-base.limit - limit
Config choices
Version 1

Block 20 - Sticky Note6

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 21 - GPT Image Generation

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 22 - Convert to Binary File

Type / Role
n8n-nodes-base.convertToFile - convertToFile
Config choices
Version 1.1

Block 23 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 24 - Sticky Note8

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Showing the first 24 of 29 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Automate research-based newsletters with Perplexity, GPT-4, and image generation
Complexity advanced
Nodes 29
Categories Social Media, Multimodal AI
Author Tianyi
Published 04 May 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/3862/3862.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Automate research-based newsletters with Perplexity, GPT-4, and image generation do?

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 workf...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Social Media, Multimodal AI use case.