---
title: "How Grab built Scarlet: the AI teammate that turns a Slack message into a production data pipeline"
description: "Grab's ADW team rebuilt Scarlet, its Slack-based data-pipeline agent, around a short core prompt plus a versioned library of Markdown skills (platform, routing, repository, workflow) loaded on demand, shrinking the prompt about 25x and letting new teams onboard by adding one reviewed repository skill."
url: "https://swe.quest/articles/how-grab-built-scarlet-the-ai-teammate-that-turns-a-slack-message-into-a-cb0afbb754a543cf"
canonical: "https://engineering.grab.com/how-grab-built-scarlet-blog"
source: "Grab Engineering"
published: "2026-11-23"
difficulty: "medium"
kind: "Case study"
reading_minutes: 12
tags: ["ai-agents","data-pipelines","testing","identity-auth","llms"]
---

# How Grab built Scarlet: the AI teammate that turns a Slack message into a production data pipeline

A post on [Grab Engineering](https://swe.quest/sources/grab.md), published 2026-11-23, 12 min read, Case study. Original: [https://engineering.grab.com/how-grab-built-scarlet-blog](https://engineering.grab.com/how-grab-built-scarlet-blog)

## Summary

Grab's ADW team rebuilt Scarlet, its Slack-based data-pipeline agent, around a short core prompt plus a versioned library of Markdown skills (platform, routing, repository, workflow) loaded on demand, shrinking the prompt about 25x and letting new teams onboard by adding one reviewed repository skill. Platform tools sit behind two-tool MCP bridges, data-platform actions run under the requester's short-lived token, and sign-in pauses use LangGraph interrupts to resume runs. Scarlet now validates the data its changes produce by comparing CI candidate output against production (schema, counts, keys, nulls, stats, row diffs), with inconclusive treated as failure and verdicts bound to commits. Deterministic scaffolds replaced model guesses for predictable config, and after rollout the merge rate rose from about 50% to over 85% while repositories served grew about fourfold.

Written by swe.quest, not by the author.

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

## Topics

- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)
- [Data pipelines](https://swe.quest/tags/data-pipelines.md) (Data & databases)
- [Testing](https://swe.quest/tags/testing.md) (Engineering practices)
- [Identity & auth](https://swe.quest/tags/identity-auth.md) (Security)
- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)

## Prerequisites

- LLM agents and tool calling ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))
- Airflow DAGs ([easy posts on Data pipelines](https://swe.quest/tags/data-pipelines.md?difficulty=easy))
- data warehouse pipelines ([easy posts on Analytics & OLAP](https://swe.quest/tags/analytics.md?difficulty=easy))
- merge request workflows

## Keywords

Scarlet, Model Context Protocol, LangGraph, Airflow, Slack, GitLab, Jira, Grab

## Related posts

- [Lessons on UX, security, and scale when building an enterprise-grade Slack agent](https://swe.quest/articles/lessons-on-ux-security-and-scale-when-building-an-enterprise-grade-slack-agent-718cb96cab6bcc78.md): Sourcegraph · 2026-05-04 · Medium · 5 min read · AI agents, Product engineering, Identity & auth, Resilience, Communications
  Sourcegraph's Deep Search Slack agent fits into enterprise workflows through staged status messages (emoji acknowledgement, escalation links for long searches), TL;DR answers with threaded follow-ups, and rich link unfurling via Slack's link\_shared events, SHA256-based entity IDs, chat.unfurl work objects and flexpane details.
- [Building effective agent automations](https://swe.quest/articles/building-effective-agent-automations-abcba7937b1d5df2.md): claude.dev · 2026-10-08 · Medium · 12 min read · AI agents, LLMs, Resilience
  A scheduled daily-brief agent built on Claude Managed Agents reads Slack channels and GitHub pull requests, tracks what changed since the last run, and posts a short brief to Slack.
- [Migration Automation: Easing the Jenkins → GHA shift with help from AI](https://swe.quest/articles/migration-automation-easing-the-jenkins-gha-shift-with-help-from-ai-33309f9411d86fc7.md): Slack Engineering · 2024-12-16 · Medium · 13 min read · CI/CD, AI for coding, Refactoring & migrations, LLMs
  Slack built a conversion tool to move 242 Jenkins pipelines to GitHub Actions by layering corrections on top of GitHub's Actions Importer, which fully converted about 50% of pipelines, partially converted 45% and failed on 5%.
- [How Meta Used AI to Map Tribal Knowledge in Large-Scale Data Pipelines](https://swe.quest/articles/how-meta-used-ai-to-map-tribal-knowledge-in-large-scale-data-pipelines-9638491176a5d710.md): Meta Engineering · 2026-04-06 · Medium · 5 min read · AI for coding, AI agents, Documentation, Developer productivity, Data pipelines
  Meta built a pre-compute engine where 50+ specialized AI agents (explorers, module analysts, writers, critics, fixers, gap-fillers) read every file of a 4,100-file, three-language config-as-code data pipeline and produced 59 concise context files capturing undocumented tribal knowledge.
- [Kafka App? There’s a Skill for That](https://swe.quest/articles/kafka-app-there-s-a-skill-for-that-db613ac72530c591.md): Etsy Code as Craft · 2026-07-31 · Medium · 6 min read · AI agents, AI for coding, Stream processing, Developer productivity, Queues & messaging
  Etsy's streaming platform team built Agent Skills that let coding agents like Claude scaffold, validate, run locally and open PRs for Kafka streaming apps that produce ML features and embeddings.

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)
