Send SaaS trial follow-up emails with MongoDB and Gmail
Ready for 3.0Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.
What this workflow does
This workflow has 10 nodes and runs on a schedule (every day). Along the way it connects MongoDB and Gmail.
How it runs
Trigger: On a schedule (every day).
- Find documents (MongoDB): uses MongoDB
- Code: runs custom JavaScript code
- Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
- Switch: routes items into 4 branches
- Send day 3 email (Gmail): uses Gmail
- Send day 7 mail (Gmail): uses Gmail
- Send day 13 mail (Gmail): uses Gmail
- Send Last day email (Gmail): uses Gmail
- Merge: merges the data from its input branches
Services it uses
Other MongoDB + Gmail templates (7)
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.
Check at runtime on n8n 3.0
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (7)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - MongoDB
n8n-nodes-base.mongoDb - Code
n8n-nodes-base.code - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Switch
n8n-nodes-base.switch - Merge
n8n-nodes-base.merge - Gmail
n8n-nodes-base.gmail
From the author
How it works This workflow runs on a daily schedule to monitor users currently on a trial plan. It fetches user data from MongoDB, calculates their trial stage, and assigns a trigger label such as Day 3, Day 7, Day 13, or Last Day. Based on this stage, the…