Skip to content

local chatbot that implements some bots that use the chatGpt api

License

Notifications You must be signed in to change notification settings

Dolabok/chatbot-gpt

Repository files navigation

Chatbot Application

This chatbot application is a simple, yet powerful, web-based chat system that allows users to interact with multiple chatbots. Each chatbot specializes in a specific domain, providing users with valuable information and assistance.

Table of Contents

Features

  • Responsive web-based chat interface
  • Multiple chatbots with different functionalities
    • Pokébot: Provides information on Pokémon using the PokéAPI
    • FactBot: Delivers interesting facts using an UselessFacts API
    • FoodBot: Shares information about food, recipes, and ingredients using Themealdb API
  • User-friendly command system to interact with chatbots
  • ChatGPT integration for advanced natural language understanding
  • Local storage support for message history

Installation

  1. Clone this repository:
git clone https://github.com/Dolabok/chatbot-gpt.git
  1. Install the necessary dependencies:
cd chatbot-gpt
npm install
  1. Create a .env file in the project root folder to store your API keys:
OPENAI_API_KEY=your_openai_api_key
  1. Start the development server:
npm start
  1. Open your browser and navigate to http://localhost:9090/ to access the chatbot application.

Usage

  • Type a message in the chat input field and press Enter to send it.
  • To interact with a chatbot, start your message with @BotName followed by the command and any required arguments.
  • For example: @Pokébot search pikachu or @FactBot random
  • Use the @BotName help command to get a list of available commands for each chatbot.
  • Clic on bot name in contact list to fill chat bar with his name
  • Start a command with @bots to start a command on all bots ex: @bots help

Project Structure

  • src/: Contains all source code files
    • bots/: Chatbot classes and implementations
    • components/: UI components for rendering chat elements
    • utils/: Utility functions and helpers
    • api/: API-related functions
    • styles/: SCSS files for styling the application
    • index.js: Main entry point of the application
  • webpack.config.js: Webpack configuration file

APIs and Libraries

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

local chatbot that implements some bots that use the chatGpt api

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published