Mailer System & Lead Automation
CEAR Latinoamericano
Proprietary high-throughput email prospecting and nurture platform directly integrated with CEAR Latinoamericano's internal lead database for arbitration and executive programs, featuring Unlayer visual builder, BullMQ queues, and real-time SendGrid analytics.

The Challenge / Business Need
CEAR Latinoamericano needed an independent, self-hosted solution to communicate at scale with prospective leads, legal experts, and alumni without recurring per-contact subscription fees from third-party marketing tools. Key objectives included:
- Native synchronization with the internal lead database to target campaigns for specialized arbitration and postgraduate offerings.
- Integrating a drag-and-drop visual email builder with Unlayer, supporting dual desktop/mobile viewports and dynamic merge tags.
- Reliably dispatching high-volume batches (1,000 emails/minute) without overloading on-premise CPU or freezing transactional services.
- Capturing opens, link clicks, and intent signals in real time to empower sales and admissions to convert high-ticket arbitration cases.
Technical Architecture & Decisions
Decoupled, event-driven architecture engineered for high-throughput transactional campaigns:
Frontend & Visual Builder (Next.js & Unlayer SDK)
Backend & Resilient Queues (NestJS, BullMQ & Inbox Pattern)
Deliverability & Webhooks (SendGrid & DNS Security)
Database & On-Premise Infrastructure (PostgreSQL & Docker)
Key Engineering Challenges Overcome
Zero-Loss Resilient Dispatch with Inbox Pattern & BullMQ
Completely decoupled email dispatch into background Redis workers via BullMQ, combining transactional Inbox patterns to guarantee idempotent, controlled execution at 1,000 emails/min.
Real-Time Streaming Ingestion of SendGrid Webhooks
Engineered an asynchronous webhook receiver with deduplication and debouncing to log engagement events and update analytics dashboards without locking relational tables.
Unlayer Visual Builder with Dynamic Personalization
Seamlessly embedded Unlayer SDK with merge tag interpolation, generating cross-client HTML compatible with legacy Outlook desktop, modern Gmail, and Apple Mail.
Mailer System Gallery
Screenshots of the main dashboard, campaigns, email templates and deliverability metrics.
