Repository navigation
Trial win-back by usage; first onboarding nudge after 1 hour - #899
Merged
Merged
Conversation
A week after a Cloud trial ends, a workspace that made a successful call gets 30% off (START30) and a month after 50% (WINBACK50); one that never did gets a single email on connecting an app from Claude or ChatGPT instead of a discount. Only trials that ended from 6 Oct 2026, honours the marketing opt-out, skips workspaces that bought a plan, one email per stage.
A user whose workspace is still empty an hour after signing up (was 24 hours, 2 with an AI client connected) gets how to add an app: ask Claude or ChatGPT in the chat, which installs the connector and hands over a one-time sign-in link, or pick one in the dashboard. The onboarding cron now runs hourly.
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Why
The site's win-back gave everyone the same 50% code: about 2,100 emails, 1 redemption. Most people whose Cloud trial ended never connected an app, and a discount does not help with a product they never saw work. Only the Cloud knows who used it.
Changes
runWinbackPassin the onboarding cron, for Cloud trials that ended from 6 Oct 2026. Earlier ones are still won back by the site.START30, envWINBACK_FIRST_PROMO_CODE) 7–14 days after expiry, then 50% off (WINBACK50, envWINBACK_FINAL_PROMO_CODE) 30–37 days after./mcp) and ask for an app: the assistant installs the connector and hands over a one-time link to sign in. Plans link included, since the trial has ended.org_settings. Workspaces that bought a plan are skipped, and admins who opted out of marketing email are respected. A failed send is retried while the window lasts.EmailService.sendTrialWinbackEmail, with the discount and help variants.Pairs with HelpCode-ai/anythingmcp-website (keysersoft/winback-by-usage), which stops the site's duplicate reminders for Cloud trials. There is no ordering constraint: the first Cloud win-back is due 13 Oct.
Also: first onboarding nudge after 1 hour
/mcp: "Connect my Shopify store", then a one-time sign-in link) or from the dashboard. If the user already connected an AI client, the email names it and says to ask it in the same chat. The second nudge is unchanged (72 hours)..github/workflows/onboarding-reminders.ymlnow runs hourly instead of every 6 hours. Every pass is gated by its own window or flag, so nothing is sent twice.hdbis missing locally). Both email variants were rendered and checked.Tests
hdbis missing locally) and the curl parser suite, which fails only inside the full run and passes alone (43/43).