Skip to content

YasminOE/Chatbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ChatBot with OpenAI API

This repository contains a web-based chatbot developed using HTML, CSS, and JavaScript, integrated with the powerful OpenAI API. The chatbot utilizes the capabilities of GPT-3.5, an advanced language model, to engage in natural and interactive conversations with users.

Features

  • Interactive Interface: The chatbot offers a user-friendly and visually appealing interface, allowing seamless communication with users.

  • OpenAI Integration: By leveraging the OpenAI API, the chatbot can process user inputs, generate responses, and provide dynamic and contextually relevant replies.

  • Natural Language Processing (NLP): The combination of HTML, CSS, and JavaScript along with the OpenAI API enables the chatbot to understand and interpret user queries in natural language.

  • Customizable Responses: The chatbot's responses can be tailored to specific use cases, making it suitable for various applications like customer support, virtual assistants, and more.

  • Extendable and Modular: Developers can easily extend the functionality of the chatbot by adding new features or integrating it into existing projects.

Getting Started

To run the chatbot locally, follow these steps:

  1. Clone the repository: git clone https://github.com/YasminOE/Chatbot.git

  2. Navigate to the project directory: cd chatbot-with-openai

  3. Open the index.html file in your preferred web browser.

  4. Start interacting with the chatbot and enjoy dynamic conversations powered by OpenAI.

OpenAI API Setup

To use the chatbot with the OpenAI API, you'll need an API key from OpenAI. Visit the OpenAI website to sign up and get your API key.

Once you have your API key, create a file named .env in the root of the project and add the following line:

Replace add-your-open-ai-key-here with your actual API key. This file will be used to securely store your API key and will be automatically read by the chatbot.

Contributions

Contributions to the chatbot are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.

Let's build and enhance this chatbot together!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published