Quantum Software Specifications
Complete technical specifications for the Quantum CRM + ERP + Growth Infrastructure platform by 69dynamics.
1 Product Overview
Quantum is a complete CRM + ERP + Growth Infrastructure platform built for businesses that need client management, project delivery, financial tracking, supply chain operations, and marketing automation — all in one unified system.
What Quantum Includes
| Component | Description |
|---|---|
| Admin Dashboard | Full-featured admin panel (52+ sections) for managing clients, projects, leads, finance, supply chain, marketing, and operations |
| Client Portal | White-label portal for clients to view projects, invoices, orders, milestones, support tickets, and documents |
| Automation Engine | 19 Cloud Functions handling email automation, lead scoring, invoice generation, blog publishing, and webhook triggers |
| AI Intelligence | 10 AI-powered modules for sentiment analysis, churn prediction, proposal generation, revenue forecasting, and content creation |
| Marketing Suite | Google Ads, Meta Pixel, GA4, UTM tracking, email blasts, and campaign analytics |
| Public Website | SEO-optimized website with blog, contact forms, service configurator, careers, and landing pages |
Key Metrics
| Metric | Value |
|---|---|
| Admin Panel Sections | 52+ sections across 16 groups |
| Cloud Functions | 19 serverless functions |
| Firestore Collections | 30+ data collections |
| AI Modules | 10 AI-powered features |
| Portal Modules | 15+ client-facing sections |
| Deployment | 14-21 day initial setup |
| Pricing | ₹9,000/month (unlimited users) |
2 System Architecture
Quantum runs entirely on Google Cloud Platform via Firebase, using a serverless architecture that scales automatically.
Data Flow
- Frontend — Static HTML/CSS/JS served via Firebase Hosting CDN
- Authentication — Firebase Auth (email/password) for admin and portal users
- Database — Firestore NoSQL database with real-time listeners
- Backend — Firebase Cloud Functions (Node.js 22) for business logic
- Storage — Firebase Storage for file uploads (documents, images, invoices)
- Analytics — GA4 + Google Ads + Meta Pixel for tracking
3 Technology Stack
| Layer | Technology | Details |
|---|---|---|
| Frontend | HTML5, CSS3, Vanilla JS | Single-page application, no framework dependency, minimal bundle size |
| Backend | Firebase Cloud Functions | Node.js 22 runtime, 19 serverless functions |
| Database | Cloud Firestore | NoSQL document database, 30+ collections, real-time sync |
| Authentication | Firebase Auth | Email/password authentication, role-based access |
| Hosting | Firebase Hosting | Global CDN, SSL, custom domain support |
| Storage | Firebase Storage | File uploads, image hosting, document storage |
| AI Engine | Google Gemini AI | 2.5-flash (primary), 2.0-flash-001 (fallback) |
| Charting | Chart.js 4.4.6 | Line, bar, pie, doughnut charts in admin panel |
| Payments | Razorpay | UPI, cards, net banking, wallets |
| Nodemailer + SMTP | Zoho SMTP, branded HTML templates | |
| Analytics | GA4 + GTM + Google Ads + Meta Pixel | Full marketing analytics stack |
| PDF Generation | jsPDF | Client-side PDF generation for invoices and challans |
4 CRM & Client Management
The core CRM module manages client lifecycle from initial contact through active engagement and retention.
Capabilities
| Feature | Description | Firestore Collection |
|---|---|---|
| Client Directory | Contact details, company, status (Active/Inactive/Lead) | clients |
| Contact Database | Extended CRM contacts with tags, source, designation | contacts |
| Notes & Threads | Per-client internal notes and communication log | notes |
| Documents | File uploads linked to client records (Firebase Storage) | documents |
| Contracts | SOW, NDA, Retainer, SLA management with expiry tracking | contracts |
| Reviews | Client reviews with star ratings, search, export | reviews |
| Team Members | Client team management with Viewer/Editor/Manager roles | clientTeamMembers |
| Onboarding | New client setup workflow with portal access approval | clientOnboarding |
Client Status Flow
Lead → Contact form / Referral / Configurator → Inquiry → AI Lead Scoring → Qualified Lead → Quotation → Active Client → Portal Access → Ongoing Engagement
5 Project Management
Full project lifecycle tracking with three view modes and milestone-based delivery.
View Modes
| View | Best For | Features |
|---|---|---|
| List | Data review, filtering | Sortable table, search, status badges |
| Kanban | Daily management | Drag-and-drop cards across status columns (Planning → In Progress → Review → Completed) |
| Gantt | Timeline planning | Horizontal timeline bars, zoom controls, overdue highlighting, hover details |
Milestones
| Feature | Description |
|---|---|
| Per-Project Milestones | Deliverables grouped by project with sort order |
| Status Tracking | Pending → In Progress → Completed (auto-detects overdue) |
| Auto-Invoicing | Completing a milestone with invoiceAmount triggers automatic invoice generation |
| Progress Bars | Visual completion percentage per project |
| Portal View | Clients see milestones with timeline, status icons, and completion dates |
AI Task Estimator
Uses Google Gemini AI to analyze a project brief and generate:
- Executive summary and project name
- Duration estimate (weeks)
- Cost range (min/max in INR)
- Phase breakdown with tasks and deliverables
- Milestone schedule with payment amounts
- Recommended tech stack
- Risk assessment and assumptions
projects | Milestones: projectMilestones | Tasks: tasks
6 Lead Management
Capture, score, nurture, and convert leads through a multi-stage pipeline.
Lead Sources
| Source | Collection | Trigger |
|---|---|---|
| Contact Form | inquiries | Website form submission |
| Newsletter | newsletterSubscribers | Footer/blog signup |
| Configurator | configuratorLeads | Service configurator wizard |
| Referrals | referrals | Partner referral form |
| Landing Pages | inquiries | Google/Meta ad landing pages |
| Career Apps | applications | Career page submission |
AI Lead Scoring
The onInquiryScored Cloud Function scores leads 0-100 based on: budget (0-30), service type (0-25), message detail (0-15), urgency keywords (0-15), phone provided (0-10), company name (0-5).
Tiers: 🔥 Hot (60+) | 🌱 Warm (35-59) | 🔵 Cold (0-34)
Pipeline Kanban
6-stage visual pipeline: New → Qualified → Proposal → Negotiation → Won / Lost
Drag-and-drop lead cards between stages. Real-time stats show counts per stage.
Automated Follow-Ups
The automatedFollowUps function runs daily at 10:00 AM IST:
- 48-hour — "Still interested?" personalized email
- 7-day — Resource-rich nurture email with blog links and CTA
- Stops if admin marks inquiry as replied
7 Invoicing & Billing
Complete financial management with invoice creation, payment tracking, reminders, and online payment processing.
Invoice Builder
| Feature | Description |
|---|---|
| Line Items | Multiple items with description, quantity, rate |
| Tax Calculation | Configurable GST/Tax percentage auto-calculated |
| Discounts | Percentage-based discount on subtotal |
| Auto-Numbering | Sequential invoice numbers (INV-XXXXXX format) |
| PDF Export | Client-side PDF generation with branded header |
| Email Delivery | Send invoice to client email with portal link |
| Online Payment | Razorpay integration (UPI, cards, net banking) |
| Auto-Overdue | Invoices past due date auto-flagged as overdue |
Payment Methods (Razorpay)
- UPI (GPay, PhonePe, Paytm)
- Credit/Debit Cards
- Net Banking
- Wallets
- Manual recording (Bank Transfer, Cash, Cheque)
Automated Invoice Reminders
Scheduled reminders: 3 days before due | On due date | 7 days overdue | 14 days overdue. Each includes invoice details and payment link.
Revenue Analytics
Dashboard KPIs: Total Revenue, Expenses, Net Profit, Unpaid Amount, Avg Client LTV. Charts: Revenue vs Expenses (line), Revenue by Service (pie). Per-client profitability table.
invoices | Payments: payments | Expenses: expenses
8 Supply Chain & Orders
Complete inventory and order management system for product-based businesses. 10 dedicated modules under the Supply Chain section.
Modules
| # | Module | Purpose |
|---|---|---|
| 1 | SC Dashboard | Overview metrics: products, active orders, revenue, return rate |
| 2 | Products | Product catalog with pricing, stock levels, categories, images |
| 3 | Orders | Order management with 7 statuses, bulk actions, profit tracking |
| 4 | Reports | Sales reports with date range presets, CSV export, print |
| 5 | Payments | Payment tracking, reconciliation, settlement management |
| 6 | Returns | Return request management and refund processing |
| 7 | Templates | Reusable order and invoice templates |
| 8 | Scoreboard | Team and client performance rankings |
| 9 | Forecasting | Demand prediction and stock planning |
| 10 | Gallery | Product image gallery management |
Order Status Flow
Pending → Confirmed → Manufacturing → Packing → Dispatched → Delivered
Orders can also be marked as Cancelled at any stage. Each status change is visible to clients via the portal's visual progress stepper.
Client Portal View
- Pill-based status filters
- 6-stage visual progress stepper per order
- Tabbed detail panels: Items, Shipping, Settlement, History
- Search and sort by order number, product, date
- PDF delivery challans with complete order details
9 Analytics Dashboard
Real-time analytics across all business operations with Chart.js-powered visualizations.
Dashboard Components
| Component | Type | Data Source |
|---|---|---|
| Stat Cards | KPI numbers | Clients, Projects, Inquiries, Subscribers, Applications |
| Activity Feed | Timeline | Latest events across all sections |
| Recent Reviews | List | Latest client reviews |
| Revenue Chart | Line/Bar | Monthly revenue breakdown |
| Lead Sources | Pie/Doughnut | UTM source distribution |
| Google Ads | 4 charts | Leads over time, source breakdown, campaigns, score distribution |
| Lighthouse | Score cards | Performance, Accessibility, SEO, Best Practices (0-100) |
Lighthouse Performance Monitoring
Automated weekly audits via weeklyLighthouseReport Cloud Function. Tracks: FCP, LCP, CLS, Performance Score, Accessibility, SEO, Best Practices. Manual run available.
Conversion Tracking
Frontend JavaScript logs conversion events: form_submit, cta_click, page_view, whatsapp_click, phone_call. Events stored in conversionEvents and sent to Google Ads + GA4.
10 Quantum Automation Pipeline
The signature Quantum feature — end-to-end client delivery automation from intake through deployment and support.
Pipeline Stages
| Stage | Description | Auto-Email |
|---|---|---|
| Intake | New pipeline created, gathering requirements | Welcome + questionnaire |
| Provisioning | Setting up accounts, environments, tools | Setup progress notification |
| Onboarding | Client training and asset collection | Onboarding guide email |
| QA | Quality assurance and testing | Testing link shared |
| Go-Live | Deployment and launch | Launch notification |
| Completed | Project delivered and closed | Completion + support info |
View Modes
- List View — Table with stage filter dropdown, pagination
- Kanban View — 6-column drag-and-drop board
Cloud Functions
onPipelineCreate— Triggered on new pipeline, sends welcome emailonPipelineAdvance— Triggered on stage change, sends branded notification
Stats Dashboard
Active Pipelines | Intake Count | In Provisioning | Go-Live Ready | Avg. SLA
11 Dynamic SLA Monitor
Track service level agreements with auto-alerts before breaches.
SLA Types
| Type | Example Metric |
|---|---|
| Response Time | First response within 24 hours |
| Delivery Deadline | Project delivery by March 30 |
| Uptime Guarantee | 99.9% service availability |
| Resolution Time | Bug fix within 48 hours |
| Revision Turnaround | Revisions within 5 business days |
Compliance Dashboard
5 status cards: Compliant (green), At Risk (yellow), Breached (red), Total SLAs, Avg Compliance %. Filterable by status. CSV export. Breach alerts panel.
12 Workflow Automation
Automated business processes powered by Cloud Functions and Firestore triggers.
Automated Workflows
| Workflow | Trigger | Action |
|---|---|---|
| New Inquiry Notification | Firestore onCreate: inquiries | Email to admin with lead details |
| Lead Scoring | Firestore onCreate: inquiries | Auto-score lead 0-100, assign tier |
| Follow-Up Emails | Scheduled daily @ 10 AM IST | 48-hour and 7-day follow-ups |
| Welcome Email | Newsletter subscribe | Branded welcome email to subscriber |
| Pipeline Advance | Stage change in pipeline | Client notification email |
| Milestone Invoice | Milestone completed | Auto-generate and send invoice |
| Blog Auto-Publish | Wed/Sat @ 10 AM IST | AI-generate and publish blog post |
| Lighthouse Audit | Weekly scheduled | Run PageSpeed audit, save scores |
| Email Blast | Blast queued in Firestore | Batch-send emails via SMTP |
| Blog Social Post | Blog status → published | Auto-post to social platforms |
13 Email Automation
All emails use branded HTML templates sent via Zoho SMTP through Nodemailer.
Email Types
| Trigger | Template | |
|---|---|---|
| Admin — New Inquiry | Contact form submit | Lead details + score + UTM data |
| Admin — New Application | Career form submit | Applicant details + resume link |
| Admin — Newsletter Sub | Newsletter signup | Subscriber email + source |
| Admin — AI Blog Ready | AI generates post | Post title + "Review & Approve" link |
| Client — Welcome | Portal access approved | Welcome + portal login link |
| Client — Pipeline Stage | Stage advance | New stage details + next steps |
| Client — Invoice | Milestone completed | Invoice details + amount + portal link |
| Subscriber — Welcome | Newsletter signup | Thank you + featured content |
| Lead — 48h Follow-Up | 2 days unreplied | "Still interested?" with CTA |
| Lead — 7d Nurture | 7 days unreplied | Resources + blog links + WhatsApp |
| Blast — Campaign | Admin triggers | Custom HTML with branded template |
14 Client Portal Overview
White-label client portal accessible at /portal. Clients log in with Firebase Auth and see only their data.
Portal Sections
| Group | Sections |
|---|---|
| Overview | Dashboard with stats |
| Projects | Projects, Project Requests, Reviews, Tasks |
| Finance | Invoices, Payments, Contracts |
| Orders | Order Updates (progress stepper, tabbed details) |
| Communication | Support Tickets, Announcements, Notes |
| Resources | Documents, Gallery, Guides |
| Team | Team Members (invite, manage roles) |
| Support | Feedback & Ratings |
| Scheduling | Calendar |
Portal Technical Features
- PWA Ready — Installable as app, offline support via Service Worker
- Push Notifications — Browser push for project updates, new documents, milestones
- URL Routing — Hash-based routing with back/forward navigation
- Skeleton Loading — Animated placeholder cards while data loads
- File Preview — Full-screen overlay for images, PDFs, text files
- PDF Export — Client-side invoice and report PDF generation
- Gantt Timeline — Visual project and milestone timeline
- Report Builder — On-demand reports: Orders, Inventory, Financial, Activity
15 Portal: Projects & Milestones
Project View
- Project list with status badges (Planning, In Progress, Review, Completed)
- Gantt timeline visualization of project duration
- Milestone cards grouped by project with progress bars
- Status icons: ✓ Completed, ⏱ In Progress, ○ Pending, ⚠ Overdue
- Completed milestones shown with strikethrough and completion date
Deliverable Approvals
Clients can review deliverables and take action: Approve ✓, Request Revision 🔄, or Reject ✗ — with optional comments. Full action history tracked.
16 Portal: Finance & Payments
Invoice View
- 4 stat cards: Total Invoices, Paid, Pending, Total Amount
- Status filter dropdown
- Invoice cards with number, milestone, amount, due date, status badge
- Pay Online button (Razorpay) for enabled invoices
- PDF download for each invoice
Payment History
- Sortable table: Date, Description, Invoice #, Amount, Status
- Receipt download links
- Auto-overdue detection from due dates
Contracts
- Summary: Total, Active, Pending Signature, Expired
- Contract cards with type, validity, value, document download
- Expired contracts auto-flagged
17 Portal: Support & Communication
Support Tickets
Clients create tickets with subject, priority (Low/Medium/High/Urgent), category (General/Technical/Billing/Feature/Bug). Tickets show status badges and full conversation with admin replies. Format: TK-XXXXX.
Announcements
Admin-published announcements shown as color-coded cards (General/Update/Feature/Maintenance/Alert). Notification dot for items within past 7 days.
Feedback & Ratings
Interactive 1-5 star rating with categories (General, Service Quality, Communication, Delivery, Support, Value). Admin can respond — displayed as highlighted "Team Response" box.
Calendar
Monthly grid with event dots. Stat cards: Upcoming Events, Calls, Demos, Deadlines. Filtered to show only client-relevant events.
18 Portal: Reports & Documents
Report Builder (Self-Service)
| Report | Data Source | Key Metrics |
|---|---|---|
| Order Summary | scOrders | Total orders, total value, status breakdown |
| Inventory Snapshot | productGallery | Total products, stock units, low stock |
| Financial Summary | scOrders + invoices | Revenue, invoiced, paid, outstanding |
| Activity Report | clientActivity | Last 50 activities with timestamps |
Documents
Uploaded files with preview overlay. Supports images, PDFs, text files. File preview without download required.
Team Members
Add team members with roles: Viewer (read-only), Editor (notes + requests), Manager (full except billing). Admins can activate/disable from admin panel.
19 AI Blog Generator
Automated content creation using Google Gemini AI with editorial workflow.
Specifications
| Parameter | Value |
|---|---|
| AI Model | Gemini 2.5-flash (primary), 2.0-flash-001 (fallback) |
| Word Count | 1,200 - 1,800 words per post |
| Structure | Table of Contents, Key Takeaways, H2/H3 headings, CTA box |
| SEO Tags | 5 auto-generated relevant tags per post |
| Categories | 8 topic categories + "Surprise Me" random |
| Auto-Schedule | Wednesday & Saturday @ 10:00 AM IST |
| Approval Workflow | Manual posts require admin approval before publish |
| Generation Time | 15-30 seconds per post |
SEO Scorer
8-point SEO check: title length, meta description, keyword density (1-3%), headers, content length (300+ words), links, images with alt text. Score 0-100 with color-coded rating.
20 Lead Scoring AI
Cloud Function: onInquiryScored | Trigger: Firestore onCreate on inquiries
Scoring Criteria
| Signal | Points |
|---|---|
| High budget (₹50K+ / ₹1L+) | +30 |
| Medium budget (₹25K-40K) | +20 |
| Budget mentioned | +10 |
| High-value service (Quantum / CRM / ERP / Bundle) | +25 |
| Standard service (Website / Marketing / SEO) | +15 |
| Detailed message (200+ chars) | +15 |
| Brief message (50+ chars) | +8 |
| Phone provided | +10 |
| Company name provided | +5 |
| Urgency keywords detected | +15 |
Output Fields
leadScore— Integer 0-100leadTier— "Hot" / "Warm" / "Cold"leadSignals— Array of matched criteria strings
21 AI Task Estimator
Gemini-powered project estimation from natural language briefs.
Input
- Project brief (free text describing requirements)
- Project type (Web App, Mobile, E-Commerce, etc.)
- Budget range selection
Output
| Field | Description |
|---|---|
| Project Name | AI-suggested name |
| Executive Summary | 2-3 sentence overview |
| Duration | Estimated weeks |
| Cost Range | Min-Max in INR |
| Phases | Detailed breakdown with tasks per phase |
| Milestones | Key milestones with week numbers and payment amounts |
| Tech Stack | Recommended technologies |
| Risks | Identified project risks |
| Assumptions | Estimation assumptions |
22 AI Proposal Generator
Generate professional client proposals with AI. Input requirements, get a complete proposal with scope, timeline, pricing, and terms. Export as branded PDF.
23 AI Analytics Suite
10 AI-powered modules for advanced business intelligence.
| # | Module | Function |
|---|---|---|
| 1 | Sentiment Tracker | NLP analysis of client communications (0-100 sentiment score) |
| 2 | Churn Alerts | Risk detection from engagement patterns, payments, satisfaction |
| 3 | Client ROI | LTV calculation: revenue vs service cost per client |
| 4 | Compliance Auditor | Privacy, security, and contract compliance checks |
| 5 | Scope Creep Detector | Track scope changes vs baseline, calculate impact |
| 6 | Client Health | Composite health score from projects, payments, communication, SLAs |
| 7 | Proposal Generator | AI-generated proposals from requirements input |
| 8 | Revenue Forecast | Monthly/quarterly predictions with confidence intervals |
| 9 | Report Builder | Branded PDF reports combining multiple data sources |
| 10 | Client Onboarding | Automated workflow with checklists and welcome sequences |
24 UTM & Campaign Tracking
Full UTM parameter capture and campaign analytics across the entire website.
UTM Capture
- Auto-captures
utm_source,utm_medium,utm_campaign,utm_term,utm_contentfrom URL parameters - Stored in
sessionStorage, attached to all form submissions - Also captures:
gclid,gbraid,wbraid(Google),fbclid(Meta)
Campaign Tools
| Tool | Description |
|---|---|
| UTM Link Generator | Build tracked URLs with copy, shorten (TinyURL), and save |
| Lead Source Analytics | Visual breakdown of lead sources with progress bars and table |
| Email Blast | Bulk HTML email to newsletter subscribers with batched sending |
| Google Ads Dashboard | KPIs, 4 charts, lead table with filters and CSV export |
25 Google Ads Integration
Configuration
| Setting | Value |
|---|---|
| Google Ads Account | 872-364-8500 |
| Conversion Tag | AW-8723648500 |
| GA4 Measurement ID | G-MHBHJR0F1G |
| GTM Container | GTM-WBBTFDBJ |
| Conversion Event | ads_conversion_Sign_up_1 (GA4-imported) |
| Conversion Trigger | Page load: /#pricing |
| Attribution | Data-driven, 90-day click-through window |
| Enhanced Conversions | Active (email + phone user_data) |
Where Tags Fire
| Page | Tag | Conversion Event |
|---|---|---|
| index.html | GA4 + AW config | #pricing section IntersectionObserver |
| pricing.html | GA4 + AW config | Page load fires ads_conversion_Sign_up_1 |
| lp/google.html | GA4 + AW + gclid | Form submit fires ads_conversion_Sign_up_1 |
| lp/meta.html | GA4 + AW + gclid | Form submit fires ads_conversion_Sign_up_1 |
| lp/quantum.html | GA4 + AW | Form submit fires ads_conversion_Sign_up_1 |
Admin Dashboard
Google Ads tab in Campaigns shows: 6 KPI cards, line chart (leads over time), doughnut (source breakdown), bar (campaigns), bar (score distribution), filterable leads table, CSV export.
26 Meta Pixel Integration
| Setting | Value |
|---|---|
| Pixel ID | 534810852968772 |
| Events | PageView, Lead (form submit), ViewContent |
| Pages | Key pages: index.html, lp/meta.html |
| fbclid Capture | Active — stored with UTM data |
27 Email Blast System
Specifications
| Parameter | Value |
|---|---|
| Cloud Function | processEmailBlast |
| Batch Size | 5 emails per batch |
| Pause Between Batches | 1 second (rate limit protection) |
| SMTP Provider | Zoho (smtp.zoho.com:465) |
| Sender | info@69dynamics.in |
| Template | Branded 69dynamics HTML email with CTA button |
| Tracking | Success/fail counts per blast, history table |
| Admin Report | Completion email with send stats |
28 Firebase Configuration
| Setting | Value |
|---|---|
| Firebase Project | dynamics-69 |
| Hosting URL | https://69dynamics.in |
| Hosting Alternate | dynamics-69.web.app |
| Node.js Runtime | Node 22 |
| Functions Region | us-central1 (primary) + asia-south1 (some triggers) |
| Firestore Rules | Role-based: admin full access, clients read own data |
| Storage Rules | Authenticated read/write with path restrictions |
29 Cloud Functions (19)
| # | Function | Trigger | Purpose | Region |
|---|---|---|---|---|
| 1 | newsletterSubscribe | HTTPS | Newsletter signup API | asia-south1 |
| 2 | onNewsletterSubscribe | onCreate | Welcome email + admin notify | asia-south1 |
| 3 | onNewInquiry | onCreate | Admin notification on inquiry | asia-south1 |
| 4 | onNewApplication | onCreate | Career application notify | asia-south1 |
| 5 | onClientAccessRequest | onCreate | Portal access welcome email | asia-south1 |
| 6 | onGameUserCreate | onCreate | Game user events | asia-south1 |
| 7 | weeklyLighthouseReport | Scheduled | Weekly PageSpeed audit | us-central1 |
| 8 | runLighthouseNow | HTTPS | Manual lighthouse audit | us-central1 |
| 9 | onBlogPublish | onUpdate | Blog publish social post | us-central1 |
| 10 | onPipelineCreate | onCreate | Pipeline welcome email | us-central1 |
| 11 | onPipelineAdvance | onUpdate | Stage advance notification | us-central1 |
| 12 | saveConfiguratorLead | HTTPS | Save configurator submissions | us-central1 |
| 13 | logConversionEvent | HTTPS | Log frontend conversions | us-central1 |
| 14 | generateBlogPost | HTTPS | AI blog generation (Gemini) | us-central1 |
| 15 | onInquiryScored | onCreate | Auto lead scoring | asia-south1 |
| 16 | automatedFollowUps | Scheduled | 48h + 7d follow-up emails | us-central1 |
| 17 | onMilestoneComplete | onUpdate | Auto-invoice on milestone | us-central1 |
| 18 | scheduledBlogGeneration | Scheduled | Auto AI blog (Wed/Sat) | us-central1 |
| 19 | processEmailBlast | onUpdate | Batch email blast sending | us-central1 |
30 Firestore Schema
30+ Firestore collections powering the Quantum platform.
| Collection | Purpose | Key Fields |
|---|---|---|
clients | Client records | name, email, phone, company, status |
projects | Client projects | name, clientId, status, deadline |
projectMilestones | Project deliverables | title, projectName, clientEmail, dueDate, status, order |
tasks | Task management | title, assignee, priority, status, dueDate |
inquiries | Contact form leads | name, email, message, service, leadScore, leadTier, utm_* |
referrals | Referral tracking | referrer, referred, status, reward |
configuratorLeads | Service configurator | services, budget, contact, utm_* |
newsletter | Newsletter (legacy) | email, subscribedAt, source |
newsletterSubscribers | Newsletter (UTM) | email, subscribedAt, source, utm_* |
applications | Job applications | name, email, position, resume, status |
blogPosts | Blog articles | title, slug, content, status, aiGenerated, category, tags |
invoices | Invoices | invoiceNumber, clientEmail, amount, status, lineItems |
payments | Payment records | clientEmail, amount, date, method, status |
contracts | Client contracts | title, clientEmail, type, startDate, endDate, value, status |
automationPipelines | Quantum pipelines | clientId, projectName, currentStage, stageHistory |
supportTickets | Support tickets | ticketId, clientEmail, subject, priority, status, replies[] |
announcements | Admin announcements | title, type, body, active, createdBy |
clientFeedback | Client feedback | clientEmail, rating, category, text, adminResponse |
clientTeamMembers | Client teams | clientEmail, name, email, role, status |
conversionEvents | Conversion tracking | type, label, page, referrer, timestamp |
campaigns | Saved UTM links | name, url, source, medium, campaign |
emailBlasts | Email blasts | subject, body, status, totalSent, totalFailed |
lighthouseReports | Performance audits | performance, accessibility, seo, fcp, lcp, cls |
adminAuditLog | Audit trail | action, collection, details, adminEmail, timestamp |
adminWebhooks | Webhook config | name, url, events, active |
clientActivity | Activity stream | clientEmail, message, type, timestamp, read |
inventoryHistory | Stock movements | productId, type, quantity, adminEmail |
metadata | Settings & counts | blogSettings, newsletter.count |
31 Security & Authentication
Authentication
- Firebase Auth — Email/password authentication
- Admin Whitelist — Only whitelisted emails can access admin panel
- Role-Based Access — Super Admin has full access; other roles are restricted
- Session Management — Firebase Auth tokens with automatic refresh
Firestore Security Rules
- Admin — Full read/write to all collections
- Clients — Read own data only (filtered by email)
- Public — Create-only for forms (inquiries, newsletter, comments); no read access
- Audit Logging — All admin actions logged to
adminAuditLog
Data Protection
- SSL/TLS encryption on all connections (Firebase Hosting default)
- Environment variables for secrets (never committed to repository)
- Firestore data isolation per client
- Cookie consent banner for visitor privacy compliance
- Automated backups with configurable retention
32 Third-Party Integrations
| Integration | Purpose | Config Location |
|---|---|---|
| Google Analytics 4 | Website analytics & event tracking | All HTML pages (G-MHBHJR0F1G) |
| Google Tag Manager | Tag management container | All HTML pages (GTM-WBBTFDBJ) |
| Google Ads | Conversion tracking & remarketing | Settings → Integrations |
| Meta Pixel | Facebook/Instagram audience tracking | Key pages (534810852968772) |
| Razorpay | Online payment processing | Settings → Razorpay |
| Zoho SMTP | Transactional & marketing emails | functions/.env |
| Google Gemini AI | Blog generation, task estimation, proposals | functions/.env (GEMINI_API_KEY) |
| PageSpeed Insights | Lighthouse performance audits | Cloud Function (API) |
| TinyURL | URL shortening for campaigns | Client-side API call |
| Webhooks | Custom HTTP endpoint notifications | Settings → Webhooks |
33 API Endpoints
| Endpoint | Method | Auth | Purpose |
|---|---|---|---|
/api/newsletter | POST | None | Newsletter subscription |
/api/runLighthouseNow | POST | Admin | Trigger lighthouse audit |
/api/saveConfiguratorLead | POST | None | Save configurator submission |
/api/logConversionEvent | POST | None | Log conversion event |
/api/generateBlogPost | POST | Admin | Generate AI blog post |
34 Environment Configuration
Required Variables (functions/.env)
| Variable | Purpose |
|---|---|
SMTP_HOST | Email server (smtp.zoho.com) |
SMTP_PORT | Email port (465) |
SMTP_USER | Sender email address |
SMTP_PASS | Email password |
GEMINI_API_KEY | Google Gemini AI API key |
Admin Settings (UI-configurable)
| Setting | Location |
|---|---|
| Company Info | Settings → Profile |
| Google Ads ID | Settings → Integrations |
| Razorpay Keys | Settings → Razorpay |
| Report Branding | Settings → Report Branding |
| Blog Auto-Publish | Blog section → Scheduler toggle |
| Webhook Endpoints | Resources → Webhooks |
35 Deployment
Commands
# Deploy everything
firebase deploy
# Deploy only frontend (HTML/CSS/JS)
firebase deploy --only hosting
# Deploy only backend (Cloud Functions)
firebase deploy --only functions
Runtime Configuration
| Setting | Value |
|---|---|
| Firebase Project | dynamics-69 |
| Hosting URL | https://69dynamics.in |
| Node.js Runtime | Node 22 |
| Total HTML Files | 52+ |
36 Pricing Model
| Component | Pricing |
|---|---|
| Quantum Platform (monthly) | ₹9,000/month |
| Users | Unlimited (no per-user fees) |
| Setup Fee | One-time (varies by scope) |
| Includes | Website, CRM, Portal, Hosting, SSL, Support, Updates |
| Delivery Timeline | 14-21 days initial setup |
| Support | Priority WhatsApp + Email |