Repository navigation
Trial lifecycle emails and activation tracking - #200
Merged
Merged
Conversation
Welcome email with the license key right after checkout, a day-3 getting started email (different when the key was never activated) and a reminder three days before a trial ends, from an hourly cron. Off until LIFECYCLE_EMAILS is on. The license API records the app's first/last check and version, shown in /admin with the emails sent.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Trial users get nothing from us by email today: no license key, no onboarding, no reminder before the first charge (all Stripe customer emails are off). The key only lives on the welcome page, and its "email it to me" button is a
mailto:link. The first trial ends 2026-10-24.What it does
emailstable). An hourly cron (17 * * * *) also sends welcome emails to orders from the last 14 days that never got one, so current trials get their key once this is on./api/licenserecordsfirst_seen_at,last_seen_at,app_versionwhen the app checks its key (user agentGodmodeBot/x, at most one write per hour)./adminrecent orders get "App" (e.g.2h ago · v0.2.15or "not activated") and "Emails" columns.Off by default
LIFECYCLE_EMAILS = "off"in wrangler.jsonc: due emails are only logged, nothing is sent or recorded. To turn on:usegodmode.com(DNS records), senderdaniel@usegodmode.com, replies go todaniel.ehrhardt@codext.de.pnpm db:migrate(migration 0003), deploy, then setLIFECYCLE_EMAILSto"on"and deploy again.The worker now has its own entry (
src/worker.ts) that serves Astro'shandleand addsscheduled.Tested
astro check0 errors,astro buildOK (bundle hasscheduled, cron andsend_emailbinding).wrangler dev: license check withGodmodeBot/0.2.15sets activation, a browser user agent doesn't; the cron run logslifecycle email due (sending is off) welcome …for both test orders and records nothing.The four emails (rendered with test data)
1-welcome
Subject: Your Godmode license key
Hi Alondra,
thanks for starting your Godmode trial. Here is everything you need in one place.
Your license key: GM-H9JY8-XXXXX-XXXXX-XXXXX
Download for Mac, Windows or Linux (your key is already filled in):
https://usegodmode.com/download?key=GM-H9JY8-XXXXX-XXXXX-XXXXX
Getting started takes about five minutes:
As a founding member you also get a 20-minute setup call with me. Reply with two times that work for you and the three things you want Godmode to take off your plate, and we set them up together.
Your trial runs until October 28. You can cancel any time, right here:
https://usegodmode.com/api/portal?key=GM-H9JY8-XXXXX-XXXXX-XXXXX
If anything gets stuck, just reply. This comes straight to me.
Daniel
Founder, Godmode
2-day3-not-activated
Subject: Did Godmode install OK?
Hi Alondra,
I noticed your Godmode key has not been activated yet, so I wanted to check if something got in the way.
Here is your download again, with the key filled in. Open it on your Mac or PC, not on your phone:
https://usegodmode.com/download?key=GM-H9JY8-XXXXX-XXXXX-XXXXX
Your key, in case you need to paste it: GM-H9JY8-XXXXX-XXXXX-XXXXX
If the install stopped somewhere, reply with a screenshot or one line about where, and I will help you get it running. Or send me two times for the setup call and we do it together in 20 minutes.
Daniel
Founder, Godmode
3-day3-activated
Subject: 3 things to try with Godmode this week
Hi Alondra,
good to see Godmode running on your computer. Three good first tasks, each one message:
Anything you do in a browser more than once a week is a good candidate. Ask Godmode to turn it into an agent with a schedule and it keeps doing it for you.
Tell me what you would like to automate first and I will send you the exact message to give it. The setup call is still open too, just reply with two times.
Daniel
Founder, Godmode
4-trial-ending
Subject: Your Godmode trial ends on October 20
Hi,
a quick heads-up: your free trial ends on October 20. After that your card is charged $39/month, the founding price, locked for as long as you stay.
Nothing to do if you want to keep going.
If Godmode is not for you, cancel before October 20 and you will not be charged:
https://usegodmode.com/api/portal?key=GM-H9JY8-XXXXX-XXXXX-XXXXX
And if you stay but it does not pay off, the 14-day money-back guarantee still applies after the first charge.
If something is not working the way you hoped, reply and tell me. I read every answer.
Daniel
Founder, Godmode