Skip to content

tags:
- ai-agents
- data-engineering
- automation-tools
- system-design
- machine-learning


How Grab Uses AI Agents to Enhance Team Productivity

Introduction

Grab, Southeast Asia’s super-app handling rides, food delivery, and payments, leveraged AI agents to address a critical pain point for its data engineering team. The team managed over 15,000 tables in their data warehouse, often spending two days weekly answering repetitive questions about data lineage, quality, and pipeline health. Grab’s solution was a multi-agent AI system automating these tasks, freeing engineers to focus on strategic work.

Architecture Overview

Grab’s system separates reasoning (the “brain”) from execution (the “hands”) using specialized agents. This modular design ensures debuggability, scalability, and maintainability. Key components include:

  • Classifier Agent: Routes queries to relevant specialists, detects guardrails (e.g., PII requests), and provides routing rationale.
  • Data Agent: Executes queries with schema validation, retrieves sample data, and enforces data quality rules.
  • Code Search Agent: Traces data transformations across the codebase and explains code logic in plain language.
  • On-call Agent: Monitors production health by checking Slack, observability tools, and data quality metrics.
  • Summarizer Agent: Synthesizes findings from specialists into a coherent human-readable answer.

For write operations (e.g., adding columns), a single Enhancement Agent handles requests, generates code changes, and requires human approval before deployment.

Key Benefits

  • Time Savings: Reduced manual investigation time from hours to minutes per query.
  • Scalability: Handles 1,000+ monthly queries with low latency.
  • Transparency: Allows engineers to review and refine AI outputs.
  • Error-Aware Design: Failures are traceable to specific agents or tools.

Challenges in Production

Despite success in demos, real-world deployment revealed critical issues:

Context Overflow

  • Problem: Long conversations exceeding LLM context limits led to incomplete responses.
  • Solution: Token-count tracking with tiktoken and context summarization while preserving critical details.

Tool Bloat

  • Problem: Over 30 tools overwhelmed agents with verbose descriptions.
  • Solution: Simplified tool definitions to include only essential info, improving response speed.

Risky Code Execution

  • Problem: Potential exposure of PII or unintended database changes.
  • Solution: Four safeguards: input classification, SQL validation, timeouts, and staged deployments.

Building User Trust

  • Problem: Users doubted AI accuracy due to hallucinations or edge-case failures.
  • Solution: Immediate response with an “unreviewed” label, paired with a review system allowing engineers to refine or reject outputs.

Feedback-Driven Improvement

Grab turns user feedback into a systemic learning loop:
- Random Annotations: Used for offline testing to simulate real-world failures.
- Pattern Analysis: Identifies systemic issues (e.g., misrouted queries) to refine agent prompts.
- Quality Metrics: Tracks rejection rates and failure patterns to trigger updates.

Conclusion

Grab’s AI agent system exemplifies the power of modular, risk-aware automation. By delegating repetitive tasks to specialized agents, the team reduced overhead by orders of magnitude, reclaiming time for innovation. Key lessons include:
1. Automate repetitive, consistent processes where human effort creates friction.
2. Prioritize production safety with layered safeguards, especially for write operations.
3. Design feedback loops to turn every failure into an improvement opportunity.

This approach doesn’t replace engineers but empowers them to focus on high-impact work, proving that AI is most valuable when it removes friction rather than adding complexity.

Original URL