Skip to main content
LTV.ai is a production-grade backend platform that powers AI-driven email marketing and multi-channel ecommerce integrations. Built with NestJS and TypeScript, it serves as the core API for the LTV.ai ecosystem.

What LTV.ai Does

Email Marketing

AI-powered email sequence generation, dynamic segmentation, A/B testing, and automated scheduling via the Reactivate module.

Ecommerce Integrations

Native integrations with Shopify and BigCommerce for order tracking, product sync, and customer data.

AI Content Generation

AI-powered content generation for email copy, image generation, and customer segmentation.

Dynamic Segmentation

Behavioral customer segmentation with automated clustering and targeting for personalized campaigns.

Tech Stack

LayerTechnology
FrameworkNestJS 10.x with TypeScript
Primary DatabasePostgreSQL via TypeORM
Analytics DatabaseClickHouse
Cache & SessionsRedis
SearchElasticsearch
API LayerREST + Apollo GraphQL
CloudAWS (S3, SQS, SES, Lambda, KMS, Batch)
Email DeliverySendGrid
MonitoringNew Relic

Project Structure

shoptoken-backend/
├── apps/
│   └── shoptoken-merchant-api/src/    # Main NestJS application
│       ├── reactivate/                 # Email automation (23 controllers)
│       ├── public-api/                 # GraphQL public API
│       ├── core/                       # Core domain entities
│       ├── webhook/                    # Webhook handlers
│       ├── cron/                       # Scheduled jobs
│       └── config/                     # Configuration
├── db/
│   ├── postgres/                       # PostgreSQL migrations
│   └── clickhouse/                     # ClickHouse migrations
├── lambdas/                            # AWS Lambda functions
├── terraform/                          # Infrastructure as Code
└── docs/                               # Technical docs

Key Features

  • AI email generation with a structured multi-phase workflow
  • Dynamic customer segmentation with behavioral analysis
  • Multi-brand support with per-brand customization
  • Product catalog sync across ecommerce platforms
  • Batched email scheduling via SQS queues
  • Comprehensive analytics with ClickHouse and Elasticsearch
  • OAuth SSO for Shopify, BigCommerce, Microsoft, and Google