In todays tech-driven landscape, it is become increasingly common for applications to feature a dedicated assistant or helper. Recognizing this trend, I have crafted a user-friendly chatbot package designed to seamlessly integrate chat functionality into your projects.
To effortlessly incorporate the chatbot into your project, follow these simple steps:
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/pvscreations/chatbot@v1.0.2/lib/chat.css">
<script src="https://cdn.jsdelivr.net/gh/pvscreations/chatbot@v1.0.2/lib/chat.js"></script>
For a local implementation, download the required files from the following links:
var content={
"attendance issues": {
"teacher": "database is down currently",
"app": {
"hanging": "requirements are 4gb",
"report issues": {
"on service": "database is down currently",
"on help": "database is down currently"
}
},
"other": "database is down currently"
},
"want to know my attendance?": {
"yearly": "database is down currently",
"monthly": "database is down currently",
"todays": "database is down currently",
"other": "database is down currently"
},
"raise complaint?": {
"on faculty": "database is down currently",
"on ams_app": "database is down currently",
"other": "database is down currently"
},
"want to give feedback on app?": "database is down currently",
};
const assistant=new Chatbot(
{
content:content,
container:document.getElementById("chat"),
objectName:"assistant" //It is the object name you are creating here it is assistant you was creating line60
},
{
welcomeMsg:"hi i am your attendance assistant",
sendOfMsg:"goodbye",
redirectLink:"realtimechat.html"
}
);
/**
* Here we call the chatbot to come into effect
*/
assistant.initialise();