Skip to content

onlyoneaman/chatgpt-support-bot

Repository files navigation

ChatGPT Based Support Bot

Article: Building a Support Bot for your website using Python, OpenAI

This is a support bot based on the ChatGPT by onlyoneaman which provides information to your customers based on your knowledge base.

How to use

  1. Clone the repository
git clone git@github.com:onlyoneaman/chatgpt-support-bot.git
  1. Install the dependencies
pip install -r requirements.txt
  1. Add OpenAI API key to the environment variables (.env)
# .env
OPENAI_KEY=YOUR_OPENAI_KEY_HERE
  1. Create Embeddings for Knowledge Base
python embed_text.py
  1. Run the bot
python answer.py

Adding Knowledge Base

You can add documents to the knowledge base by adding them to the documents folder. Files should be in .txt format. After adding the documents, you need to run the embed_text.py script to create embeddings for the documents.

About

A Support Bot based on your company's knowledge base and powered by ChatGPT

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages