icy-read

byAviral Shukla

Read the attached PRD document completely before writing any code. Treat the document as the single source of truth. Do not skip sections. Do not summarize the document. Follow every requirement in the document. --------------------------------------------------------- PROJECT NAME ReplyWise AI AI-Powered Reputation Management Platform --------------------------------------------------------- MISSION Build a production-ready SaaS platform exactly according to the attached specification. Do not generate a prototype. Do not generate a demo. Do not generate mock-only screens. Generate a real application ready for deployment. --------------------------------------------------------- RULES Never recreate the project. Always extend existing code. Never replace working modules. Keep the architecture scalable. Keep code clean. Follow best engineering practices. --------------------------------------------------------- TECH STACK Next.js 15 React 19 TypeScript Tailwind CSS shadcn/ui Supabase PostgreSQL Supabase Auth Supabase Storage OpenAI Recharts Vercel --------------------------------------------------------- ARCHITECTURE Use Feature-Based Architecture. Separate Components Services Repositories Providers Hooks Utilities Types API Database Never mix business logic inside UI components. --------------------------------------------------------- DATABASE Generate all tables described in the document. Create Indexes Relationships Foreign Keys Triggers where appropriate Row Level Security Supabase Policies Migration scripts --------------------------------------------------------- AUTH Implement Login Signup Forgot Password Email Verification Organization Support Multi-tenancy Role-based permissions --------------------------------------------------------- DESIGN Premium SaaS quality. Take inspiration from Stripe Linear Vercel Notion Raycast Everything must be Responsive Accessible Beautiful Consistent Fast --------------------------------------------------------- UX Every page must include Loading state Skeleton Empty state Error state Responsive layout Toast notifications Search Pagination Filters --------------------------------------------------------- QUALITY Strict TypeScript Reusable components Reusable hooks Reusable services No duplicated code No console errors No TypeScript errors Production-ready architecture --------------------------------------------------------- DEVELOPMENT PROCESS Implement the application module-by-module. Complete one module before moving to the next. Run quality checks after every module. Do not continue if compilation errors exist. --------------------------------------------------------- MODULE ORDER 1 Authentication 2 Dashboard 3 Reviews 4 Google Business Profile Integration 5 AI Reply Engine 6 Analytics 7 Locations 8 QR Codes 9 Review Requests 10 Settings 11 Billing 12 Business Advisor 13 Marketing 14 Automations 15 Reports 16 API 17 Deployment Optimization --------------------------------------------------------- GOOGLE BUSINESS PROFILE Prepare production-ready integration. Keep credentials inside environment variables. Never expose secrets. Create modular providers. --------------------------------------------------------- AI Use Provider Pattern. Current provider OpenAI Future providers Gemini Claude Azure OpenAI OpenRouter The UI should never depend directly on any provider. --------------------------------------------------------- OUTPUT Generate production-quality code. Every file should compile. Do not use placeholder implementations unless API credentials are required. If placeholders are required, clearly mark them. Create TODO comments only where external credentials are needed. Never stop after generating UI. Continue implementing backend, database, APIs, services, and integrations until the entire module is complete. --------------------------------------------------------- WHEN FINISHED Run a full project review. Identify Architecture issues Performance issues Security issues Accessibility issues Database improvements UI improvements Code duplication Missing requirements Automatically fix them. Repeat until the project is production-ready.

LandingReview RequestsDashboardReviewsAutomationsLogin
Landing

Comments (0)

No comments yet. Be the first!

System Requirements

System Requirement Document
Page 1 of 8

ReplyWise AI - System Requirements Document

Introduction

This document outlines the system requirements for the ReplyWise AI platform, an AI-powered reputation management SaaS designed for local businesses. The platform will initially focus on Google Business Profile review management and will be architected to support additional platforms such as Facebook, Yelp, Trustpilot, Zomato, and Swiggy.

System Overview

ReplyWise AI is a SaaS platform that provides reputation management services for businesses such as restaurants, cafes, salons, clinics, gyms, hotels, agencies, and multi-location businesses. The platform leverages AI to generate replies, detect sentiment, and provide insights, while maintaining a scalable and modular architecture.

Functional Requirements

Page 2 of 8

Authentication and User Management

  • As a user, I want to log in to the platform using my credentials.
  • As a user, I want to sign up for a new account.
  • As a user, I want to reset my password if I forget it.
  • As a user, I want to verify my email address upon registration.
  • As an organization admin, I want to manage multiple organizations under a single account.
  • As an admin, I want to assign role-based permissions to users.
  • As a user, I want to authenticate using Google OAuth via Supabase Auth.
  • As a user, I want to request Google Business Profile permissions after clicking "Continue with Google".
  • As a user, I want to fetch all Google Business Profiles associated with my Google account after authentication.
  • As a user, I want to select a business profile from a modal if multiple profiles exist.
  • As a user, I want to save the selected business profile in Supabase.
  • As a user, I want to automatically import business details such as name, logo, address, phone number, website, category, opening hours, ratings, reviews, photos, and locations.
  • As a user, I want a one-click onboarding flow after connecting my Google Business Profile.
  • As a user, I want to be redirected to the dashboard and start syncing reviews automatically after connecting.
  • As a user, I want the Google token to refresh automatically if it expires.
  • As a user, I want to see the sync status and last synced time.
  • As a user, I want to reconnect or disconnect my Google Business Profile from the Settings.

Dashboard

  • As a user, I want to view a summary of my business's reputation metrics on the dashboard.
  • As a user, I want to access different modules from the dashboard.
Page 3 of 8

Reviews Management

  • As a user, I want to manage reviews from Google Business Profile.
  • As a user, I want to integrate reviews from Facebook, Yelp, Trustpilot, Zomato, and Swiggy.
  • As a user, I want to generate AI-powered replies to reviews.
  • As a user, I want to rewrite replies with different tones.
  • As a user, I want to receive multilingual replies.
  • As a user, I want to detect the sentiment of reviews.
  • As a user, I want to receive AI insights on reviews.
  • As a user, I want to maintain a consistent brand voice in replies.

AI Reply Engine

  • As a user, I want to use AI to generate replies to customer reviews.
  • As a user, I want to select the tone of AI-generated replies.
  • As a user, I want to receive streaming responses from the AI.

Analytics

  • As a user, I want to view analytics and insights on my business's reputation.
  • As a user, I want to receive weekly and monthly reports on analytics.

Locations Management

  • As a user, I want to manage multiple business locations within the platform.

QR Codes

  • As a user, I want to generate QR codes for customers to leave reviews.
Page 4 of 8

Review Requests

  • As a user, I want to send review requests to customers.

Billing

  • As a user, I want to manage my subscription and billing information.

Business Advisor

  • As a user, I want to receive business advice based on AI insights.

Marketing

  • As a user, I want to access marketing tools to promote my business.

Automations

  • As a user, I want to automate repetitive tasks within the platform.

Reports

  • As a user, I want to generate and view detailed reports on my business's performance.

API

  • As a developer, I want to access a public API to integrate with other systems.

Deployment Optimization

  • As a developer, I want to optimize the platform for deployment on Vercel.
Page 5 of 8

UX

  • As a user, I want every page to include loading state, skeleton, empty state, error state, responsive layout, toast notifications, search, pagination, and filters.

DEVELOPMENT PROCESS

  • As a developer, I want to implement the application module-by-module, completing one module before moving to the next.
  • As a developer, I want to run quality checks after every module and not continue if compilation errors exist.

MODULE ORDER

  • As a developer, I want to follow the module order: Authentication, Dashboard, Reviews, Google Business Profile Integration, AI Reply Engine, Analytics, Locations, QR Codes, Review Requests, Settings, Billing, Business Advisor, Marketing, Automations, Reports, API, Deployment Optimization.

WHEN FINISHED

  • As a developer, I want to run a full project review to identify and automatically fix architecture, performance, security, accessibility, database, UI, and code duplication issues, ensuring no missing requirements.

User Personas

  • Business Owner: Manages the overall reputation of their business across multiple locations.
  • Marketing Manager: Focuses on promoting the business and managing customer interactions.
  • Customer Service Representative: Handles customer reviews and feedback.
  • IT Administrator: Manages user accounts, permissions, and integrations.
Page 6 of 8

Core User Flows

  1. User Registration and Login

    • User signs up or logs in.
    • User verifies email if signing up.
    • User accesses the dashboard.
  2. Review Management

    • User views reviews from integrated platforms.
    • User generates AI replies.
    • User sends review requests.
  3. Analytics and Reporting

    • User views analytics dashboard.
    • User downloads weekly/monthly reports.
  4. Billing and Subscription

    • User updates billing information.
    • User manages subscription plans.
  5. Google Business Profile Integration

    • User clicks "Continue with Google".
    • User authenticates with Google and grants permissions.
    • User selects a business profile if multiple exist.
    • User's business details are imported and saved.
    • User is redirected to the dashboard and reviews start syncing.

Visuals Colors and Theme

  • Premium SaaS quality inspired by Stripe, Linear, Vercel, Notion, and Raycast.
  • Responsive, accessible, beautiful, consistent, and fast design.
Page 7 of 8

Signature Design Concept

  • Interactive Review Galaxy: The homepage features an interactive galaxy map where each star represents a review platform or feature. Users can click on a star to open a detailed view of that platform's reviews and analytics. The galaxy rotates as users drag their cursor, and hovering over stars highlights connections between features. This concept will be implemented using @react-three/fiber and gsap for smooth transitions and animations.

LANDING HERO MOTION BRIEF

  • The landing page will feature a dynamic illustration of a business's reputation journey. As users scroll, they will see inputs like customer reviews and feedback gathering around a central business icon. This icon will transform to reflect improved reputation metrics, culminating in a visual representation of enhanced business success. The animation will loop every 10 seconds, with interactive elements allowing users to explore specific features. This will be built using motion/react for seamless animations.

Interaction Model & Motion Direction

  • Parallax: The landing page will use a parallax effect to create depth, with layers moving at different speeds as users scroll. This will enhance the storytelling aspect of the platform's features.
  • Animated: Moderate scroll-triggered reveals, hover transitions, and spring physics on interactive elements will be used throughout the platform to maintain a polished and engaging user experience.

Non-Functional Requirements

  • Production-ready, scalable, and modular architecture.
  • Strict TypeScript usage with no console or TypeScript errors.
  • Reusable components, hooks, and services.
  • No duplicated code.

Tech Stack

  • Frontend: Next.js 15, React 19, TypeScript, Tailwind CSS, shadcn/ui
  • Backend: Supabase (PostgreSQL/Auth/Storage)
  • AI: OpenAI with provider abstraction
  • Deployment: Vercel
  • Visualization: Recharts
Page 8 of 8

Assumptions and Constraints

  • The platform will extend existing code and not recreate modules.
  • The architecture will remain scalable and modular.
  • All integrations will be kept modular with environment variables for credentials.

Glossary

  • AI: Artificial Intelligence
  • SaaS: Software as a Service
  • UI: User Interface
  • UX: User Experience
  • RLS: Row Level Security
  • API: Application Programming Interface
Landing design preview
Landing: View Info
Login: Sign In
Login: Continue with Google
Login: Select Business Profile
Dashboard: View Stats
Reviews: View Reviews
Reviews: Generate AI Reply
Locations: Manage Locations
Analytics: View Insights
Analytics: Download Reports
Business Advisor: View Advice
Billing: Manage Subscription
Settings: Configure Account
Settings: Manage Google Connection
Landing design preview
Landing: View Info
Login: Sign In
Login: Continue with Google
Login: Select Business Profile
Dashboard: View Stats
Reviews: View Reviews
Reviews: Generate AI Reply
Locations: Manage Locations
Analytics: View Insights
Analytics: Download Reports
Business Advisor: View Advice
Billing: Manage Subscription
Settings: Configure Account
Settings: Manage Google Connection