Skip to content

Latest commit

 

History

History
160 lines (125 loc) · 6.36 KB

File metadata and controls

160 lines (125 loc) · 6.36 KB

Super Valera Project Documentation Index

🎯 Project Overview

Super Valera is an AI-powered Telegram bot for automotive service automation, built with Ruby on Rails 8.1 and integrated with advanced AI capabilities through the ruby_llm gem.

🏗️ Architecture Overview

  • Backend Framework: Ruby on Rails 8.1
  • AI Integration: ruby_llm gem with DeepSeek
  • Database: PostgreSQL with Solid Queue/Cache/Cable
  • Bot Platform: Telegram Bot API
  • Configuration: anyway_config for centralized settings
  • Analytics: Custom event tracking system

📚 Documentation Structure

🚀 Quick Start

🏗️ Architecture & Design

📋 Requirements & Features

🔧 Development & Testing

📊 Analytics & Monitoring

🛠️ Deployment

💼 Business & Product

🔍 Gem Documentation

📝 Reference Materials


🔍 Navigation Guide

For New Developers

  1. Start with README.md for project overview
  2. Follow Development Setup for environment configuration
  3. Review Architecture Decisions for system understanding
  4. Study Error Handling Patterns for code standards

For Product Managers

  1. Review Product Constitution for requirements
  2. Check User Stories for feature specifications
  3. Monitor Business Metrics for KPI tracking
  4. Understand SaaS Model for business context

For DevOps Engineers

  1. Follow Deployment Guide for production setup
  2. Configure Monitoring for system health
  3. Set up Analytics Dashboard for data visualization
  4. Review Docker Configuration for container management

For QA Engineers

  1. Study Testing Guide for test patterns
  2. Use Prompt Testing Guide for AI validation
  3. Reference VCR Testing for HTTP testing
  4. Check User Stories for acceptance criteria

🏷️ Document Status Indicators

Status Meaning
Current Up-to-date and production-ready
🔄 In Progress Being actively developed
⚠️ Needs Review Requires updates or validation
📋 Planned Scheduled for creation

🔗 Cross-References

Component Relationships

Telegram Webhook → Chat Model → ruby_llm → AI Response
     ↓                ↓              ↓
Analytics Tracking → Message Store → Tool Calls → Booking Creation

Data Flow

User Message → Webhook Controller → LLM Processing → Tool Execution → Response Generation
     ↓               ↓                    ↓              ↓              ↓
Analytics Event → Message Storage → Tool Call Record → Booking Record → Telegram Response

Service Dependencies

Chat System → ruby_llm → DeepSeek API
Booking System → Active Record → PostgreSQL
Analytics → Event Tracking → Metabase Dashboard

📊 Project Metrics

Code Organization

  • Models: 7 core ActiveRecord models
  • Controllers: 2 main controllers (webhook, application)
  • Services: 9 business logic services
  • Jobs: 3 background job processors
  • Tools: 2 AI tool implementations

Testing Coverage

  • Unit Tests: Model and service testing
  • Integration Tests: Full workflow testing
  • VCR Tests: External API mocking
  • Performance Tests: Analytics system validation

Documentation Quality

  • API Docs: Complete webhook documentation
  • Architecture: Design rationale documented
  • Development: Comprehensive setup guides
  • Business: Product requirements clearly defined

Last Updated: 2025-10-27 Documentation Version: 3.0 Maintained by: Danil Pismenny