Skip to content

πŸ€– LangGraph AI Chatbot is an intelligent chatbot powered by Groq LLMs, FastAPI, Streamlit, and LangGraph Agents. It supports real-time web search via Tavily, dynamic model selection, and custom system prompts. Beautiful UI, smooth backend integration β€” built for seamless and smart conversations. Made with ❀️ by Uzma Khatun.

Notifications You must be signed in to change notification settings

UzmaKhatun/LangGraph_AI_Chatbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

20 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ€– LangGraph AI Chatbot

An intelligent AI chatbot built using LangGraph Agents, FastAPI, Streamlit, and Groq LLMs, enhanced with Tavily Web Search functionality.
A clean frontend + powerful backend = seamless chatbot experience!


πŸ“Έ Screenshot

Chatbot UI

πŸ› οΈ Tech Stack

  • Python 3.10
  • LangGraph (AI Agent Framework)
  • FastAPI (Backend API)
  • Streamlit (Frontend UI)
  • Groq LLMs (llama3 models)
  • Tavily (Web Search API)
  • Pydantic (Request Validation)
  • dotenv (Environment Variables)

πŸš€ How It Works

  1. Frontend (Streamlit) collects user query, model selection, system prompt, etc.
  2. Backend (FastAPI) handles request, initializes the AI Agent dynamically based on input.
  3. LangGraph Agent communicates with Groq models and optionally uses Tavily Search for real-time information.
  4. Result is returned back to the frontend and displayed beautifully along with avatars and download options.

πŸ“‚ Project Structure

  • β”œβ”€β”€ AI_Agent.py # LangGraph agent setup
  • β”œβ”€β”€ Backend.py # FastAPI backend server
  • β”œβ”€β”€ Frontend.py # Streamlit frontend UI
  • β”œβ”€β”€ app.py # Entry point to run the app
  • β”œβ”€β”€ requirements.txt # List of required Python packages
  • β”œβ”€β”€ .env # Environment variables (API keys)
  • β”œβ”€β”€ venv/ # Virtual environment (not pushed)
  • β”œβ”€β”€ README.md # Project Documentation

Create and activate a virtual environment

  • python -m venv venv
  • source venv/bin/activate # MacOS/Linux
  • venv\Scripts\activate # Windows

Add your .env file

  • GROQ_API_KEY = your_groq_api_key_here
  • TAVILY_API_KEY = your_tavily_api_key_here

🧠 Supported LLM Models

  • llama3-70b-8192
  • llama-3.3-70b-versatile

πŸ“’ Features

  • Dynamic model selection (Groq)
  • Custom system prompts
  • Real-time web search (Tavily integration)
  • Beautiful chat history with avatars
  • Download AI responses easily
  • Lightweight and beginner-friendly

🌐 Web App Links


πŸ™ Acknowledgements

  • A heartfelt thank you to AI with Hassan on YouTube Channel β€” this project wouldn’t have come to life without his insightful tutorials and guidance.
  • His content makes complex LangChain & multi-agent systems feel simple and achievable. If you're diving into AI agents, his videos are a must-watch!
  • I made a few customizations to better fit my learning goals β€” for example, I currently use only one model provider (Groq) instead of combining Groq and OpenAI as demonstrated in his tutorials.

πŸ‘¨β€πŸ’» Author

  • Made with ❀️ by Uzma Khatun
  • Connect on LinkedIn

About

πŸ€– LangGraph AI Chatbot is an intelligent chatbot powered by Groq LLMs, FastAPI, Streamlit, and LangGraph Agents. It supports real-time web search via Tavily, dynamic model selection, and custom system prompts. Beautiful UI, smooth backend integration β€” built for seamless and smart conversations. Made with ❀️ by Uzma Khatun.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published