Journey Triggers
Goals
- To provide extended onboarding to users by educating them about the effects of exercise on their body and the advantages of using our apps.
- To provide an achievement mechanism that can be used to unlock content based on the user's progress.
Requirements
The journey trigger system consists of triggers and actions that occur as a result of these triggers firing.
The following triggers can be defined. They fire once only per user, by design.
These triggers can be attached to multiple actions and all attached actions will run instantly when the trigger is fired for a user.
The following actions are possible:
Implementation Details
- Trigger evaluation and actions are all implemented server-side in Firebase Cloud Functions - AF-74Getting issue details... STATUS .
- The triggers and actions are defined in the FRD, in the journeyTriggers collection.
- The effects of the actions are relayed back to the client/user via updates to the user's FRD data:
- A new article can be marked with `isPriority = true` and it will be presented modally immediately to the user - AF-75Getting issue details... STATUS .
Assumptions
- If a workout is unlocked in one app, it must also be unlocked in all other apps where it is available.
- Some triggers will need to target activity across all apps, others will need to target a single app only (e.g. activities completed in 7MW only; or days since install of Afterburner).
- Some articles are relevant to all apps and others are relevant to a single app only. They must be shown only where relevant.
Journey Triggers
Name | Category | Type | Conditions | Apps | Description |
---|---|---|---|---|---|
First workout complete | Achievement | Total activities | activities = 1 | All (general) | Congrats, body is now adapting, importance of routine, reminder to set reminders. |