Blog writer & editor with Google Sheets memory (GPT-4)
Ready for 3.0What this workflow does
This AI workflow has 13 nodes and runs when a chat message arrives (plus 1 other trigger). Along the way it connects OpenAI Chat Model and Google Sheets.
How it runs
Trigger: When a chat message arrives (plus 1 other trigger).
- Choose to Write or Edit Blog (Code): runs custom JavaScript code
- Get History (Google Sheets): uses Google Sheets
- Blog Writer & Editor (AI Agent): runs an AI agent, with model: OpenAI Chat Model; 1 tool (google); memory: Simple Memory; output parser: Structured Output Parser
- Filter: keeps only the items that match a condition
- n8n History (Google Sheets): append
- Summarize: summarizes / groups the items
- Check if Ran 4+ times (If): checks a condition and branches into true / false
Services it uses
Other OpenAI + Google Sheets templates (2,011)
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (12)
- Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow - Execute Workflow Trigger
n8n-nodes-base.executeWorkflowTrigger - Call n8n Workflow Tool
@n8n/n8n-nodes-langchain.toolWorkflow - Summarize
n8n-nodes-base.summarize - Filter
n8n-nodes-base.filter - AI Agent
@n8n/n8n-nodes-langchain.agent - Code
n8n-nodes-base.code - Chat Trigger
@n8n/n8n-nodes-langchain.chatTrigger - Google Sheets
n8n-nodes-base.googleSheets - If
n8n-nodes-base.if
From the author
Chat to write or reword a blog post. The workflow stores each result in Google Sheets and uses a sub-workflow “Google tool” to count rows per session (your running context). If a session exceeds a row threshold, the flow can branch (e.g., stop or notify). ---…