Skip to main content

Generate AI newsletter drafts from Google Sheets to Notion with GPT-5-mini

Workflow preview

Workflow preview
100%
Generate AI newsletter drafts from Google Sheets to Notion with GPT-5-mini preview
Open on n8n.io

Important notice

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

1. Workflow Overview

How it works: This template turns rows in a Google Sheet into polished newsletter drafts in Notion using an AI writing agent. You click Execute workflow in n8n. It fetches all rows marked N8n Statu...

Best for

  • Content Creation automation workflows
  • Multimodal AI automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

@n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmchatopenai, n8n-nodes-base.googlesheets, n8n-nodes-base.httprequest, n8n-nodes-base.code, n8n-nodes-base.notion, n8n-nodes-base.manualtrigger, n8n-nodes-base.splitinbatches

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Generate AI newsletter drafts from Google Sheets to Notion with GPT-5-mini
Workflow name
Generate AI newsletter drafts from Google Sheets to Notion with GPT-5-mini

How it works:

This template turns rows in a Google Sheet into polished newsletter drafts in Notion using an AI writing agent. You click Execute workflow in n8n. It fetches all rows marked N8n Status = Pending, generates a draft from Newsletter Title and About the Newsletter, creates a Notion page, writes the full draft, then flips the sheet row to Done before moving to the next one.

Before you start (use your own credentials):

  • Create and select your credentials in n8n:

    • Google Sheets (OAuth2 or Service Account) with access to the target spreadsheet.
    • Notion (Internal Integration) with access to the target database.
    • OpenAI (API Key) for the Chat Model.
  • Replace any placeholders in nodes:

    • Spreadsheet ID/URL and sheet/tab name (e.g., newsletter).
    • Notion Database ID / Parent and any page or block IDs used by HTTP Request nodes.
    • OpenAI model name if you prefer a different model.
  • Give the Notion integration access to the database (Share → Invite the integration).

  • Do not hard-code secrets in nodes. Store them in n8n Credentials.

Step-by-step:

  1. Manual Trigger Start the run with When clicking ‘Execute workflow’.

  2. Fetch pending input (Google Sheets → Get row(s) in sheet) Read the newsletter tab and pull only rows where N8n Status = Pending.

  3. Iterate (Split In Batches → Loop Over Items) Process one sheet row at a time for stable memory use and pacing.

  4. Generate the newsletter (AI Agent + OpenAI Chat Model)

    • AI Agent loads the “System Role Instructions” that define style, sections, and format.
    • Pass Newsletter Title and About the Newsletter to the OpenAI Chat Model to produce the draft.
  5. Create a Notion page (Notion → Create Page) Create a page in your Newsletter Automation database with the page title set from Newsletter Title.

  6. Prepare long content for Notion (Code) Split the AI output into ~1,800-character chunks and wrap as Notion paragraph blocks to avoid payload limits.

  7. Write content blocks to Notion (HTTP Request → UpdateNotionBlock) Send a PATCH request to append all generated blocks so the full draft appears on the page.

  8. Mark the sheet row as done (Google Sheets → Update row in sheet) Update N8n Status = Done for the processed Newsletter Title.

  9. Continue the loop Return to Split In Batches for the next pending row until none remain.

Tools integration:

  • Google Sheets — input queue and status tracking (PendingDone)
  • OpenAI — LLM that writes the draft from provided fields
  • Notion — destination database for each draft page
  • n8n Code + HTTP Request — chunking and Notion API block updates

Want auto-runs? Add a Cron trigger before step 2 and keep the flow unchanged.

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 - AI Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2.1

Block 2 - OpenAI Chat Model

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

Block 3 - Get row(s) in sheet

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

Block 4 - Update row in sheet

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

Block 5 - UpdateNotionBlock

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

Block 6 - Code

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 7 - Create Page

Type / Role
n8n-nodes-base.notion - notion
Config choices
Version 2.2

Block 8 - When clicking ‘Execute workflow’

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

Block 9 - Loop Over Items

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

3. Summary Table

Workflow Generate AI newsletter drafts from Google Sheets to Notion with GPT-5-mini
Complexity intermediate
Nodes 9
Categories Content Creation, Multimodal AI
Author Snehasish Konger
Published 25 Aug 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/7848/7848.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 Generate AI newsletter drafts from Google Sheets to Notion with GPT-5-mini do?

How it works: This template turns rows in a Google Sheet into polished newsletter drafts in Notion using an AI writing agent. You click Execute workflow in n8n. It fetches all rows marked N8n Statu...

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 Content Creation, Multimodal AI use case.