An AI agent that reads incoming customer support emails, finds the answer and replies on its own. Built with LangGraph, a custom MCP server on AWS, and RAG over company policies.
The problem
Support teams spend a lot of time on routine emails like order status, return rules and shipping questions. Each one means checking the same systems and typing a similar reply.
What I built
Gmail push notifications through Google Cloud Pub/Sub trigger a FastAPI webhook for every new email
A LangGraph workflow that parses the email, works out the problem, calls tools as needed, drafts a reply and sends it back as formatted HTML
A Dockerized MCP server on ECS Fargate with two tools: policy search (RAG over the company policy document in Pinecone) and order tracking from DynamoDB
AWS infrastructure (VPC, ECS Fargate, ECR, DynamoDB) defined in AWS CDK

Why it matters
Putting the tools behind an MCP server keeps them separate from the agent. The same policy search and order lookup can serve other agents or channels without being rebuilt.
Stack
Python, LangGraph, FastAPI, MCP, Gemini, Pinecone, Cohere embeddings, Gmail API, Google Cloud Pub/Sub, AWS ECS Fargate, DynamoDB, AWS CDK
0 likes · 0 views · Dec 1, 2026
A LangGraph agent that answers support emails end to end, using an MCP server on AWS for policy search (RAG) and order tracking.