How campusx-official/langgraph-tutorials works
This repository is a collection of LangGraph learning examples, spanning simple workflows, chatbots, persistence, tools, retrieval, human approval, subgraphs, and MCP. The clearest executable workflow is the stock chatbot: a user turn enters the compiled graph, the chat node calls an LLM, and conditional tool dispatch can fetch a quote or request a purchase. The HITL version pauses for human approval; the MCP example loads tools from configured servers. Notebook contents and a README were unavailable, so their connections are not inferred.
Main entry points: chatbot_without_hitl.py Chat graph · chatbot_with_hitl.py Approval graph · 12_mcp.py MCP client
Components 29
Workflow examples
- BMI workflow
1_bmi_workflow.ipynb - Simple LLM
2_simple_llm_workflow.ipynb - Prompt chaining
3_prompt_chaining.ipynb - Batsman workflow
4_batsman_workflow.ipynb - Essay workflow
5_UPSC_essay_workflow.ipynb - Quadratic workflow
6_quadratic_equation_workflow.ipynb - Review reply
7_review_reply_workflow.ipynb - X post generator
8_X_post_generator.ipynb - Basic chatbot
9_basic_chatbot.ipynb - Persistence
10_persistence.ipynb - Tool examples
11_tools.ipynb - RAG example
13_rag.ipynb - HITL example
14_hitl.ipynb - Shared subgraphs
15_subgraph_shared.ipynb - Subgraphs
15_subgraphs.ipynb
Chatbot runtime
- HITL CLI
chatbot_with_hitl.py - Chat CLI
chatbot_without_hitl.py - Chat graph
chatbot_without_hitl.py - Approval graph
chatbot_with_hitl.py
Tools and integrations
- Chat model
chatbot_without_hitl.py - Tool dispatcher
chatbot_without_hitl.py - Stock quote tool
chatbot_without_hitl.py - Purchase tool
chatbot_with_hitl.py - MCP workflow
12_mcp.py - MCP client
12_mcp.py
Other components
- User
- Alpha Vantage
- Approving human
- MCP servers
Connections 14
- User → Chat CLI: enters turn
chatbot_without_hitl.py - Chat CLI → Chat graph: invokes graph
chatbot_without_hitl.py - Chat graph → Chat model: calls model
chatbot_without_hitl.py - Chat graph → Tool dispatcher: dispatches tools
chatbot_without_hitl.py - Tool dispatcher → Stock quote tool: runs tool
chatbot_without_hitl.py - Stock quote tool → Alpha Vantage: requests quote
chatbot_without_hitl.py - User → HITL CLI: enters turn
chatbot_with_hitl.py - HITL CLI → Approval graph: invokes graph
chatbot_with_hitl.py - Approval graph → Purchase tool: dispatches tool
chatbot_with_hitl.py - Purchase tool → Approving human: requests approval
chatbot_with_hitl.py - Approving human → HITL CLI: provides decision
chatbot_with_hitl.py - Approval graph → Chat model: calls model
chatbot_with_hitl.py - MCP workflow → MCP client: loads tools
12_mcp.py - MCP client → MCP servers: connects servers
12_mcp.py