Transform press releases (PDF & Word) into polished articles with Gmail & OpenAI
Needs changesWhat this workflow does
This AI workflow has 20 nodes and runs on Gmail events. Along the way it connects Gmail, Anthropic Chat Model, OpenAI and Google Drive.
How it runs
Trigger: On Gmail events.
- Code: runs custom JavaScript code
- has attachment? (If): checks a condition and branches into true / false
- PDF or WORD? (If): checks a condition and branches into true / false
- AI Article Writer (AI Agent): runs an AI agent, with model: Anthropic Chat Model
- Extrahiere aus PDF (Extract from File): extracts data from a file (pdf)
- Google Drive: uses Google Drive
- OpenAI: uses OpenAI
- AI Article Writer (AI Agent): runs an AI agent, with model: Anthropic Chat Model
- HTTP Request: calls an HTTP API (POST)
- reply to sender (no attachment) (Gmail): reply
…plus 6 more steps. See the full node list below.
Services it uses
Other OpenAI + Gmail templates (1,623) · Other OpenAI + Google Drive templates (628) · Other Gmail + Google Drive templates (465)
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- AI Agent v1 (old agent modes) in AI Article Writer 1 (v1.7), AI Article Writer 2 (v1.7), AI Article Writer 3 (v1.7): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
- Also check Gmail Trigger below v1.4 runs as v1.4 (drafts skipped, max emails per poll).
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
Published 2025 — 19% of 2025 templates need changes for 3.0. See how template age affects 3.0 readiness →
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) AI Article Writer 1 (v1.7), AI Article Writer 2 (v1.7), AI Article Writer 3 (v1.7) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (10)
- Gmail Trigger
n8n-nodes-base.gmailTrigger - Extract from File
n8n-nodes-base.extractFromFile - HTTP Request
n8n-nodes-base.httpRequest - Anthropic Chat Model
@n8n/n8n-nodes-langchain.lmChatAnthropic - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - OpenAI
@n8n/n8n-nodes-langchain.openAi - Gmail
n8n-nodes-base.gmail - AI Agent
@n8n/n8n-nodes-langchain.agent - Google Drive
n8n-nodes-base.googleDrive
From the author
This n8n workflow automates the transformation of press releases into polished articles. It converts the content of an email and its attachments (PDF or Word documents) into an AI-written article/blog post. What does it do? This workflow assists editors and…