NodeRED nodes to load a rivescript and respond
npm install node-red-contrib-rivescript
RiveScript is a simple scripting language for chatbots with a friendly, easy to learn syntax.
A node to load a RiveScript and respond.
npm install node-red-contrib-rivescript
Pass a dialog script into the node using ``msg.script`` such as
// Learn stuff about our users.
+ my name is *
-
-
+ my name is
-
+ my name is
-
-
+ call me *
-
+ i am * years old
-
-
+ i am a (@malenoun)
-
+ i am a (@femalenoun)
-
+ i (am from|live in) *
-
+ my favorite is
-
+ i am single
-
+ i have a girlfriend
-
+ i have a boyfriend
-
+ *
% whats her name
-
+ *
% whats his name
-
+ my (girlfriend|boyfriend) name is
-
+ (what is my name|who am i|do you know my name|do you know who i am){weight=10}
- Your name is
- You told me your name is
- Aren't you
+ (how old am i|do you know how old i am|do you know my age){weight=10}
- You are
- You're
+ am i a (@malenoun) or a (@femalenoun){weight=10}
- You're a
+ am i (@malenoun) or (@femalenoun){weight=10}
- You're a
+ what is my favorite *{weight=10}
- Your favorite
+ who is my (boyfriend|girlfriend|spouse){weight=10}
-
This node uses the rivescript node module https://github.com/aichaos/rivescript-js.