---
title: "Recommend API"
description: "Slack built a unified Recommend API so product teams can bootstrap new ML recommenders from reusable components (fetchers, filters, feature augmentation via a Feature Store, model scoring and rerankers) instead of building bespoke systems."
url: "https://swe.quest/articles/recommend-api-7ecced73a1a24709"
canonical: "https://slack.engineering/recommend-api/"
source: "Slack Engineering"
published: "2022-09-06"
difficulty: "medium"
kind: "Case study"
reading_minutes: 10
tags: ["recommendation-systems","ml-platform","privacy","system-design"]
---

# Recommend API

A post on [Slack Engineering](https://swe.quest/sources/slack.md), published 2022-09-06, 10 min read, Case study. Original: [https://slack.engineering/recommend-api/](https://slack.engineering/recommend-api/)

## Summary

Slack built a unified Recommend API so product teams can bootstrap new ML recommenders from reusable components (fetchers, filters, feature augmentation via a Feature Store, model scoring and rerankers) instead of building bespoke systems. Server-side feature logs and client-side interaction logs are joined in Airflow to produce training data, and models such as logistic regression and XGBoost are trained as Kubernetes Jobs and monitored with Prometheus, online CTR/DCG and feature-drift metrics. Hand-tuned heuristic models solve cold start until enough data exists, and privacy is preserved by using de-identified usage metadata and only cosine similarity from an external embedding model. A/B tests showed CTR gains such as +38.86% for Composer DMs and +123.57% for Slackbot leave suggestions after moving from hand-tuned to learned models.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Recommendations & ranking](https://swe.quest/tags/recommendation-systems.md) (AI & ML)
- [ML platforms](https://swe.quest/tags/ml-platform.md) (AI & ML)
- [Privacy](https://swe.quest/tags/privacy.md) (Security)
- [System design](https://swe.quest/tags/system-design.md) (Architecture & design)

## Prerequisites

- recommendation system basics
- supervised ML models ([easy posts on Machine learning](https://swe.quest/tags/machine-learning.md?difficulty=easy))
- A/B testing ([easy posts on Testing](https://swe.quest/tags/testing.md?difficulty=easy))

## Keywords

Slack, Recommend API, Airflow, XGBoost, Kubernetes, Prometheus, Feature Store

## Related posts

- [ML based ranking using Nrtsearch](https://swe.quest/articles/ml-based-ranking-using-nrtsearch-7c7a1334adf546d5.md): Yelp Engineering · 2026-09-16 · Medium · 8 min read · Search, ML platforms, Inference & serving, Recommendations & ranking, Deployment
  Yelp moved ML-based ranking out of a standalone scoring service and into Nrtsearch, its Lucene-based search engine, via an Inference Plugin that extracts features from indexed documents and request parameters and scores them in-process on replica nodes.
- [GenRecs Tokenization: Transforming Ads Recommendation at Meta with Stable Model Vocabulary](https://swe.quest/articles/genrecs-tokenization-transforming-ads-recommendation-at-meta-with-stable-model-e3f3b6ea2626a2c2.md): Meta Engineering · 2026-10-19 · Hard · 6 min read · Recommendations & ranking, Ads, LLMs, Machine learning
  Meta's ads recommender replaces per-item IDs with GenRecs Tokenization, a stable semantic vocabulary.
- [Shopify’s generative discovery model](https://swe.quest/articles/shopify-s-generative-discovery-model-99e5ac502d9a8c68.md): Shopify Engineering · 2026-11-11 · Hard · 12 min read · Recommendations & ranking, Search, LLMs, Inference & serving, Model training
  Shopify trained a single generative model, adapted from an open-weight LLM, that emits semantic-ID tokens to generate product candidates for both personalized search and recommendation across a catalog of billions.
- [User foundation models for Grab](https://swe.quest/articles/user-foundation-models-for-grab-98db1323e8d3fa5a.md): Grab Engineering · 2025-09-26 · Hard · 18 min read · Recommendations & ranking, Model training, Machine learning, ML platforms
  Grab built a transformer-based user foundation model that jointly learns from tabular user attributes and time-series clickstream data to produce general-purpose user embeddings, replacing siloed hand-engineered features.
- [Shopify's Playbook for Scaling Machine Learning](https://swe.quest/articles/shopify-s-playbook-for-scaling-machine-learning-01ef31091481dd96.md): Shopify Engineering · 2022-02-11 · Easy · 12 min read · ML platforms, Machine learning, Threat detection, E-commerce
  Shopify's approach to scaling machine learning grew out of its first ML product, an order fraud detector that replaced a rule-based system with a high false-positive rate.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
