Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LangGraph Chatbot with Memory

A simple conversational chatbot built with LangGraph and Groq that remembers your name across the conversation.

Setup

  1. Install dependencies

    pip install langgraph langchain-groq langchain-core python-dotenv
  2. Add your API key
    Create a .env file in the project root:

    GROQ_API_KEY=your_key_here
    

    Get a free key at console.groq.com

  3. Run the chatbot

    python main.py

Project Structure

├── .env          ← API key (never commit this)
├── .gitignore
├── state.py      ← shared state definition
├── nodes.py      ← LLM logic
├── graph.py      ← graph wiring
└── main.py       ← entry point

Example

You: Hi! My name is Ritika
Bot: Hi Ritika! Great to meet you. How can I help you today?

You: What's the capital of France?
Bot: The capital of France is Paris, Ritika!

You: What's my name?
Bot: Your name is Ritika!

Tech Stack

About

Simple LangGraph based Chat application that greets and the user and continues the conversation.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages