Challenge
A wellness company needed to build a compliant SMS opt-in system for their push notification platform while managing thousands of subscriber interactions.
The existing manual process for obtaining subscriber consent and registering devices was time-consuming and prone to compliance risks.
Solution
84EM developed a custom WordPress solution that automates the entire SMS consent workflow from first contact through opt-out.
The system integrates Twilio for two-way SMS communication and OneSignal for push notification delivery, creating a unified notification platform.
Subscribers text a keyword to begin the automated consent process, with the system handling device registration, compliance tracking, and notification delivery.
Technical Implementation
- Twilio webhook integration that processes incoming SMS messages and triggers automated responses accordingly.
- OneSignal API connection for device registration and push notification delivery across mobile platforms.
- Multi-step consent workflow with customizable response messages for opt-in, confirmation, and error scenarios.
- A device management system that tracks subscriber information, consent status, and OneSignal device IDs.
- Shortlink management with REST API endpoints for tracking engagement and click-through rates.
- Comprehensive logging for webhook activity, device registrations, and notification delivery for compliance auditing.
- WP-CLI command integration for administrative tasks and bulk operations.
- Automated opt-out handling that removes devices from both the database and OneSignal when users text STOP.
Results
The automated system eliminates manual subscriber management while maintaining full compliance with SMS marketing regulations.
The integration between Twilio and OneSignal creates a seamless notification pipeline from SMS opt-in to push notification delivery.
Comprehensive logging and tracking provide complete visibility into subscriber activity and consent history for regulatory compliance.
