Overview
Miley is a chatbot that answers questions about store products and promotions. It was a team project for a big data course. Teammates built the chatbot side, including the language model and the chat orchestration. I built the data side: the ingestion pipeline, the backend API, and the AWS infrastructure.
Problem
A chatbot that answers questions about products and promotions is only as good as its data. Product and promotion data comes from an external API, changes often, and needs to be collected, cleaned, and stored before the chatbot can use it.
Approach
An ingestion function on AWS Lambda, written in Rust, fetches the product catalog page by page from the source API. It writes the raw data to Delta Lake tables on Amazon S3, and it starts an AWS workflow that runs the next steps. Transformer jobs read the Delta tables with Apache DataFusion, clean the data, and write it to PostgreSQL on Amazon RDS. The backend is an Axum API that serves products, promotions, and metrics to the rest of the system. It runs as a Docker container on Amazon ECS. I defined the infrastructure with Terraform: the VPC with private subnets, the RDS database, the S3 data lake, security groups, and secrets.
Result
The pipeline takes product and promotion data from the source API all the way to a database the chatbot can query, and the whole AWS setup can be rebuilt from code.
Learning
This was my first time designing a data pipeline end to end on AWS. It taught me how to split work between serverless functions, workflows, and long-running services, and why defining infrastructure as code makes a cloud setup much easier to understand and repeat.