Back to Projects

04 / Project

Natural Language → MongoDB Query Chatbot

Ask in English, query in MongoDB

mongodb-chatbot.stack

The Problem

Most people who need data from a database can’t write MongoDB aggregation pipelines. The query language is a barrier between a question and its answer.

What I Built

A chatbot that converts natural language into executable MongoDB queries, handling filters, projections, aggregations, and nested queries through a Streamlit interface.

Approach

A LangGraph-orchestrated agent interprets the user’s intent, maps it to the collection schema, and emits a validated MongoDB query that is executed against MongoDB Atlas, with results rendered back in Streamlit.