Skip to content

πŸ€– A smart LLM-powered support bot that works 24/7. Just upload your business info in text files - and get a personal customer support manager that never sleeps, for free.

License

Notifications You must be signed in to change notification settings

KazKozDev/ChatBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Chatbot

Website Chatbot

A simple yet powerful knowledge-based chatbot for small business websites. This solution allows you to quickly set up automated customer support using your business information stored in simple text files. Powered by Gemma 2 9B LLM through Ollama, it provides natural and accurate responses to customer queries without requiring constant human supervision.

Perfect for Small Business

  • Easy Setup: Just add your business information in simple text files
  • No Programming Required: Basic installation and text file editing is all you need
  • Cost-Effective: Run without expensive API costs or monthly fees
  • 24/7 Customer Support: Automate responses to common customer questions
  • Time-Saving: Reduce time spent on repetitive customer inquiries

Chatbot Demo

Installation

1. Download Files

Copy the chatbot folder to your website root:

chatbot/
β”œβ”€β”€ chatbot.py
β”œβ”€β”€ server.py
β”œβ”€β”€ knowledge_loader.py
β”œβ”€β”€ install_ollama.sh
β”œβ”€β”€ knowledge/
β”‚   └── about.txt
β”‚   └── delivery.txt
β”‚   └── contacts.txt
└── templates/

2. Install Ollama

# Make script executable
chmod +x install_ollama.sh
# Run installation
./install_ollama.sh

3. Install Python Packages

pip3 install fastapi uvicorn chromadb sentence-transformers pydantic jinja2

4. Configure Information

Edit the knowledge/company.txt file:

# About Company
[Your company description]
# Working Hours
[Business hours]
# Services
[Your services]
# Contacts
[Contact information]

5. Launch the Bot

# Run in background
python3 server.py &

6. Add to Website

Insert before </body>:

<script>
(function() {
    var script = document.createElement('script');
    script.src = '/chatbot/static/chat-widget.js';
    script.async = true;
    document.head.appendChild(script);
    
    script.onload = function() {
        ChatWidget.init({
            botName: 'Assistant',
            apiUrl: '/chatbot/chat'
        });
    };
})();
</script>

Chat Configuration

Customize appearance:

ChatWidget.init({
    botName: 'Your title',
    position: 'right',        // right or left
    width: '350px',          // window width
    height: '500px'          // window height
});

Requirements

  • Python 3.8+
  • 2 GB free memory
  • Python support on hosting

Support

Email: [email protected]

Releases

No releases published

Packages

No packages published