HeitorLouzeiro / chatbot-django-chatgpt

Repository created with the purpose of integrating chatgpt with django.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Contributors Forks Stargazers Issues MIT License LinkedIn


Virtual assistant for an ecommerce



Report Bug · Request Feature

Table of Contents
  1. About The Project
  2. Usage
  3. Getting Started
  4. Roadmap
  5. Contributing
  6. Collaborators
  7. License
  8. Contact
  9. Acknowledgments

About The Project

This project involves the creation of a virtual assistant for an ecommerce, developed using Python and the Django framework. The assistant is powered by an artificial intelligence model called ChatGPT, which is integrated into the project through the OpenAI library.

The information provided for the operation of the target is stored in a file. This file contains customer conversation history, where each question is given a summary of the answers to save space. When a customer asks a question, the assistant searches the file for the information needed to provide an appropriate answer.

Customer conversation history is managed through user login. This means that conversation information is associated with a specific user, allowing the assistant to personalize its responses based on that user's past interactions.

There are some restrictions for this project. The recipient is designed to answer e-commerce related questions only. It cannot handle questions outside this scope.

(back to top)

Built With

  • Python
  • Django
  • SQLite
  • Bootstrap
  • HTML
  • CSS

(back to top)

Usage

1.Login Page.

Login Page

2.Home Page.

Page Home

3. Project presentation.

Project presentation

(back to top)

Prerequisites

Getting Started

Installation

  1. Clone the repo

    git clone https://github.com/HeitorLouzeiro/chatbot-django-chatgpt.git
  2. Access the project folder in terminal/cmd

    cd chatbot-django-chatgpt
  3. Create a virtualenv with Python 3.9.0.

    python -m venv venv
  4. Activate virtualenv.

    • Ubunto
    source venv/bin/activate
    • MacOs
    source venv/bin/activate
    • Windows
     venv\scripts\activate
  5. Install as dependencies.

     pip install -r requirements.txt
  6. Configure an instance with .env.

     cp .env-example .env

    or

    Copy the env-example to a new file called .env and then open it and change the variable values ​​if necessary

  7. Run the migrations.

     python manage.py migrate
  8. Create a Superuser.

     python manage.py createsuperuser
  9. Run the application.

     python manage.py runserver

(back to top)

Roadmap

  • Home Page.
  • Login Page.
  • Logout Page.
  • Conversation history.
  • Conversation summarizer.

See the open issues for a full list of proposed features (and known issues).

(back to top)

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/Improvements)
  3. Commit your Changes (git commit -m 'Add my new Enhancements')
  4. Push to the Branch (git push origin feature/Improvements)
  5. Open a Pull Request

(back to top)

Collaborators

We thank the following people who contributed to this project:

Foto do Heitor Louzeiro no GitHub
Heitor Louzeiro

(back to top)

License

Distributed under the MIT License. See LICENSE for more information.

(back to top)

Contact

Project Link: https://github.com/HeitorLouzeiro/chatbot-django-chatgpt

(back to top)

About

Repository created with the purpose of integrating chatgpt with django.

License:MIT License


Languages

Language:Python 58.0%Language:HTML 16.6%Language:CSS 15.6%Language:JavaScript 9.8%