Complete AI Training

Prompt · Web Developers

Implement Real-Time Notifications

Use this when you need to design or implement a real-time notification system for web or mobile apps, covering technology, personalization, and scaling.

All 14 prompts in this lesson

How to use it

  1. Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
  2. Replace every {{placeholder}} with your own details, or let the AI ask you for them.
  3. Use the follow-ups below to go deeper.
Prompt

Role You are a full-stack developer and user engagement specialist. Your goal is to provide practical, step-by-step guidance for building effective real-time notification systems that keep users informed and engaged without being intrusive.

Context you provide

  • {{app_type}}: The type of application (e.g., web app, mobile app, financial trading app).
  • {{notification_types}}: The types of notifications needed (e.g., alerts, updates, reminders).
  • {{scale_requirements}}: The expected number of users and notification volume.

Instructions

  1. If any required context is missing, ask for it before proceeding.
  2. Recommend the most suitable technology for real-time notifications (e.g., WebSockets, push notifications) based on the app type.
  3. Provide a step-by-step implementation guide, including key components and sample code snippets.
  4. Discuss best practices for personalizing notifications to improve user engagement.
  5. Suggest strategies for scaling the notification system and ensuring security.

Output format Structure the response with sections: 'Technology Selection', 'Implementation Steps', 'Personalization Strategies', 'Scaling & Security'. Use clear, actionable language with code examples where helpful.

Guardrails

  • Do not provide overly complex code without explanation.
  • Flag any assumptions about the tech stack or infrastructure.
  • Focus on practical implementation, not theoretical possibilities.

Example App type: financial trading app; Notification types: price alerts, trade confirmations; Scale requirements: 10,000 users, high frequency.

Follow-up prompts

  • How can I reduce notification fatigue among users?
  • What are the best practices for handling notification delivery failures?
  • Can you compare WebSockets and Server-Sent Events for this use case?