Skip to main content

Send SaaS trial follow-up emails with MongoDB and Gmail

Workflow preview

Workflow preview
100%
Send SaaS trial follow-up emails with MongoDB and Gmail preview
Open on n8n.io

1. Workflow Overview

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 ...

Best for

  • Lead Nurturing automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.scheduletrigger, n8n-nodes-base.mongodb, n8n-nodes-base.code, n8n-nodes-base.splitinbatches, n8n-nodes-base.switch, n8n-nodes-base.merge, n8n-nodes-base.gmail, n8n-nodes-base.stickynote

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Avkash Kakdiya.

Original n8n.io source

1.1 Workflow description

Title
Send SaaS trial follow-up emails with MongoDB and Gmail
Workflow name
Send SaaS trial follow-up emails with MongoDB and Gmail

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 workflow sends a targeted email using Gmail. This ensures consistent engagement and improves trial-to-paid conversion without manual effort.

Step-by-step

  • Fetch and filter trial users

  • Schedule Trigger – Runs the workflow daily at a fixed time.

  • Find documents – Retrieves users with an active trial plan from MongoDB.

  • Code in JavaScript – Calculates trial progress and assigns a trigger type (day_3, day_7, day_13, last_day).

  • Send stage-based emails

  • Loop Over Items – Iterates through each filtered user.

  • Switch – Routes users based on their trigger type.

  • Send day 3 email – Sends onboarding encouragement email.

  • Send day 7 mail – Sends mid-trial engagement email.

  • Send day 13 mail – Sends near-expiry reminder email.

  • Send Last day email – Sends final urgency email before trial ends.

  • Merge – Combines all branches and continues looping for remaining users.

Why use this?

  • Automates user engagement throughout the trial lifecycle
  • Improves activation and feature adoption with timely nudges
  • Increases conversion rates with strategic email timing
  • Eliminates manual tracking of trial users
  • Scales easily for large SaaS user bases

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Schedule Trigger

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.3

Block 2 - Find documents

Type / Role
n8n-nodes-base.mongoDb - mongoDb
Config choices
Version 1.2

Block 3 - Code in JavaScript

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 4 - Loop Over Items

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 5 - Switch

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3.4

Block 6 - Merge

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.2

Block 7 - Send day 3 email

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.2

Block 8 - Send day 7 mail

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.2

Block 9 - Send day 13 mail

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.2

Block 10 - Send Last day email

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.2

Block 11 - Sticky Note6

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 12 - Sticky Note7

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 13 - Sticky Note8

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Send SaaS trial follow-up emails with MongoDB and Gmail
Complexity intermediate
Nodes 13
Categories Lead Nurturing
Author Avkash Kakdiya
Published 26 Mar 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/14356/14356.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Send SaaS trial follow-up emails with MongoDB and Gmail do?

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 ...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Lead Nurturing use case.