Questions tagged [rivescript]

RiveScript is a simple scripting language for chatbots with a friendly, easy to learn syntax. It also allows to have scripts defined in Go, Java, JavaScript, Perl or Python.

RiveScript is a simple scripting language for chatbots with a friendly, easy to learn syntax. It also allows to have scripts defined in Go, Java, JavaScript, Perl or Python.

It allows you define the answers of a bot based on a certain human text:

+ hello bot
- Hello, human!

Then when the human says 'hello bot', the bot returns 'Hello, human!'. But also variables, functions, and scripts of other languages can be used.

A tutorial can be found on: https://www.rivescript.com/docs/tutorial.

And to try the scrips you can use:

Or you can download an interpreter for your own language (Go, Java, JavaScript, Perl, Python, C#, PHP): https://www.rivescript.com/interpreters

21 questions
0
votes
2 answers

Problem "Uncaught (in promise) TypeError" RiveScript chatbot in Angular

I'm trying to implement a RiveScript-based chatbot in Angular. The chatbot's working great - I always get the right answer in the console. Displaying the user's input is working great too. However, I always get stuck at one point: Displaying the…
Rim007
  • 3
  • 2
0
votes
0 answers

Share PHP Rivescript object into $_SESSION

I have a issue trying to save an object into session. From my index.php I create the object and store it into session: include_once __DIR__.'/vendor/autoload.php'; use Axiom\Rivescript\Rivescript; $test = new Rivescript(); …
0
votes
1 answer

How to Trigger API with Rivescript?

First of all i'm new to this Rivescript which is used for making chat bots. can any one help me how to trigger Rest API which is already implemented in NodeJS. i heard that some tag will help for this but i'm not getting how to do that. Any…
0
votes
1 answer

Previous (%) command throws error on Rivescript playground test?

I am creating a dating app chat bot on Rivescript, and am trying to use the % previous command to trigger a conditional topic on the subject of arranging a date, however when I try to use the % previous command, I get the attached error message that…
0
votes
0 answers

script is returning object promise instead of returning callback

function setup() {
noCanvas(); let bot = new RiveScript();
//bot.loadFile("brain.rs", brainReady, brainError);
bot.loadFile("brain.rive").then(brainReady).catch(brainError);
function brainReady() {
Ayush Singh
  • 13
  • 1
  • 4
0
votes
0 answers

How do I get an animate.css class to apply to all chat bot replies (written in Rivescript) using jQuery?

I have written a chatbot script using rivescript and I have integrated a chatbox into my site. When the user inputs text, I want the bot's response text to 'fadeInUp' onto the screen. The javascript i've written works for the initial bot reply…
Fox
  • 13
  • 3
1
2