Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 1.19 KB

File metadata and controls

31 lines (21 loc) · 1.19 KB

Rivescript Chatbot

This plugin is a question solver that answers with a Rivescript chatbot. It uses the Alice chatbot brain to answer phrases that no other skill handles, so almost every input gets some response. Answers can be casual and a bit sassy.

Examples

  • "Do you like ice cream"
  • "Do you like dogs"
  • "I have a jump rope"

Usage

The plugin exposes a spoken-answers API with a Rivescript backend.

from ovos_solver_rivescript_plugin import RivescriptSolver

d = RivescriptSolver()
sentence = d.spoken_answer("hello")
print(sentence)
# Hi there!

sentence = d.spoken_answer("Do you like ice cream", {"lang": "pt-pt"})
print(sentence)
# O que queres mesmo saber?

Related projects