aichaos / rivescript-js

A RiveScript interpreter for JavaScript. RiveScript is a scripting language for chatterbots.
https://www.rivescript.com/
MIT License
377 stars 144 forks source link

HUBOT Plugin #133

Closed mariohmol closed 8 years ago

mariohmol commented 8 years ago

Do you think that is possible to make rivescript works integrated with HUBOT?

So it can answer things like a human robot but do tasks like hubot?

bests

kirsle commented 8 years ago

Extremely possible.

mariohmol commented 8 years ago

Cool!! But would be better if rivescript works with AIML?

And I would like to make a robot oriented to questions, so he makes the questions and based in what users answer can ask others. Do you think is possible to make it with rivescript?

Ex:

You had a problem in the morning, afternon or night?

-> The user answers afterno.. then i make another questoin:

Which state are you located?

-> The user answer state

What is your city?

-> The user answer the city

kirsle commented 8 years ago

You can use topics to create a targeted interview system like what you described. My RiveScript chatbot Aiden does this to ask new users some basic questions (name, gender, age). By using topics you can prevent the bot from getting sidetracked until the question has been answered, or the bot gives up (mine tries 3 times to get a valid answer to each question before abandoning the entire interview).

For simpler questions where the bot just wants an answer to one thing, using %Previous works, like

+ i have a problem
- You had a problem in the morning, afternoon or night?

+ [in] [the] morning [*]
% you had a problem in the morning afternoon or night
- What time in the morning?

+ [in] [the] afternoon [*]
% * problem in the morning afternoon *
- What time in the afternoon?

// ...

+ *
% what time in the morning
- Etc...

Not sure what you mean about AIML. RiveScript was inspired by AIML bots so it works somewhat the same, but with a lot of more advanced features (especially the pattern system, with simplified regular expressions). There's a comparison vs. AIML, and there's an aiml2rs converter to translate AIML code into RiveScript (and back again).

kirsle commented 8 years ago

I made a Hubot plugin: hubot-rivescript

mariohmol commented 8 years ago

WOWWWWWW fantastic!! I migrated my script to rivescript.. its really cool!

do you use a plugin in sublime, atom or other IDE to help colloring in .rive files? Do you have a google groups or something where we can discuss and this be searchable on internet?

kirsle commented 8 years ago

Syntax highlighters:

Groups:

mariohmol commented 8 years ago

Perfect!! I will make a hubot integrate with rivescript today.. so we can open issues there if necessary! closing this.. thanks a lot!