Skip to content

Latest commit

 

History

History
66 lines (37 loc) · 2.13 KB

README.md

File metadata and controls

66 lines (37 loc) · 2.13 KB

Basic JavaScript ChatBot

A simple chatbot implemented in JavaScript using the brain.js library.

Description

This project showcases a basic chatbot implemented in JavaScript. The chatbot is designed to generate responses based on user input and is powered by the brain.js library, which provides an easy-to-use interface for creating and training neural networks.

Features

  • Generates responses to user input using brain.js.
  • Trained on a set of predefined messages and corresponding responses.
  • Provides an example of a simple conversational agent using neural networks.

Getting Started

Prerequisites

  • Node.js and npm (Node Package Manager) should be installed on your system.

Installation

  1. Clone this repository:

    git clone https://github.com/your-username/your-repo.git
    
  2. Navigate to the project directory:

    cd your-repo
    
    
  3. Install project dependencies:

    npm install
    

Usage

  • Run the chatbot: node chatbot.js

  • Input a message and observe the chatbot's response.

  • Experiment with different messages and observe how the chatbot generates responses based on the brain.js library.

Customization

  • Modify the trainingData array in chatbot.js to train the chatbot with different input-output pairs.
  • Experiment with different training data and responses to enhance the chatbot's interaction.

Example: Running the Project in Google Colab

You can try out the Basic JavaScript ChatBot project in Google Colab. Follow the link below to access the interactive Colab notebook:

Open in Google Colab

In the Colab notebook, you'll be able to run the project interactively and see the chatbot in action.

Authors

Ashish Sharma

Acknowledgments

FOSSA Status