An open source, friendly human-like chatbot to be with you, forever

Overview

Chatbot

A Friendly human-like chatbot to be with you, forever

Made by Rahuletto#0243

This template powers our system at Simply API


Instructions

This branch is for javascript. Go to typescript branch if you need the typescript project

(This is a much complex system to work with !)

  • Provide your chatbot's details in the .env.example file
  • Change the input as you like in index.js
  • Run the project and you are ready to go

Make it yours

  • Train your AI in the corpus.json file
  • Run javascript/dynamic response using pipelines.md for specific intent (type)
  • DO NOT edit the conf.json file !!
  • Use the response anywhere ! You can make an API or use in your application

Warning

This is an CPU intensive task !!

  • NLP (Natural Language Processing) is an CPU and RAM intensive system.
  • Training the ML model is the most computationally intensive task
  • DO NOT run this project on a potato !

How to train the AI ?

It is your job to train the AI. The more you train, the more smarter it gets.

You can train the ai in two ways

  • The easy one

Using the nlpjs module, you can train the system with functions

You can get the manager from the train(nlp) function in index.js

// ------------------------------------
// These should be in a async function !
// ------------------------------------

// Training the input-type relation (user.testing is the type here)
manager.addDocument(
    'en',
    'im testing you',
    'user.testing'
  ); 

// Response for the type of the input (user.testing is the type here)
manager.addAnswer( 
     'en', 
     'user.testing', 
     'I hope to pass the tests. Feel free to test me often' 
   );

await manager.train();
  • The hard one

You can directly edit the corpus.json to train it. (Prone to more errors)

Template

{
  "intent": "user.testing", // Initializing the type
  "utterances": [ // Training the input-type relation (user.testing is the type here)
    "im testing you",
    "thats a test"
  ],
  "answers": [ // Array of Response for the type of the input (user.testing is the type here)
    "I hope to pass your tests. Feel free to test me often",
    "Test me often.",
  ]
}
  • Extras

You need to send a dynamic URL for a specific type of input. But how ?

Its via using pipelines.md !

Template

First,

you need to train the input-type relation in corpus.json

{
  "intent": "doubt.qna",
  "utterances": [
    "What is wikipedia",
    "What is Ferrari",
    "What is an atom",
    "What is curtain",
    "What is github"
  ]
}

where

  • the doubt.qna is the type of input
  • the utterances are the inputs to define its type

Second,

you need to dynamically respond via pipelines.md

# onIntent(doubt.qna)
// compiler=javascript

{ The JS code }

where

  • the doubt.qna is the type of input
  • the { The JS code } is your Javascript code for dynamic response
You might also like...

Want to *contribute* to *open source*? Participate in **HacktoberFest 2022** *Beginner friendly* *First Timer*

Want to *contribute* to *open source*? Participate in **HacktoberFest 2022** *Beginner friendly* *First Timer*

# HacktoberFest 2022 (No Longer Participating in hacktoberfest) THIS REPO IS NO LONGER CONSIDERED IN HACKTOBERFEST. YOU CAN STILL USE THIS REPOSITORY

Nov 12, 2022

A beginner friendly hacktoberfest2022 repo made lately to accept valid open source contribution.

A beginner friendly hacktoberfest2022 repo made lately to accept valid open source contribution.

Hacktoberfest2022 A hacktoberfest2022 repo made lately to accept valid open source contribution. What is Hacktoberfest? Hacktoberfest is digitalocean’

Oct 20, 2022

Reference for How to Write an Open Source JavaScript Library - https://egghead.io/series/how-to-write-an-open-source-javascript-library

Reference for How to Write an Open Source JavaScript Library The purpose of this document is to serve as a reference for: How to Write an Open Source

Dec 24, 2022

An Open-Source Platform to certify open-source projects.

An Open-Source Platform to certify open-source projects.

OC-Frontend This includes the frontend for Open-Certs. 📜 After seeing so many open-source projects being monetized 💵 without giving any recognition

Oct 23, 2022

This project is for hacktoberfest to encourage new developer and open source developers to contribute to open source and improve skills which require debugging, write testable code, industry standards, problem solving and many more,

This project is for hacktoberfest to encourage new developer and open source developers to contribute to open source and improve skills which require debugging, write testable code, industry standards, problem solving and many more,

🚀 Blog project for hacktoberfest In this repository, you can find issues related to a blog project that is built on top of Next.js. The project is a

Oct 9, 2022

This is a project for open source enthusiast who want to contribute to open source in this hacktoberfest 2022. 💻 🎯🚀

This is a project for open source enthusiast who want to contribute to open source in this hacktoberfest 2022.  💻 🎯🚀

HACKTOBERFEST-2022-GDSC-IET-LUCKNOW Beginner-Hacktoberfest Need Your first pr for hacktoberfest 2k22 ? come on in About Participate in Hacktoberfest b

Oct 29, 2022

A work-in-progress HTML sanitizer that strives for: performance like window.Sanitizer, readiness like DOMPurify, and ability to run in a WebWorker like neither of those.

Amuchina A work-in-progress HTML sanitizer that strives for: performance like window.Sanitizer, readiness like DOMPurify, and ability to run in a WebW

Sep 17, 2022

Send encrypted and decrypted messages with verifiable keys and human readable names.

Send encrypted and decrypted messages with verifiable keys and human readable names.

zooko-msg Encrypt and decrypt messages using AES with a preshared ECDH key generated using keys associated with Handshake names. I noticed that there

Jul 27, 2022

Convert JSON to human readable HTML

json.human.js: Json Formatting for Human Beings A small library to convert a JSON object into a human readable HTML representation that is easy to sty

Dec 3, 2022
Owner
Rahul Marban
I am Rahul Marban✌️ I make 🏙️ 3D Models, 🖥️ Animation, 📜 Node.js packages, 🌍 Web Designer, 🤖 Discord.js Bots, etc. ... Lonely. Always
Rahul Marban
A project that let's you see a list of scores using an API, you can add ypur own and it will be saved on the list forever

Leaderboard This is a project that let's you see a list of scores using an API, you can add ypur own and it will be saved on the list forever! Built W

Joaquín G. L. Z. 4 Mar 4, 2022
💡 Providing easy access to human-friendly Web3 data.

?? Providing easy access to human friendly Web3 data. Unidata Docs The beauty of Web3 is that everyone owns their data, but accessing and displaying o

Natural Selection Labs 263 Dec 29, 2022
⚡ A powerful, human-friendly database library for JavaScript using SQLite.

great.db ⚡ A powerful, human-friendly database library for JavaScript using SQLite. Elegant way to set and retrieve data Queries are executed through

null 54 Nov 29, 2022
Workshop: Crafting Human Friendly CLIs with Node.js Core

$ Crafting Human Friendly CLIs with Node.js Core █ A workshop by Simon Plenderleith & Kevin Cunningham. Getting ready for the workshop 1. Required sof

Simon Plenderleith 13 Dec 26, 2022
Please do not use this tracker to scam anyone! This is free and will be forever free. This tracking will never ask for seed phrases nor private keys. Keep safe!

CryptoBlades Tracker Related modules express - web application framework for node pug - template engine stylus - pre-processor CSS mongoose - nodejs o

null 355 Oct 13, 2022
A chatbot for the Deloitte CBO #under30s channel.

Harold Harold A chatbot for our favourite Slack channel at Deloitte. Explore the docs » View Demo · Report Bug · Request Feature Table of Contents Abo

Jim Kelly 6 Nov 3, 2022
DialogFlow Machine Learning Chatbot

DialogFlow Machine Learning Chatbot Project Overview This repository contains a backend service for an intelligent chatbot that onboards clients, answ

ddayto 10 Jul 21, 2022
This repository contains a fullstack chatbot project based on the ChatGPT `gpt-3.5-turbo` model.

This is a fullstack chatbot created with React, Nodejs, OpenAi, and ChatGPT while developing the following tutorial: How To Build A Chat Bot Applicati

NJOKU SAMSON EBERE 6 May 10, 2023
A Node.js AI chatbot with unlimited context and chat history.

Memory Bot Memory Bot is an AI chatbot built with Node.js to demonstrate unlimited context and chat history for more cost-efficient context-aware conv

Gordon Mickel 6 May 10, 2023