- Home
- Our Projects
- Real-Time Loyalty & Engagement System with Streaming Chat Bot
Real-Time Loyalty & Engagement System with Streaming Chat Bot
2024Real-time loyalty and reward platform with a custom streaming chat bot, enabling viewer engagement, point accumulation, and raffle-based rewards.
* Images are for illustration purposes only
Tech Stack
Key Features
- 01Real-Time Point Distribution & Raffle Mechanics
- 02Custom Streaming Bot (Reverse-Engineered WebSocket)
- 03NextAuth Secure Authentication
- 04Scheduled Reward Processing (QStash)
- 05Scalable Event-Driven Architecture
Project Details
Designed and developed a real-time loyalty and engagement system integrated with a custom-built streaming chat bot to enhance audience interaction and retention. The project focused on rewarding user activity such as watching, chatting, and interacting during live streams. Built a dedicated loyalty program web application using Next.js with secure and fast authentication via NextAuth. The platform allows users to track points, redeem rewards, and convert accumulated points into raffle tickets through a structured reward system. Developed a custom streaming bot using TypeScript and Node.js. At the time, no official API was available, so the bot was implemented by reverse-engineering the WebSocket communication protocol, enabling real-time detection of user activity and chat commands. Streamers could configure and use multiple bot commands to interact directly with viewers. Implemented real-time point distribution, raffle mechanics, and scheduled reward processing using PostgreSQL for persistence and Upstash Redis / QStash for caching and task scheduling. WebSocket-based communication ensured low-latency interactions between viewers, the bot, and the loyalty platform. The system was designed to be scalable, event-driven, and extensible, supporting high concurrency during live streaming sessions while maintaining accurate reward tracking and fair raffle execution.





