Welcome to AmbioSys
AmbioSys is a comprehensive business process management system designed specifically for Ambiotec S.A., providing end-to-end management of customer relationships, service requests, quotations, and financial operations with integrated AI-powered communication.Customer Management
Track customers, contacts, and locations with geographic integration and department-based organization.
Service Requests
Manage service requests with SLA policies, automatic deadline tracking, and multi-vendor assignments.
Quotations & Sales
Create quotations, track follow-ups, and manage the complete sales lifecycle with automated reminders.
AI WhatsApp Bot
GPT-4 powered WhatsApp bot for customer support with real-time Socket.IO integration.
Core Capabilities
Customer & Contact Management
Customer & Contact Management
- Complete customer profiles with document types and tax IDs
- Multiple contacts per customer with role assignments
- Geographic location tracking with departments and municipalities
- License management with expiration tracking
- Customer zones and sales territory management
Service Request Lifecycle
Service Request Lifecycle
- Multi-status workflow (unconfirmed → confirmed → in progress → completed)
- SLA policy enforcement with automatic deadline calculations
- Vendor assignments with notification groups
- Post-rejection follow-up tracking
- Requested delivery date monitoring
- Real-time status updates via dashboard
Quotation Management
Quotation Management
- Product catalog with pricing
- Sales line tracking
- Quotation templates with document generation
- Status workflow (draft → sent → accepted → rejected → finalized)
- Automated follow-up reminders via cron jobs
- Public quotation acceptance links
Financial Operations
Financial Operations
- Credit application processing
- Payment tracking and history
- Credit limit management
- Integration with quotations for financial approval
AI-Powered Communication
AI-Powered Communication
- WhatsApp webhook integration (Meta Business API)
- GPT-4 powered conversational responses
- Real-time message handling with Socket.IO
- Chat history and context management with Redis
- Both external (customer) and internal chat support
Analytics & Monitoring
Analytics & Monitoring
- Real-time dashboard with key metrics
- SLA monitoring views
- Overdue follow-up tracking
- Unconfirmed requests overview
- API usage logging
- System event logs
Technology Stack
Backend API
Express.js with Node.js 20
- RESTful API architecture
- JWT authentication
- Session management with Redis
- Swagger API documentation
WhatsApp Bot
Express.js + OpenAI
- GPT-4 integration
- Socket.IO real-time events
- Webhook handling
- Redis for chat context
Frontend
React + Vite
- Material-UI components
- React Router v6
- Context-based state management
- PWA support with offline mode
Database
PostgreSQL
- Schema:
db_ambiotec - Stored procedures for business logic
- Views for SLA monitoring
- Full ACID compliance
Cache & Queue
Redis
- Session storage
- BullMQ job queues
- Chat context caching
- Rate limiting
Orchestration
Docker Compose
- Multi-container setup
- Hot-reload for development
- Network isolation
- Volume persistence
Key Integrations
WhatsApp Business API
Meta’s official API for receiving and sending WhatsApp messages with webhook verification.
Architecture Highlights
AmbioSys follows a microservices architecture with separation of concerns:
- Backend API (
ambiotec-backendon port 3000) handles business logic and data - WhatsApp Bot (
gpt4-ambiotec-boton port 4500) manages AI conversations - Frontend (Vite dev server on port 5173) provides the user interface
- Redis (port 6379) enables inter-service communication and caching
Getting Started
Quick Start
Get AmbioSys running locally in under 5 minutes with Docker Compose.
Architecture Overview
Understand the microservices structure and how components interact.
API Reference
Explore the REST API endpoints with interactive Swagger documentation.
Database Schema
Learn about the database structure and tables.
Who Uses AmbioSys?
AmbioSys is used by Ambiotec S.A. teams including:- Sales Teams - Manage quotations, follow-ups, and customer communications
- Service Coordinators - Track service requests and vendor assignments
- Customer Support - Handle incidents and WhatsApp conversations
- Finance Department - Process credits and payments
- Administrators - Configure roles, permissions, SLA policies, and notification groups