最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - How to integrate AIML chat bot in Web Page - Stack Overflow

programmeradmin1浏览0评论

I have a web page where I just play with HTML, CSS and Javascript. I have decided to create a Chat Bot there.

AIML seems like the way to go, and I already know how to write it.

Question is: After I have my bot.aiml file, what do I do with it? I assume I need some sort of javascript function to interact with it.

I have a web page where I just play with HTML, CSS and Javascript. I have decided to create a Chat Bot there.

AIML seems like the way to go, and I already know how to write it.

Question is: After I have my bot.aiml file, what do I do with it? I assume I need some sort of javascript function to interact with it.

Share Improve this question asked Jan 28, 2013 at 17:58 user1994997user1994997
Add a ment  | 

4 Answers 4

Reset to default 3

If you only have access to HTML, CSS and JavaScript and not to some server-side technology, then you will need a JavaScript AIML interpreter.

A quick search turns up the following:

AIML Interpreter written in node.js

AIMLInterpreter is a module that allows you to parse AIML files and to find the correct answer to a given message.

aiml-high written in node.js. Built on aimlinterpreter.

aiml-high is a module that allows you to parse AIML files and to find the correct answer to a given message.

Surly2

a half-plete node.js AIML interpreter with a bad attitude.

Surly2 is a remake from the ground up of Surly using Node 5 and using as much asynchronicity as possible.

burly

Burly is a fork of Surly2

I too searched for the same but sadly i was not successful of creating my own bot..instead i found a website which will do exactly the same instead of we reinventing the cycle...

  • Create your account over here
    http://www.pandorabots./botmaster/en/new-account
  • After signing in you have option of uploading your own AIML file and use the deafult AIML files and also Custom HTML and much more....

ChatterBean can help you to interpret the AIML files. From Alicebot,

ChatterBean is an AIML interpreter (also known as "Alicebot") written in pure Java.

For integration with Web, host a J2EE application with ChatterBean.

Since you already have understanding of chatbot, you can integrate it to your webpage by using php or j2ee (jsp being the easiest) which would send a request to the bot methods and return response.

发布评论

评论列表(0)

  1. 暂无评论