Skip to content

About

A chat bot that works offline using the csv file data and using pre-determined FAQ's

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Offline Python Chatbot

This is an offline chatbot application built in Python. It can answer FAQ questions and perform sales data analysis using only local files. No internet connection is required after setup.

Features

  • FAQ answering from local text files
  • Sales data analysis from CSV
  • Natural language query support
  • Works fully offline

Setup

  1. Install Python 3.8+
  2. Create and activate a virtual environment:
    python -m venv chatbot_env
    chatbot_env\Scripts\activate  # On Windows
    # or
    source chatbot_env/bin/activate  # On macOS/Linux
  3. Install requirements:
    pip install -r requirements.txt
  4. Download NLTK data:
    python setup_nltk.py
  5. Add your FAQ files to data/faq/ and sales data to data/sales_data.csv.

Usage

Run the chatbot:

python chatbot.py

Type help for available commands. Type quit to exit.

Project Structure

  • chatbot.py - Main application
  • faq_processor.py - FAQ logic
  • sales_processor.py - Sales logic
  • text_processor.py - Text utilities
  • config.py - Settings
  • setup_nltk.py - NLTK data setup
  • requirements.txt - Dependencies
  • data/faq/ - FAQ files
  • data/sales_data.csv - Sales data
  • examples/ - Example queries

Example Queries

  • What is your return policy?
  • Show monthly sales
  • Which product has the highest sales?
  • Show sales for Product A

About

A chat bot that works offline using the csv file data and using pre-determined FAQ's

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages