
A multi-agent chatbot system built with LangGraph that provides intelligent assistance for Ready Tensor's Agentic AI Developer Certification Program. The system uses specialized agents for routing queries about course content, enrollment, technical support, and project requirements.
@traceable decoratorsgit clone https://github.com/Ilaye32/Ready-tensor-Module-2-Project cd readytensor-chatbot
python -m venv venv # On Windows venv\Scripts\activate # On macOS/Linux source venv/bin/activate
pip install -r requirements.txt
Create a .env file in the project root:
GROQ_API_KEY=your_groq_api_key_here TAVILY_API_KEY=your_tavily_api_key_here
Important: Never commit your .env file. It's already in .gitignore.
____code/
|_______________readytensor_chatbot.py # Main chatbot implementation
|_______________ test_chatbot.py # Test suite and demo scripts
โโโ requirements.txt # Python dependencies
โโโ .env.example # Environment variables (not in repo)
โโโ .gitignore # Git ignore rules
โโโ README.md
Run the chatbot in interactive command-line mode:
python readytensor_chatbot.py
Available commands:
history - View conversation historyquit or exit - Exit the chatbotRun the comprehensive test suite:
python test_chatbot.py
Test options:
# Course content questions "What topics are covered in Module 1?" "Tell me about RAG systems" # Enrollment questions "How do I enroll in the program?" "Is the certification free?" # Technical questions "What is LangGraph?" "How do I use vector databases?" # Project questions "What are the project requirements?" "How are projects graded?"
User Query โ Router โ Specialist Agent โ Tools (if needed) โ Supervisor โ Response
# Run specific tests python test_chatbot.py # Options: # 1. Knowledge base validation # 2. Routing accuracy tests # 3. Demo conversation flow # 4. Interactive testing
The system implements multi-layer error handling:
# Agent-level error recovery try: response = agent.answer(state) except Exception as e: # Fallback to supervisor state["confidence"] = 0.5 # Tool-level error handling try: result = tool.invoke(params) except ToolError: # Return error message to user
git checkout -b feature/amazing-feature)git commit -m 'Add amazing feature')git push origin feature/amazing-feature).env file.env fileIssue: GROQ_API_KEY not found
.env file exists with correct API keyIssue: Import errors
pip install -r requirements.txtIssue: Tool execution fails
Issue: Routing to wrong agent
langgraph>=0.0.20
langchain>=0.1.0
langchain-groq>=0.0.1
langchain-community>=0.0.1
tavily-python>=0.3.0
python-dotenv>=1.0.0
langsmith>=0.0.70
This project is licensed under the MIT License - see the LICENSE file for details.
For questions or issues:
Note: This is an educational project for the Ready Tensor Agentic AI Developer Certification Program. Always follow responsible AI development practices and respect API usage limits.
Here is the video to my chatbot in use: