π FRAME 1: Live Dashboard Architecture Overview
π― What is the Live Dashboard?
The Live Dashboard is the primary production application users interact with after completing onboarding (Manual or Beezaro). It provides a comprehensive business management platform with multi-channel communication, CRM, automation, and industry-specific operational tools.
π User Journey to Live Dashboard
π¨ Live Dashboard vs Beehive Dashboard
| Aspect | Beehive Dashboard | Live Dashboard |
|---|---|---|
| Purpose | Testing/Sandbox environment | Production application |
| Data | Test data only (29-day limit) | Real business data |
| Channels | Test channel connections | Live channel connections (WhatsApp, Email, etc.) |
| Access | Available during setup period | Persistent (as long as account active) |
| Billing | No charges during 29 days | Active billing based on plan + add-ons |
| Migration | Data can be migrated to Live | N/A - already live |
| UI Indicator | Banner: "Setup mode - X days left" | No banner, full access |
ποΈ Core Modules
π₯ Inbox Module
Multi-channel unified inbox for conversations across WhatsApp, Email, Instagram, Telegram, Facebook Messenger, and more.
General Inbox Team Inbox
π€ Automations Module
Create, manage, and monitor automated workflows for sales, support, retention, and re-engagement.
Template Library Beezora AI
π₯ CRM Module
Complete contact relationship management with lists, tags, custom fields, communication history, tasks, and documents.
360Β° Contact View Advanced Filters
π Main Dashboard
Central hub with insights, KPIs, settings, brand kit customization, plan management, and team administration.
Insights Brand Kit
βοΈ Operations & Admin
Internal operations management with tasks, leads, reports, templates, and industry-specific modules.
10+ Industries Advanced Reports
π§ͺ Beehive Dashboard
Safe testing environment (29-day sandbox) to experiment with features before going live with real data.
Testing Mode Data Migration
π See Also
β Complete Architecture Map | β Manual Onboarding | β Beezaro Copilot Onboarding
π§ FRAME 2: Navigation Architecture
π¨ Application Layout Structure
Visual representation of the Live Dashboard application layout with top navigation bar, left sidebar menu, and dynamic main content area
ποΈ Left Sidebar Navigation
| Menu Item | Icon | Description | Sub-items |
|---|---|---|---|
| Dashboard | π | Home screen with insights and KPIs | None (single view) |
| Inbox | π₯ | Unified multi-channel conversations | General Inbox, Team Inbox, Inbox Settings |
| Automations | π€ | Workflow automation library | Automation Library, Active Automations, Create New |
| CRM | π₯ | Contact relationship management | Contacts, Lists, Tags, Merge Fields |
| Operations & Admin | βοΈ | Internal ops and industry modules | Tasks, Leads, Reports, Templates, Industry Modules |
| Settings | βοΈ | Account configuration (bottom of sidebar) | Profile, Preferences, Security, Team, Channels, Billing |
π Top Bar Components
π Global Search
Search Across:
- Contacts (name, email, phone)
- Conversations (message content)
- Tasks (title, description)
- Automations (name)
- Templates (name, content)
Keyboard Shortcut: Ctrl+K / Cmd+K
π Notifications
Notification Types:
- New messages (Inbox)
- Automation triggers/completions
- Task assignments/due dates
- Team activity
- System alerts
Badge: Red counter for unread count
π€ User Profile Menu
Dropdown Items:
- Profile - View/edit personal information
- Settings - Quick access to settings
- Switch to Beehive - Go to testing environment (if available)
- Help & Documentation - Support resources
- Log Out - Sign out of account
π Settings Navigation Hierarchy
βοΈ Settings Navigation - Complete Hierarchy
β’ Profile Picture
β’ Business Role
β’ Timezone
β’ Theme (Light/Dark)
β’ Display Preferences
β’ In-app Alerts
β’ SMS Notifications
β’ Frequency Settings
β’ Two-Factor Authentication
β’ API Keys
β’ Session Management
β’ Email
β’ Instagram
β’ Telegram
β’ Other Integrations
β’ Invite Members
β’ Role Management
β’ Permissions
β’ Usage & Metrics
β’ Add-ons
β’ Payment Method
β’ Invoices
π Modal Patterns
Consistent modal usage across all modules:
| Modal Type | Purpose | Example |
|---|---|---|
| Create Modal | Add new entity | Create Contact, Create Task, Create Automation |
| Edit Modal | Modify existing entity | Edit Contact Details, Edit Template |
| Detail Modal | View full information | View Automation Details, View Report |
| Confirmation Modal | Confirm destructive action | Delete Contact, Archive Conversation |
| Filter Modal | Apply advanced filters | Filter Contacts by Tags/Status, Filter Tasks by Priority |
ποΈ FRAME 3: Data Model Overview
π― Core Entities
The Live Dashboard data model is built around these primary entities:
π€ Contact
Central entity - All activities link to contacts
Key Fields:
- First Name, Last Name
- Email, Phone
- Status (Active, Unconfirmed, Unsubscribed, Bounced)
- Created Date, Last Activity
- Custom Merge Fields
Relationships:
- Has many Conversations
- Has many Tasks
- Belongs to many Lists
- Has many Tags
- Has many Communications
- Has many Documents
- Has many Activities
π¬ Conversation
Multi-channel message threads
Key Fields:
- Channel Type (WhatsApp, Email, etc.)
- Status (Active, Resolved, Closed)
- Assigned To (Team/Individual)
- Labels/Tags
- Last Message Timestamp
- Unread Count
Relationships:
- Belongs to Contact
- Has many Messages
- Assigned to Team/User
- Has many Attributes
β Task
Action items for contacts/operations
Key Fields:
- Title, Description
- Status (Active, Completed, Overdue)
- Priority (Low, Medium, High)
- Due Date
- Assigned To
- Category
Relationships:
- Linked to Contact (optional)
- Assigned to User
- Has Owner
π€ Automation
Automated workflow instances
Key Fields:
- Name, Description
- Status (Active/Inactive)
- Trigger Conditions
- Actions Sequence
- Owner
- Execution History
Relationships:
- Based on Template
- Has many Executions
- Acts on Contacts/Conversations
π List
Contact segmentation groups
Key Fields:
- List Name
- Contact Count
- Created Date
- Last Updated
Relationships:
- Has many Contacts (many-to-many)
- Used in Automations (filters)
π·οΈ Tag
Contact/conversation labels
Key Fields:
- Tag Name
- Color
- Usage Count
Relationships:
- Applied to many Contacts
- Applied to many Conversations
- Used in Filters/Reports
π Template
Reusable message/workflow templates
Types:
- WhatsApp Templates (approval status)
- General Templates
- Preset Templates
- Automation Templates
- Task Templates
Relationships:
- Used in Conversations
- Used in Automations
- Has Owner/Creator
π Report
Analytics and insights
Types:
- Campaign Reports
- Automation Reports
- Contact Reports
- WhatsApp Reports
- Sales Engagement Reports
Relationships:
- Aggregates Contact data
- Aggregates Conversation data
- Aggregates Automation executions
π Entity Relationship Diagram (Simplified)
π Simplified Entity Relationships - System Overview
β’ acts on β Conversations
β’ has β Execution History
β’ used in β Automations
β’ has β Owner
β’ aggregates β Conversation metrics
β’ aggregates β Automation performance
π¦ Shared Data Across Modules
| Entity | Used in Inbox | Used in CRM | Used in Automations | Used in Operations |
|---|---|---|---|---|
| Contact | β Conversation participants | β Primary entity | β Automation targets | β Task assignments |
| Tags | β Conversation labels | β Contact categorization | β Trigger conditions | β Report filters |
| Templates | β Quick replies | β Email templates | β Automation actions | β Task templates |
| Team Members | β Conversation assignment | β Contact ownership | β Automation owners | β Task assignment |
π FRAME 4: Multi-Tenancy & Permissions
π₯ User Role Model
| Role | Description | Permissions | Use Case |
|---|---|---|---|
| Account Owner | Creator of the account |
β
Full access to all features β Billing & plan management β Add/remove team members β Delete account |
Business owner, Primary admin |
| Admin | Secondary administrator |
β
Manage contacts, automations, settings β Invite team members β View reports β Cannot delete account β Limited billing access |
Operations manager, Team lead |
| Member | Regular team member |
β
Access inbox conversations β Manage assigned contacts β Create tasks β View automations β Cannot manage team β Cannot change billing |
Sales rep, Support agent |
| Viewer | Read-only access |
β
View contacts β View reports β View conversations (assigned) β Cannot create/edit/delete β Cannot send messages |
Auditor, Stakeholder |
π’ Account Types & Multi-Tenancy
Individual Account
Plan: Personal
Structure:
- Single user (Account Owner)
- No team collaboration features
- All data owned by single user
- Simplified permissions
Database Isolation:
- organizationId = userId
- No team_members table entries
Team Account
Plans: Business, Premium, Organisation
Structure:
- Multiple users (Owner + Admins + Members + Viewers)
- Team collaboration (Team Inbox, shared contacts)
- Data owned by organization
- Role-based permissions
Database Isolation:
- organizationId (shared across team)
- team_members table tracks users
- Row-level security by organizationId
π Feature Access by Plan
| Feature | Personal | Business | Premium | Organisation |
|---|---|---|---|---|
| Inbox (Channels) | β 1 WhatsApp | β 3 WhatsApps | β 5 WhatsApps | β Unlimited |
| Team Members | β 1 user only | β Up to 5 | β Up to 15 | β Unlimited |
| Contacts | β 500 | β 5,000 | β 25,000 | β Unlimited |
| Automations | β 5 active | β 20 active | β 50 active | β Unlimited |
| Beezora AI | β Not included | β Add-on (Β£20/mo) | β Included | β Included |
| Industry Modules | β Not available | β 1 module | β 3 modules | β All modules |
| Brand Kit | β Not available | β Basic | β Full | β Full + White-label |
| Reports | β Basic | β Standard | β Advanced | β Enterprise |
ποΈ Permission Matrix by Module
| Module | Owner | Admin | Member | Viewer |
|---|---|---|---|---|
| Inbox - Send Messages | β | β | β | β |
| Inbox - View All Conversations | β | β | β οΈ Assigned only | β οΈ Assigned only |
| CRM - Create Contacts | β | β | β | β |
| CRM - Delete Contacts | β | β | β | β |
| Automations - Create | β | β | β οΈ With approval | β |
| Automations - Enable/Disable | β | β | β | β |
| Settings - Billing | β | β οΈ View only | β | β |
| Settings - Team Management | β | β | β | β |
| Reports - View | β | β | β | β |
| Reports - Export | β | β | β οΈ Assigned data only | β |
π Database-Level Security
Row-Level Security (RLS) Implementation:
- Every table has
organizationIdcolumn - PostgreSQL RLS policies filter by
organizationId - Additional user-level filtering based on role
- API endpoints validate permissions before database access
Example RLS Policy:
π See Also
β Team Management Architecture | β Frame 15: Security & Compliance
π FRAME 5: Integration Architecture
π‘ External Channel Integrations
π¬ WhatsApp Business
Integration Type: WhatsApp Business API
Features:
- Send/receive messages
- Template messages (approval required)
- Media support (images, documents, audio)
- Read receipts & typing indicators
- Group messaging
Configuration:
- WhatsApp Business Account ID
- Phone Number ID
- Access Token
- Webhook URL for callbacks
π§ Email
Integration Type: SMTP/IMAP + Gmail/Outlook OAuth
Features:
- Send/receive emails
- Thread conversation tracking
- Attachment support
- Email templates
- Scheduling
Configuration:
- SMTP settings (host, port, credentials)
- IMAP settings for receiving
- OAuth for Gmail/Outlook
π· Instagram
Integration Type: Instagram Graph API
Features:
- Direct message management
- Comment replies
- Story mentions
- Media sharing
Configuration:
- Facebook Page connection
- Instagram Business Account
- Access Token
βοΈ Telegram
Integration Type: Telegram Bot API
Features:
- Bot messaging
- Group chat support
- File transfers
- Inline keyboards
Configuration:
- Bot Token (from BotFather)
- Webhook URL
π Facebook Messenger
Integration Type: Messenger Platform API
Features:
- Send/receive messages
- Quick replies
- Postback buttons
- Media attachments
Configuration:
- Facebook Page
- App ID & Secret
- Page Access Token
π± SMS (Twilio)
Integration Type: Twilio API
Features:
- Send/receive SMS
- Phone number provisioning
- Delivery status tracking
- MMS support
Configuration:
- Account SID
- Auth Token
- Phone Numbers
π Third-Party Integrations
| Integration | Type | Purpose | Authentication |
|---|---|---|---|
| Shopify | E-commerce | Order sync, customer data, inventory | OAuth 2.0 |
| Stripe | Payment | Payment processing, subscription billing | API Key |
| Google Calendar | Calendar | Appointment scheduling, reminders | OAuth 2.0 |
| Zapier | Automation | Connect with 3,000+ apps | API Key + OAuth |
| Google Sheets | Data Export | Export contacts, reports to sheets | OAuth 2.0 |
| OpenAI | AI | Beezora AI, content generation | API Key |
π API Architecture
π API Base URL
https://api.unifiedbeez.com/v1
Authentication: Bearer Token (JWT)
Rate Limiting: 1000 requests/hour per organization
πͺ Webhook System
| Event Type | Payload | Webhook URL Format |
|---|---|---|
| message.received | {conversationId, message, sender, channel} | /webhooks/inbox/message |
| contact.created | {contactId, contactData, source} | /webhooks/crm/contact-created |
| automation.completed | {automationId, contactId, result} | /webhooks/automations/completed |
| task.due | {taskId, assignedTo, dueDate} | /webhooks/tasks/due |
π See Also
β Inbox Channel Integration Details | β Channel Configuration
π FRAMES 6-15: Additional Architecture Components
π Documentation Structure
The remaining frames (6-15) cover specialized architectural topics. For complete details on each topic, please refer to the specific module documentation pages.
π Frame 6: State Management Patterns
Coverage: Modal states, Table/List states, Form states, Real-time updates (WebSocket)
β See WebSocket Implementation in Inbox Module
π Frame 7: Filter & Search Architecture
Coverage: Global search, Section-specific filters, Bulk action patterns, Advanced query builder
β See CRM Filter Architecture
π Frame 8: Reporting & Analytics System
Coverage: Report types (Campaigns, Automations, Contacts, WhatsApp, Sales), Metrics tracking, Export capabilities, Scheduled reports
β See Complete Reporting Architecture
π Frame 9: Industry Module Framework
Coverage: Extensibility model, Template-based approach, Industry-specific fields (Healthcare, Restaurant, Real Estate, etc.), Workflow customization
β See Industry Modules Documentation
π€ Frame 10: AI Integration (Beezora)
Coverage: Personality configuration, Knowledge base, Natural language processing, Automation suggestions, OpenAI GPT-4 integration
β See Beezora AI Architecture
π³ Frame 11: Billing & Feature Tiering
Coverage: Plans structure (Personal, Business, Premium, Organisation), Add-ons system (Seats, AI Assistant, Twilio, etc.), Usage tracking, Payment integration (Stripe)
π¨ Frame 12: Brand Customization System
Coverage: Brand Kit (Logo, Colors, Fonts, Social media), Template theming, Email branding, White-label capabilities
β See Brand Kit Architecture
π Frame 13: Notification System
Coverage: Notification types (Messages, Automations, Tasks, System), Delivery channels (Email, In-app, SMS, Push), User preferences, Real-time alerts
β See Notification Architecture
βοΈ Frame 14: AWS Infrastructure (Live Dashboard)
Coverage: Additional AWS services beyond onboarding, Scaling considerations, Cost optimization, Performance monitoring
ποΈ AWS Services Used
Compute:
- ECS Fargate (containerized services)
- Lambda (serverless functions)
Database:
- RDS PostgreSQL (primary database)
- ElastiCache Redis (caching & sessions)
Storage:
- S3 (media files, documents, backups)
Networking:
- API Gateway (API management)
- CloudFront (CDN)
- Route 53 (DNS)
Monitoring:
- CloudWatch (logs & metrics)
- X-Ray (tracing)
Security:
- Secrets Manager (API keys, credentials)
- WAF (firewall)
π‘οΈ Frame 15: Security & Compliance
Coverage: GDPR compliance (extends from onboarding), Data retention policies, Audit logging, API security, Encryption at rest & in transit
π Security Measures
| Security Layer | Implementation |
|---|---|
| Authentication | JWT tokens, OAuth 2.0, 2FA support |
| Authorization | Role-based access control (RBAC), Row-level security (RLS) |
| Data Encryption |
At Rest: AES-256 (RDS, S3) In Transit: TLS 1.3 |
| API Security | Rate limiting, Input validation, CORS policies, API key rotation |
| Audit Logging | All user actions logged with timestamp, user ID, IP address |
| GDPR Compliance |
Right to Access (GET /api/data-export) Right to Erasure (DELETE /api/account-deletion) Data Portability (CSV/JSON export) Consent Management (tracked in database) |
β οΈ Data Retention Policy
- Conversations: Retained for 90 days after resolution
- Contacts: Retained until manually deleted or account closure
- Tasks: Archived 30 days after completion
- Automation Logs: Retained for 180 days
- Audit Logs: Retained for 2 years (compliance)
- Deleted Data: Soft-deleted for 30 days, then permanently removed
π See Also
β GDPR Compliance (Onboarding) | β GDPR Compliance (Beezaro)
π Next Steps & Related Documentation
π Module-Specific Documentation
π₯ Inbox Module
Complete architecture for multi-channel conversations
- 12 Frames covering all inbox features
- 30+ API endpoints documented
- 5 Database tables with schemas
- WhatsApp, Email, Instagram integration details
π€ Automations Module
Complete automation engine architecture
- 10 Frames covering automation system
- 20+ API endpoints documented
- 4 Database tables with schemas
- Beezora AI integration for automation creation
π₯ CRM Module
Complete contact relationship management architecture
- 14 Frames covering CRM features
- 40+ API endpoints documented
- 8 Database tables with schemas
- Lists, Tags, Merge Fields, Communications, Tasks
π Main Dashboard
Dashboard, Settings, Brand Kit, Billing architecture
- 13 Frames covering main dashboard
- 35+ API endpoints documented
- 7 Database tables with schemas
- Insights, Brand Kit, Plan management, Team
βοΈ Operations & Admin
Internal operations and industry modules architecture
- 18 Frames covering operations features
- 60+ API endpoints documented
- 15+ Database tables with schemas
- 10+ Industry-specific modules documented
π§ͺ Beehive Dashboard
Testing environment architecture
- 8 Frames covering Beehive features
- 15 API endpoints documented
- 3 Database tables with schemas
- Data migration and "Go Live" process
πΊοΈ Complete System Map
π Navigate the Entire UnifiedBeez Architecture
For a comprehensive view of the entire system including onboarding, testing, and production environments:
π Architecture Statistics
| Component | Count | Status |
|---|---|---|
| Total HTML Pages | 13 | Complete |
| Total Documentation Frames | 105 | In Progress |
| Backend Services | 45+ | Documented |
| Database Tables | 70+ | Documented |
| API Endpoints | 300+ | Documented |
| Channel Integrations | 15+ | Documented |
| Industry Modules | 10+ | Documented |
| UI Screens Analyzed | 600+ | Complete |
π Documentation Status
Last Updated: October 23, 2025
Version: 1.0
Prepared By: Claude (Architecture Documentation Agent)
Total Lines: 15,000+ lines of comprehensive documentation