A simple Streamlit-based AI assistant powered by LangGraph and Google Gemini.
Live Demo: langgraph-chatbott.streamlit.app
- Conversational AI using LangGraph and Gemini
- Clean, familiar chat UI (no streaming)
- Session-based chat history
- Easy to reset conversation
-
Clone the repository
git clone https://github.com/04bhavyaa/langgraph-chatbot.git cd langgraph-chatbot -
Install dependencies
pip install -r requirements.txt
-
Set your Google API Key
- Create a
.envfile in the project root:GOOGLE_API_KEY=your-google-api-key-here
- Create a
-
Run the app
streamlit run streamlit_frontend.py
- If the app spins forever or shows "Chatbot unavailable", check your
GOOGLE_API_KEYand internet connection. - Make sure all dependencies in
requirements.txtare installed. - For debugging, check the logs in the terminal and Streamlit UI.
langgraph_backend.py— Backend logic for LangGraph chatbotstreamlit_frontend.py— Streamlit UI for chatrequirements.txt— Python dependencies.env— Your API key (not committed)