DEV Community

 AI Automation Enterenpeur
AI Automation Enterenpeur

Posted on

Build a Week-One Welcome Reminder for Your Community With Python

If you run an online community, a course or a beta user group, your newest members are the ones most likely to vanish. The fix isn't more content. It's noticing them: a thank-you on day 0, a nudge on day 3 and a check-in on day 7.

The messages should stay human. What you can automate is remembering who's due for which message. Let's build that in about 30 lines of plain Python.

The idea

  • Keep a CSV of members and the date they joined.
  • Each morning, a script works out how many days each member has been in.
  • If someone is on day 0, 3 or 7, it prints a draft message for you to personalize and send.

No API keys and no platform lock-in. It works with any community tool, because you send the messages yourself.

The data

Create members.csv:

name,joined
Dana,2026-11-26
Luis,2026-11-23
Priya,2026-11-19
Enter fullscreen mode Exit fullscreen mode

The script

import csv
from datetime import date, datetime

TEMPLATES = {
    0: "Hey {name}, thanks for joining! Quick question: what's the one thing you want to fix first?",
    3: "Hi {name}, checking in. Based on what you shared, this post is a great place to start: {start}",
    7: "{name}, one week in! What's been most useful so far, and what's missing?",
}

START_POST = "the pinned Start Here post"


def load_members(path):
    with open(path, newline="") as f:
        return list(csv.DictReader(f))


def messages_due(members, today):
    due = []
    for m in members:
        joined = datetime.strptime(m["joined"], "%Y-%m-%d").date()
        days_in = (today - joined).days
        template = TEMPLATES.get(days_in)
        if template:
            text = template.format(name=m["name"], start=START_POST)
            due.append((days_in, m["name"], text))
    return sorted(due)


if __name__ == "__main__":
    members = load_members("members.csv")
    due = messages_due(members, date.today())
    if not due:
        print("No welcome messages due today.")
    for day, name, text in due:
        print(f"[Day {day}] {name}\n{text}\n")
Enter fullscreen mode Exit fullscreen mode

Run it on Nov 26 with the sample CSV and you'll get a day 0 message for Dana, a day 3 message for Luis and a day 7 message for Priya.

How it works

  • load_members() reads the CSV into a list of dicts using the csv module from the standard library.
  • messages_due() subtracts the join date from today to get days_in, then looks up a template for that day. A dict keyed by day number makes adding a day 14 or day 30 message a one-line change.
  • Results are sorted by day, so the newest members show up first.

Running it every morning

Schedule it with cron:

0 8 * * * cd ~/community && python3 welcome.py | mail -s "Welcome messages due" you@example.com
Enter fullscreen mode Exit fullscreen mode

Now there's a short to-do list in your inbox at 8am.

Ideas to extend it

  • Add a "replied" column and skip the day 3 nudge for anyone who already answered on day 0.
  • Store each member's day 0 answer and choose the day 3 starting post based on it.
  • Export new members from your community tool once a week and append them to the CSV.

Keep the human part human

Resist the urge to auto-send these messages. The whole point is that a real person noticed. Let the script do the remembering so you can do the welcoming.

I'm using this approach in my own community for automation-minded business owners and creators. Come say hi: https://www.skool.com/automation-enterenpeur-7666

Top comments (0)