Skip to content

Latest commit

ย 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

StayDesk - AI-Powered Hotel Email Management

๐Ÿจ StayDesk is an intelligent email management system for hotels that automatically reads guest inquiries, provides real-time availability and pricing, and generates secure booking links - all powered by AI.

โœจ Features

๐Ÿค– AI-Powered Email Processing

  • Automatic Email Reading: Parse guest inquiries from any email platform
  • Intelligent Data Extraction: Extract check-in/out dates, guest count, room preferences
  • Context Understanding: Understand guest intent and special requests

โšก Real-Time Responses

  • Instant Availability Check: Real-time room availability lookup
  • Dynamic Pricing: Automatic pricing calculation based on dates and occupancy
  • Personalized Responses: Tailored email responses for each inquiry

๐Ÿ”— Secure Booking Links

  • One-Click Booking: Direct booking links sent in email responses
  • Secure Payment Processing: Industry-standard payment security
  • Mobile-Optimized: Responsive booking pages for all devices

๐Ÿ“Š Dashboard & Analytics

  • Performance Metrics: Track response times, conversion rates, revenue
  • Email Management: Monitor all inquiries and responses
  • Booking Tracking: Real-time booking status and management

๐Ÿš€ Quick Start

Prerequisites

  • Node.js 18+
  • npm or yarn

Installation

  1. Clone the repository

    git clone https://github.com/your-org/staydesk.git
    cd staydesk
  2. Install dependencies

    npm run install-deps
  3. Start development server

    npm run dev
  4. Open your browser Navigate to http://localhost:3000

๐Ÿ—๏ธ Project Structure

staydesk/
โ”œโ”€โ”€ frontend/                 # Next.js React application
โ”‚   โ”œโ”€โ”€ app/                 # App router pages
โ”‚   โ”‚   โ”œโ”€โ”€ booking/         # Dynamic booking pages
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ [slug]/      # Booking link handler
โ”‚   โ”‚   โ”œโ”€โ”€ layout.tsx       # Root layout
โ”‚   โ”‚   โ””โ”€โ”€ page.tsx         # Dashboard landing page
โ”‚   โ”œโ”€โ”€ components/          # Reusable UI components
โ”‚   โ”‚   โ”œโ”€โ”€ ui/              # Base UI components
โ”‚   โ”‚   โ”œโ”€โ”€ dashboard-stats.tsx
โ”‚   โ”‚   โ””โ”€โ”€ recent-emails.tsx
โ”‚   โ”œโ”€โ”€ lib/                 # Utilities and configurations
โ”‚   โ”‚   โ”œโ”€โ”€ types.ts         # TypeScript definitions
โ”‚   โ”‚   โ”œโ”€โ”€ utils.ts         # Helper functions
โ”‚   โ”‚   โ””โ”€โ”€ store.ts         # State management (Zustand)
โ”‚   โ””โ”€โ”€ package.json
โ”œโ”€โ”€ backend/                 # Future API services
โ”‚   โ”œโ”€โ”€ api/                 # REST API endpoints
โ”‚   โ””โ”€โ”€ nlp/                 # AI/NLP processing
โ””โ”€โ”€ package.json             # Root package configuration

๐Ÿ› ๏ธ Technology Stack

Frontend

  • Framework: Next.js 15.4.1 (App Router)
  • Language: TypeScript
  • Styling: Tailwind CSS v4
  • State Management: Zustand
  • UI Components: Radix UI + Custom components
  • Icons: Lucide React
  • Validation: Zod

Backend (Future)

  • Runtime: Node.js / Python
  • AI/NLP: OpenAI GPT / Custom models
  • Database: PostgreSQL / MongoDB
  • Email Integration: IMAP/POP3 connectors

๐Ÿ“ฑ Usage

Dashboard Overview

The main dashboard provides:

  • Performance metrics (emails processed, response times, conversions)
  • Recent email queries with AI-generated responses
  • Quick actions for hotel management and settings
  • Real-time booking status tracking

Email Processing Flow

  1. Guest sends inquiry to hotel email
  2. AI processes email content and extracts booking details
  3. System checks availability and calculates pricing
  4. Automated response sent with booking link
  5. Guest completes booking via secure link

Booking Page Features

  • Multi-step booking process (details โ†’ payment โ†’ confirmation)
  • Real-time pricing calculation
  • Secure payment processing
  • Mobile-responsive design
  • Guest information validation

๐Ÿ”ง Development

Available Scripts

# Development
npm run dev          # Start development server
npm run build        # Build for production
npm run start        # Start production server
npm run lint         # Run ESLint

# Dependencies
npm run install-deps # Install frontend dependencies

Component Development

  • Use TypeScript for all components
  • Follow functional component patterns
  • Implement proper error handling
  • Add JSDoc comments for complex logic
  • Use Tailwind CSS for styling

State Management

  • Zustand store for global state
  • React hooks for local state
  • Server components when possible
  • Client components only when needed

๐Ÿš€ Deployment

Vercel (Recommended)

  1. Connect repository to Vercel
  2. Set build command: cd frontend && npm run build
  3. Set output directory: frontend/.next
  4. Deploy automatically on push

Docker

# Build image
docker build -t staydesk .

# Run container
docker run -p 3000:3000 staydesk

๐Ÿ”ฎ Roadmap

Phase 1: Core MVP โœ…

  • Landing page dashboard
  • Booking page with dynamic routing
  • UI components and responsive design
  • TypeScript implementation

Phase 2: AI Integration

  • Email parsing and NLP processing
  • AI response generation
  • Real-time availability checking
  • Dynamic pricing engine

Phase 3: Backend Services

  • REST API development
  • Database integration
  • Email platform connectors
  • Payment processing

Phase 4: Advanced Features

  • Multi-language support
  • Advanced analytics
  • Mobile app
  • Hotel management portal

๐Ÿค Contributing

  1. Fork the repository
  2. Create feature branch (git checkout -b feature/amazing-feature)
  3. Commit changes (git commit -m 'Add amazing feature')
  4. Push to branch (git push origin feature/amazing-feature)
  5. Open Pull Request

๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

๐Ÿ™‹โ€โ™‚๏ธ Support


Built with โค๏ธ by the StayDesk Team

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages