https://github.com/sandysanthosh/chatbot-js
ChatBot Javascript
https://github.com/sandysanthosh/chatbot-js
chatbot javascript
Last synced: 12 months ago
JSON representation
ChatBot Javascript
- Host: GitHub
- URL: https://github.com/sandysanthosh/chatbot-js
- Owner: sandysanthosh
- Created: 2018-07-14T15:38:45.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2020-05-29T10:57:33.000Z (about 6 years ago)
- Last Synced: 2025-05-31T18:34:27.797Z (about 1 year ago)
- Topics: chatbot, javascript
- Language: JavaScript
- Homepage: https://codepen.io/lilgreenland/pen/pyVvqB
- Size: 11.7 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### CHATBOT using Javascript:
Live Application Demo:
https://sandysanthosh.github.io/Chatbot-JS/

### CHATBOT using Java:
https://github.com/sandysanthosh/Chatbot
https://howtodoinjava.com/ai/java-aiml-chatbot-example/
## AIML:
ARITIFICAL INTELLIGENCE MACHINE LANGUAGE
xml based markup language human interface
aliebot what is chat-bot
A.L.I.C.E
simple to program
easy to understand
highly maintable
### Create a Folder LIB
add AB.jar
### create a folder Src/main/ -> resources -> add Bots Folder
#### Alicebot:
ab.util
ab.*;
artifical linguistic internet company entity
open source project:
### first step:
Ab.jar
## maven pom.xml:
com.google
Ab
0.0.4.3
system
${basedir}/lib/Ab.jar
## AIML FILE:
what is you name
ar
## Chat.java:
package chatbott;
import java.io.File;
import org.alicebot.ab.*;
import org.alicebot.ab.utils.*;
public class chat {
private static final boolean TRACE_MODE=false;
public static void main(String args[])
{
try {
String resourcepath=getpath();
MagicBooleans.trace_mode=TRACE_MODE;
Bot b=new Bot("super",resourcepath);
Chat chatsession=new Chat(b);
String textline="";
while(true)
{
System.out.println("YOU : ");
textline=IOUtils.readInputTextLine();
if(textline==null || textline.length()<1)
{
textline=MagicStrings.null_input;
}
else if(textline.equals("q"))
{
System.exit(0);
}
else if(textline.equals("wq"))
{
b.writeQuit();
System.exit(0);
}
else
{
String request=textline;
String response=chatsession.multisentenceRespond(request);
System.out.println("BOT :"+response);
}
}
}
catch (Exception e){
}
}
private static String getpath()
{
File currd=new File(".");
String path=currd.getAbsolutePath();
String resourcepath=path + File.separator +"src" + File.separator +"main" +File.separator +"resources";
return resourcepath;
}
}
### Run a Program:
run -> chat.java ->check in console