story-kit: create 322_story_whatsapp_24_hour_messaging_window_and_template_support

This commit is contained in:
Dave
2026-03-19 22:48:29 +00:00
parent 7439c227a9
commit 8eff849e83

View File

@@ -0,0 +1,21 @@
---
name: "WhatsApp 24-hour messaging window and template support"
---
# Story 322: WhatsApp 24-hour messaging window and template support
## User Story
As a project owner, I want the bot to handle WhatsApp's 24-hour messaging window correctly, so that proactive notifications (build failures, merge completions) work within Meta's rules.
## Acceptance Criteria
- [ ] Bot tracks the 24-hour window per user — free-form replies only within 24h of last user message
- [ ] After 24h, bot uses approved message templates for notifications
- [ ] At least one message template registered with Meta for pipeline notifications (e.g. 'Story {name} has moved to {stage}')
- [ ] Bot gracefully handles 'outside messaging window' errors from the API without crashing
- [ ] Template registration documented in setup guide
## Out of Scope
- TBD