Manage email campaigns with MailerLite, Google Sheets and Claude via OpenRouter
Ready for 3.0What this workflow does
This AI workflow has 63 nodes and runs when a chat message arrives. Along the way it connects OpenRouter Chat Model, Google Sheets and Postgres Chat Memory. It also calls connect.mailerlite.com over HTTP.
How it runs
Trigger: When a chat message arrives.
- Prepare Chat Context (Code): runs custom JavaScript code
- AI Intent Agent (AI Agent): runs an AI agent, with model: Intent OpenRouter Chat Model; memory: Postgres Chat Memory
- Parse Intent (Code): runs custom JavaScript code
- Clarification Needed? (If): checks a condition and branches into true / false
- Build Context Prompt (Code): runs custom JavaScript code
- Intent Switch (Switch): routes items into 3 branches
- Chat: send and wait for a reply
- Send Action Switch (Switch): routes items into 3 branches
- List Sent Campaigns (HTTP Request): calls an HTTP API
- Fetch Reactivation Segments (HTTP Request): calls an HTTP API
…plus 45 more steps. See the full node list below.
Services it uses
Other Google Sheets + OpenRouter templates (210) · Other Google Sheets + PostgreSQL templates (71) · Other OpenRouter + PostgreSQL templates (32)
HTTP calls to: connect.mailerlite.com
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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (11)
- Chat Trigger
@n8n/n8n-nodes-langchain.chatTrigger - Code
n8n-nodes-base.code - OpenRouter Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenRouter - AI Agent
@n8n/n8n-nodes-langchain.agent - If
n8n-nodes-base.if - Switch
n8n-nodes-base.switch - HTTP Request
n8n-nodes-base.httpRequest - Google Sheets
n8n-nodes-base.googleSheets - Chat
@n8n/n8n-nodes-langchain.chat - Postgres Chat Memory
@n8n/n8n-nodes-langchain.memoryPostgresChat - No Operation, do nothing
n8n-nodes-base.noOp
From the author
Email Marketing Manager What - Native n8n chat-operated AI employee for a single wellness SaaS brand - Handles three intents: send campaign, report campaign, reactivate cold subscribers Why - Replace repetitive email manager execution work without pretending…