UMAR SAYYAD
Predictive ML
Cross-Brand Personalization Engine
Drove personalised loyalty offers, menu recommendations, and promotional targeting across 6 restaurant brands and 33,000+ locations using behavioural signals and cross-brand engagement data.
As Principal Engineer at Inspire Brands, designed and led the personalization engine that unified behavioural data from Arby's, Baskin-Robbins, Buffalo Wild Wings, Dunkin', Jimmy John's, and SONIC into a cross-brand segmentation model. Firebase Remote Config, loyalty interaction patterns, and ordering history fed a rule-based-to-ML pipeline that personalised promotions, menu surfaces, and reward offers — increasing cross-brand engagement while preserving each brand's distinct identity.
Full stack
- Firebase
- React
- Next.js
- TypeScript
- Redux
- Contentful
- Auth0
- Google Cloud
- Cloudflare
- NewRelic
Capability Overview
Capability Overview
- End-to-end personalization engine unifying behavioural signals from six distinct restaurant brands into cross-brand user profiles for personalised loyalty offers, menu recommendations, and promotional content.
- Brand-aware personalization — recommendations felt native to each brand while leveraging cross-brand data that no single brand could access alone.
- Progressive rollout from rule-based segments to gradient-boosted ML models, validated brand-by-brand before going cross-brand.
- Firebase Remote Config as the personalization delivery layer with hierarchical flag resolution across user, segment, region, and brand dimensions.
Cross-Brand Personalization Engine covers the end-to-end system that collects behavioural signals from six distinct restaurant brands, unifies them into a cross-brand user profile, and delivers personalised loyalty offers, menu recommendations, and promotional content — all while respecting each brand's visual identity and business rules.
The core challenge was that Inspire Brands operates six brands with fiercely different customer bases: a Buffalo Wild Wings customer and a Baskin-Robbins customer have different expectations, different ordering patterns, and different loyalty motivations. A single "one-size-fits-all" recommendation engine would alienate more customers than it converted. The engine needed brand-aware personalization — recommendations that felt native to each brand while leveraging cross-brand data that no single brand could access alone.
As Principal Engineer, I designed the segmentation architecture, the feature-flag-driven experimentation framework, and the progressive rollout strategy that let us validate personalization models brand-by-brand before going cross-brand.
Tech in this section
- Firebase
- React
- Next.js
Implementation Patterns
Implementation Patterns
- Multi-dimensional feature flagging via Firebase Remote Config with hierarchical resolution: user → segment → region → brand → global default.
- Cross-brand loyalty graph linking identities through Auth0 SSO into unified profiles with brand-partitioned interaction vectors.
- Rule-to-ML promotion targeting: Phase 1 rule-based segments as guardrails, Phase 2 gradient-boosted model scoring user-promotion affinity.
- CMS-driven content personalization: segment-tagged Contentful entries matched to visitor profiles for highest-affinity content rendering.
The personalization engine used four core patterns working in concert. Multi-dimensional feature flagging handled the combinatorial explosion of 6 brands × multiple regions × user segments through Firebase Remote Config with hierarchical resolution — user-level overrides took precedence over segment-level, which overrode region-level, which overrode brand-level defaults.
The cross-brand loyalty graph was the data foundation. Auth0 cross-brand SSO linked identities into a unified graph where engagement events from all brands fed a single profile with brand-partitioned interaction vectors. Privacy boundaries were enforced per brand — cross-brand signals were aggregated, never exposed raw.
Rule-to-ML promotion targeting provided a path from manual marketing to data-driven targeting without a cold-start cliff. Phase 1 used rule-based segments. Phase 2 introduced a gradient-boosted model trained on historical redemption data. Rules remained as guardrails — ML couldn't target a segment the rules excluded.
Content personalization added a layer between Contentful and the render pipeline: content entries tagged with target segments, the engine matched visitor profiles to content tags, and the highest-affinity content rendered.
Multi-dimensional feature flagging
Firebase Remote Config with hierarchical resolution: user → segment → region → brand → global default. Flags evaluated at render time with SSR fallbacks.
- Why this
- 6 brands × multiple regions × user segments creates a combinatorial explosion. Hierarchical resolution provides a single source of truth with clear precedence rules.
- What it cost
- Hierarchical resolution added ~15 ms latency per flag evaluation chain, but eliminated contradictory flag states that flat flag systems produce at scale.
- Firebase
- Next.js
Cross-brand loyalty graph
Auth0 SSO linked identities into a unified graph with brand-partitioned interaction vectors. Privacy boundaries enforced per brand — cross-brand signals aggregated, never raw.
- Why this
- Customers with accounts at multiple brands generated disjointed histories. Cross-brand data makes recommendations at each brand more relevant than single-brand signals alone.
- What it cost
- SSO adoption was gradual (~30% in Q1). Unlinked users fell back to single-brand signals only, limiting personalization accuracy until adoption grew.
- Auth0
- Firebase
Rule-to-ML promotion targeting
Phase 1: rule-based segments. Phase 2: gradient-boosted model scoring user-promotion affinity. Rules remained as guardrails ML couldn't override.
- Why this
- Manual marketing picked segments by gut feel. ML improved targeting, but needed guardrails to prevent brand-inappropriate recommendations.
- What it cost
- Keeping rules as guardrails slowed full ML autonomy but prevented embarrassing targeting mistakes (e.g., meat promotions to vegetarian-heavy segments).
- Firebase
- Google Cloud
Content personalization via CMS signals
Contentful entries tagged with target segments. Personalization engine matched visitor profiles to tags and rendered highest-affinity content. Webhook-driven cache invalidation.
- Why this
- Contentful served the same content to every visitor. Segment tagging let marketing personalise without engineering involvement.
- What it cost
- Content tagging added work for marketing teams. Mitigated by auto-suggesting tags based on historical performance of similar content.
- Contentful
- Firebase
Tech in this section
- Firebase
- Auth0
- Contentful
- Next.js
Architecture
Architecture
- Behavioural collection via Firebase Analytics capturing every user interaction with brand context, session context, and unified Auth0 identity.
- Cloud Function profile assembly aggregating raw events into brand-partitioned feature vectors with privacy boundaries on cross-brand data.
- Gradient-boosted scoring engine evaluating user-promotion affinity, retraining weekly on fresh redemption data.
- Firebase Remote Config as the delivery layer with A/B testing using brand-stratified randomization for every personalization change.
The personalization engine sat between the frontend application and the backend services, acting as an orchestration layer that resolved what each user should see.
Every user interaction — menu views, cart additions, order completions, loyalty redemptions, promotion clicks — was instrumented as a structured event flowing to Firebase Analytics. Events carried brand context, session context, and the unified identity from Auth0.
A Cloud Function aggregated raw events into user profiles with brand-partitioned feature vectors: ordering frequency per brand, average order value, preferred categories, promotion response rates, and loyalty tier progression.
Firebase Remote Config served as the delivery layer. The React/Next.js frontend evaluated flags at render time — SSR pages resolved flags server-side for first-paint personalization; CSR pages resolved client-side with a loading state capped at 200 ms.
Every personalization change was an A/B test. Firebase A/B Testing split traffic at the user level with brand-stratified randomization.
Tech in this section
- Firebase
- Google Cloud
- Auth0
- React
- Next.js
Stack & Tools
Stack & Tools
- Firebase for analytics collection, Remote Config flag delivery, A/B Testing experimentation, and Cloud Functions for profile assembly.
- React/Next.js for flag-driven personalised rendering with SSR first-paint personalization.
- Auth0 for cross-brand SSO — the identity backbone enabling unified loyalty profiles across six brands.
- Google Cloud for Cloud Functions event aggregation, BigQuery historical analysis, and model training compute.
- Cloudflare for edge caching with personalisation-aware cache keys at the segment level.
Firebase was the personalization backbone — serving four roles simultaneously. Analytics captured every user event with brand context. Remote Config delivered personalised flag values through the hierarchical resolution chain. A/B Testing provided brand-stratified experimentation. Cloud Functions ran the profile assembly pipeline.
React and Next.js handled the frontend personalization rendering. Flag-driven component variants rendered different content per segment. Next.js SSR resolved flags server-side so the first paint was already personalised.
Auth0 was the cross-brand identity backbone. As SSO adoption grew (~30% of multi-brand customers linked in Q1), personalization accuracy improved because the engine could see cross-brand patterns.
Google Cloud provided the compute layer for profile assembly (Cloud Functions), historical analysis (BigQuery), and model training. Cloudflare sat in front with personalisation-aware cache keys at the segment level.
Tech in this section
- Firebase
- React
- Next.js
- TypeScript
- Redux
- Auth0
- Google Cloud
- Contentful
- Cloudflare
- NewRelic
Industry Applications
Industry Applications
- QSR / restaurant: cross-brand loyalty personalization across a multi-brand portfolio — the direct Inspire Brands implementation.
- Retail / CPG: multi-banner personalization for parent companies operating discount, mid-tier, and premium banners.
- Hospitality: hotel chain personalization across economy, business, and luxury brands with cross-tier loyalty perks.
The cross-brand personalization architecture applies wherever a parent company operates multiple consumer brands and wants to leverage shared data without erasing brand identity. The pattern is the same: unify identity across brands, build brand-partitioned feature vectors, score user-content affinity, and deliver personalised experiences through feature flags with brand-level configuration.
QSR / Restaurant
- Problem
- Six restaurant brands operated independent loyalty and promotion systems with no cross-brand data sharing, missing opportunities to drive engagement across the portfolio.
- Approach
- Cross-brand personalization engine unifying behavioural signals via SSO-linked profiles, ML-scored promotion targeting, and feature-flag-driven content personalization across all six brands.
- Impact
- 18% cross-brand engagement lift, +22% promotion redemption rate, <20 ms flag evaluation, 1-day segment activation.
Tech in this section
- Firebase
- React
Results & Evidence
Results & Evidence
- 18% cross-brand engagement lift for SSO-linked users receiving personalised offers vs. control group with generic offers.
- +22% promotion redemption rate from ML-targeted promotions vs. rule-based targeting, measured over a 90-day A/B test across all 6 brands.
- Feature flag evaluation latency under 20 ms at p95, keeping personalised SSR pages within the 2.5s LCP budget.
- Marketing teams could define and activate new behavioural segments in 1 day without engineering involvement.
The 18% cross-brand engagement lift was the strategic metric. SSO-linked users who received cross-brand personalised offers visited a second Inspire brand 18% more often than the control group receiving generic offers.
The +22% promotion redemption rate measured ML targeting against rule-based targeting over a 90-day A/B test across all six brands. The gradient-boosted model learned patterns human marketers couldn't specify in rules.
Feature flag evaluation latency under 20 ms at p95 was a hard requirement. The latency was achieved by pre-computing segment assignments in the profile assembly pipeline rather than evaluating rules at request time.
Marketing self-service — 1 day from segment definition to activation — replaced 2-week sprint cycles where engineers hardcoded segment logic.
Cross-brand engagement
+18%
Generic offers (control)Personalised cross-brand offers
SSO-linked users visiting a second Inspire brand.
Promotion redemption rate
+22%
Rule-based targeting (Phase 1)ML-targeted (Phase 2)
Measured over 90-day A/B test across all 6 brands.
Flag evaluation latency
<20 ms p95
Hierarchical resolution chain completing within LCP budget.
Segment activation time
1 day
2-week sprint cyclesSelf-serve via Firebase Remote Config
Marketing teams activating segments without engineering.
Personalization coverage
6 brands, 33K+ locations
Single engine across Arby's, Baskin-Robbins, BWW, Dunkin', Jimmy John's, SONIC.
Tech in this section
- Firebase
- React
- Next.js
Portfolio Links
Portfolio Links
- Inspire Brands Multi-Brand Platform — the full portfolio case study covering the platform architecture, multi-brand theming engine, and cross-brand SSO that this personalization engine builds on.
The Inspire Brands Multi-Brand Platform portfolio project covers the full seven-layer architecture. This capability page focuses specifically on the personalization engine: the behavioural collection pipeline, cross-brand user profiling, ML scoring engine, and experimentation framework. The portfolio page covers infrastructure and component library architecture; this page covers the AI and data systems.
Inspire Brands Multi-Brand Platform
Scaled a unified loyalty and ordering platform across 6 restaurant brands and 33,000+ locations.
- Industry
- Retail
- Role
- Principal Engineer / Architect
Tech in this section
- Firebase