Send newsletter welcomes and release announcements with GitHub, OpenAI and SMTP
Needs changesWhat this workflow does
This AI workflow has 32 nodes and runs when an HTTP POST request hits its webhook URL (plus 2 other triggers). Along the way it connects OpenAI Chat Model. It also calls raw.githubusercontent.com over HTTP.
How it runs
Trigger: When an HTTP POST request hits its webhook URL (plus 2 other triggers).
- Set Email And Subscribed At (Edit Fields (Set)): sets 2 fields: email, subscribed_at
- Set Webhook Release Parameters (Edit Fields (Set)): sets 4 fields: version, changelog, SEND_EMAIL…
- Set Manual Release Parameters (Edit Fields (Set)): sets 4 fields: version, changelog, SEND_EMAIL…
- If: checks a condition and branches into true / false
- Validate Release Send Parameters (Code): runs custom JavaScript code
- Lookup Subscriber by Email (Data table): get
- Respond With Invalid Email (Respond to Webhook): sends the response back to the webhook caller
- Fetch Repo README From GitHub (HTTP Request): calls raw.githubusercontent.com
- If: checks a condition and branches into true / false
- Parse Release Versions From README (Code): runs custom JavaScript code
…plus 14 more steps. See the full node list below.
Services it uses
HTTP calls to: raw.githubusercontent.com
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 Release Email Copywriter Agent (v1.9): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) Release Email Copywriter Agent (v1.9) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (15)
- Webhook
n8n-nodes-base.webhook - Edit Fields (Set)
n8n-nodes-base.set - If
n8n-nodes-base.if - Respond to Webhook
n8n-nodes-base.respondToWebhook - Data table
n8n-nodes-base.dataTable - Code
n8n-nodes-base.code - Send Email
n8n-nodes-base.emailSend - HTTP Request
n8n-nodes-base.httpRequest - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - No Operation, do nothing
n8n-nodes-base.noOp - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Wait
n8n-nodes-base.wait - Manual Trigger
n8n-nodes-base.manualTrigger
From the author
Quick overview Manage newsletter subscriptions and product release notifications in one n8n workflow. It validates and stores subscribers, sends welcome emails, extracts release notes from your changelog or GitHub README, and sends polished update emails…