Skip to content

yzkee/chatbot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chatbot

A simple, crappy chatbot.

How it works

When the user enters a phrase, the bot will respond with the response it has stored for the user's input. If there is no existing entry for the user's input, a random response from the bot's knowledge base is returned. The bot's knowledge base is updated after every user response. For example, if the bot's previous response was "Hello" and the user entered "Hi" then the bot's knowledge base would map the input "Hello" to "Hi".

The bot's knowledge base is maintained in a json file. The property name is the key, the response is the value.

About

A dumb chatbot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 36.9%
  • JavaScript 34.3%
  • HTML 26.9%
  • CSS 1.9%