Back
Daily Trivia Email Bot
April 2025

Daily Trivia Email Bot

A small bot that emails a short, friendly piece of trivia to its subscribers every morning. There is no app and no website. It just lands in your inbox, reads in under a minute, and is gone.

Where it started

The idea was a calm daily habit that teaches something without demanding attention all day. A single email felt right. No feed to scroll, no streak to keep. It goes out to a handful of family and friends, with me on the list too.

How it's built

It is a single Python script. Each day it picks a theme based on the day of the week, asks OpenAI's GPT-5 for a short paragraph on a random topic from that theme, and sends it over SMTP. A GitHub Action deploys the latest code to PythonAnywhere, where a scheduled task runs it every morning.

There is one topic pool per weekday. Monday is science, Tuesday history, Wednesday art, Thursday technology, Friday culture, Saturday nature, and Sunday space. Each pool holds fifteen topics, so the same theme returns each week but the subject rarely repeats.

  • The subject line is chosen at random from ten warm, playful options.
  • Recipients are sent as BCC, so nobody sees the rest of the list.
  • Hosted on PythonAnywhere, run by a cron schedule every morning.

The trivia is written in Korean and asked for in a gentle, polite tone. It is a quiet project, and that is the point.

A morning email as it arrives, subject line and all.