An intelligent MySQL AI Agent system that translates natural language into SQL queries and provides insightful responses — powered by Streamlit, LangChain, Gemini, and MySQL.
# 🧠 MySQL AI Agent A lightweight AI-powered agent that understands and interacts with MySQL databases through natural language. Built to support developers, analysts, and students in exploring and querying databases using plain English — no manual SQL writing required. --- ## 🚀 Features - 🔍 Natural Language Interface: Ask questions in plain English and get meaningful answers back. - 📊 Database Insights: Retrieve data summaries, visualize results (line, bar, pie charts), and explore tables effortlessly. - 🔄 Multi-query Support: Handles follow-up questions and context-aware dialogue. - 🧠 LLM-Powered Responses: Uses Google Gemini + LangChain to return human-friendly explanations instead of raw query outputs. - ⚙️ Customizable Schema: Connect to your own MySQL database with ease. - 💬 Conversational UI: Clean chat interface for seamless interaction. --- ## 🛠️ Tech Stack - 🧪 Programming Language: Python - 🧠 AI Framework: LangChain + Gemini - 📊 Database: MySQL - 🌐 Frontend/UI: Streamlit --- ## 📦 Setup Instructions 1. Clone the repository <pre> git clone https://github.com/nvhnam/MySQL_AI_Agent.git cd to the project </pre> 2. Install dependencies <pre> pip install -r requirements.txt </pre> 3. Configure Environment - Create a folder named .streamlit in the project root (if it doesn't already exist): <pre> mkdir .streamlit </pre> - Inside the .streamlit folder, create a file named secrets.toml and add your credentials: <pre> gemini_key = "your_gemini_api_key" default_db_uri = "mysql+pymysql://username:password@host:port/database_name" </pre> > 💡 Make sure to replace the values with your actual Claude API key and MySQL connection URI. 4. Run the app <pre> streamlit run app.py </pre> --- ## 🤝 Contributing I'm happy to hear your thoughts or ideas! Feel free to contact me with your ideas or collaboration. Reach me at: - 📧 Email: [email protected] - 👨💻 Portfolio: https://nguyenviethoangnam.vercel.app/ --- ## ⭐ Support the Project If you fi
Google's AI-powered research notebook that ingests your documents and becomes an expert on your content. Generates audio overviews, study guides, FAQs, and interactive discussions from uploaded sources.
Google DeepMind's experimental AI agent that can navigate websites, fill forms, and complete multi-step browser tasks autonomously. Uses Gemini's multimodal understanding to interact with web interfaces.
Google DeepMind's universal AI assistant prototype that can see, hear, and respond in real-time through your device camera and microphone. Demonstrates the future of multimodal AI interaction.
Google Cloud's enterprise platform for building, deploying, and managing AI agents powered by Gemini. Supports multi-agent orchestration, tool integration, and enterprise governance.
Gemini's agentic research capability that autonomously browses the web, synthesizes information from dozens of sources, and produces comprehensive research reports on any topic.
Interactive coding and content creation agent that generates, previews, and iterates on code, documents, and interactive applications in a side panel. Supports HTML/CSS/JS, Python, and more.