Skip to content

jha-shubham01/django-chatgpt-chatbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Integrate ChatGPT in Django and build Chatbot

Description

This project shows how to integrate chatGPT in Django to build a chatbot

Technology Stack

Backend: Django
Frontend: HTML, jQuery (Ajax)

To run the project

Prerequisites: Python3, pipenv

Plugins Used:

Django: https://docs.djangoproject.com/en/4.0/topics/install/#installing-official-release

Important links

Get Open AI key: https://platform.openai.com/account/api-keys/
Setup Open AI Paid account: https://platform.openai.com/account/billing/overview
Setup Open AI Usagage limit: https://platform.openai.com/account/billing/limits

To run the project

  1. Checkout the code
  2. Create a virtual environment (pipenv shell)
  3. Install all the packages (pipenv install)
  4. Add OpenAI key in /src/src/settings.py
  5. Navigate inside the project (cd src)
  6. Run the backend server (python manage.py runserver)
  7. Visit the server link (http://localhost:8000/)

Video Demo

https://youtu.be/VnzqWOIrZ9E