Email Automation
Send newsletter welcomes and GitHub release emails drafted by OpenAI via SMTP
Takes signups from a public webhook into a Data Table, sends welcome emails, and sends OpenAI-drafted release announcements only when SEND_EMAIL is set to YES.
What it does
## Newsletter Subscribe + Release Notification ### What this template does 1. Accepts newsletter signups from a public form/webhook. 2. Stores each email once in an n8n Data Table. 3. Sends a welcome email to new subscribers. 4. Generates release announcement email content from release notes. 5. Sends the release email to subscribers only after an explicit send confirmation. ### Main safety rule Release emails are blocked unless SEND_EMAIL is exactly YES. Keep it as NO while setting up or testing. ### Required setup before activating - Create or select a Data Table for subscribers and replace every REPLACE_WITH_YOUR_NEWSLETTER_DATA_TABLE_ID placeholder. - Configure Header Auth on both webhook triggers. - Configure SMTP credentials on both email nodes. - Replace newsletter@example.com, product names, website links, release links, and footer/legal copy. - Point Fetch Repo README From GitHub to your real README or changelog source. - Add unsubscribe/legal handling before using this with a public mailing list.
The steps
- When Newsletter Subscription Received
- Set Email And Subscribed At
- If Valid Email Address
- Respond With Invalid Email
- Lookup Subscriber by Email
- If Subscriber Not Found
- Insert New Subscriber
- Build Welcome Email Content
- Send Welcome Email
- Respond With Signup Success
- Respond Already Subscribed
- When Release Notification Posted
- Set Manual Release Parameters
- Fetch Repo README From GitHub
32 steps in total.
Similar automations
Email AutomationManage a Job Newsletter with Subscribers via Webhooks and OpenAI36 stepsLead Generation & EnrichmentEmail AI-drafted replies to new website form leads via Gmail and OpenAI5 stepsCode, Git & Developer ToolsGenerate Release Notes from GitHub and Jira with Gemini10 stepsFiles & Cloud StorageCreate CTD dossier folders and AI-drafted assignment emails with Google Workspace and33 steps