[Cloud Security]ArchitectureAI-Driven

An AI-powered sales configurator for rule-compliant quotes

A guided questionnaire, an AI recommendation agent, and a rules engine that turn customer needs into valid, priced quotes.

from architecture to production
3 months
environments, dev to production
4
engineers
5

Context

An internal web app for the sales team of a global cloud security (SASE) vendor. Sellers answer a guided questionnaire; the system recommends a bundle, calculates SKUs and quantities, and exports the quote.

Challenge

Quotes had to respect a large set of product rules (incompatibilities, dependencies, min/max quantities, bundles, pricing and discounts), and admins needed to update those rules without a developer.

Approach

  • Defined a monorepo architecture (shared / backend / frontend) running Nginx, NestJS, and Redis on Docker Compose, with S3 for files.
  • Designed the core domain: questionnaire flow, recommendation engine, constraint validation, and pricing rules.
  • Integrated an AI agent (Mastra with OpenAI GPT models) that recommends products from the answers.
  • Built an admin import pipeline: spreadsheet parsers, a parser registry, and a BullMQ background queue.
  • Secured access with Okta SSO and enforced test-coverage gates in CI.

Result

  • Sellers build rule-compliant quotes and export them as CSV or PDF.
  • Admins keep the catalog and selling rules current by uploading spreadsheets.

Role & stack

Team Lead / Technical Lead · team of 5

  • NestJS
  • React
  • Mantine
  • Redis
  • BullMQ
  • Mastra
  • OpenAI
  • Okta
  • Docker
  • AWS

Architecture

Architecture diagram: An AI-powered sales configurator for rule-compliant quotes
Simplified and anonymized. Component names are generic.