How amaan7040/agentic-ai-langgraph- works
This repository is a collection of LangGraph and agentic-AI examples, not one integrated application. The clearest user-to-result workflows are the chat demos: a user enters a message in a Streamlit UI, the backend runs a chat or tool-enabled graph, and the UI displays the response. Other branches demonstrate research-driven blog writing, human approval, retrieval-augmented chat, MCP servers, and workflow patterns. Edges reflect excerpted imports or calls; notebook and unsampled subsystem details are represented without inferred internal flows.
Main entry points: frontend.py Blog writer UI · chatbot_frontend.py Basic chat UI · chatbot_tool_frontend.py Tool chat UI · chatbot_with_db_frontend.py Persistent chat UI
Components 24
Blog writing
- Blog writer UI
Blog Writing Agent/frontend.py - Research and drafting graph
Blog Writing Agent/backend.py
Chat demos
- Basic chat UI
Chatbot Building/chatbot_frontend.py - Basic chat graph
Chatbot Building/chatbot_backend.py - Tool chat UI
Chatbot Building/chatbot_tool_frontend.py - Tool chat graph
Chatbot Building/chatbot_tool_backend.py - Persistent chat UI
Chatbot Building/chatbot_with_db_frontend.py - Persistent chat backend
Chatbot Building/chatbot_with_db_backend.py
MCP integrations
- MCP chat UI
Chatbot MCP/mcp-chatbot-frontend.py - MCP chat graph
Chatbot MCP/mcp_chatbot_backend_client.py - MCP tool server
Chatbot MCP/mcp-tools-local.py - FastAPI MCP chatbot
Fastapi MCP chatbot/main.py - Expense MCP server
MCP/mcp-server-local.py
RAG and approval
- Approval chat UI
HITL/HITL_frontend.py - Human-in-loop graph
HITL/HITL_backend.py - RAG chat UI
RAG Chatbot/rag_frontend.py - RAG chat backend
RAG Chatbot/rag_backend.py
Workflow examples
- Sequential workflow demos
Sequential Workflow - Conditional workflow demos
Conditional Workflow - Parallel workflow demos
Parellel Workflow - Subgraph demos
Subgraph - Iterative generation demo
Iterative/X_Post_Generation.ipynb - Corrective RAG demo
Corrective_RAG.ipynb
Other components
- User
Connections 15
- User → Blog writer UI: enters topic
- Blog writer UI → Research and drafting graph: runs graph
Blog Writing Agent/frontend.py - User → Basic chat UI: sends message
- Basic chat UI → Basic chat graph: imports chatbot
Chatbot Building/chatbot_frontend.py - User → Tool chat UI: sends message
- Tool chat UI → Tool chat graph: imports backend
Chatbot Building/chatbot_tool_frontend.py - User → Persistent chat UI: sends message
- Persistent chat UI → Persistent chat backend: imports backend
Chatbot Building/chatbot_with_db_frontend.py - User → MCP chat UI: sends message
- MCP chat UI → MCP chat graph: loads client
Chatbot MCP/mcp-chatbot-frontend.py - MCP chat graph → MCP tool server: starts server
Chatbot MCP/mcp_chatbot_backend_client.py - User → Approval chat UI: sends request
- Approval chat UI → Human-in-loop graph: invokes graph
HITL/HITL_frontend.py - User → RAG chat UI: sends question
- RAG chat UI → RAG chat backend: imports chatbot
RAG Chatbot/rag_frontend.py