MEDIUM story-scenario-based-follow-up-prompts-peer-mentor-005 5 pts
5
Story Points
Medium
Priority
Scenario-based Follow-up Prompts
Feature

User Story

As a Peer Mentor (Likeperson)
I want to compose the notification title and body for each scenario rule using a content builder that supports dynamic placeholders (e.g., mentor name, days since last activity, certification expiry date) and preview how the message will appear on a device before activating the rule
So that I can ensure scenario notifications are personalized, clearly worded, and action-oriented before they reach peer mentors — preventing confusing or generic messages that would undermine trust in the notification system

Acceptance Criteria

  • Given I am editing a scenario rule, when I open the notification content section, then I see a text editor with a placeholder insertion toolbar listing available dynamic fields (name, days inactive, certification expiry, etc.)
  • Given I insert a placeholder into the message body, when I view the preview, then the placeholder is replaced with realistic sample data appropriate to the placeholder type
  • Given I submit a message template that exceeds the 100-character push notification title limit, when I try to save, then a validation error is shown indicating the title must be shortened
  • Given the content template includes a placeholder that references data not available for a specific mentor, when the notification is generated for that mentor, then the placeholder is replaced with a sensible default (e.g., 'recently' for an unknown date) rather than a raw template token
  • Given I activate a scenario rule with a completed content template, when the first batch of notifications is dispatched, then the rendered messages contain the correct personalized content matching the template

Business Value

Personalized, well-crafted notifications significantly outperform generic ones in open and action rates. For HLF, where scenario-based prompts are the primary mechanism for improving the 40% mentor dissatisfaction rate with follow-up quality, the quality of the notification content is as important as the timing. A content builder with preview capability ensures coordinators can iterate on messaging without deploying broken or confusing notifications to the entire mentor roster.