A simple GUI utility to create complex stories for RASA chatbots easily.
Project description
RASA storyteller
When working with wonderful library Rasa Open Source it is rather difficult to create complex stories, especially for people who are not familiar with YAML / Markdown.
This project is a small tool, which helps to make complex stories with lots of negative paths faster.
The goal of this project is to help non-technical stuff edit bot's behaviour easily.
Installation
Install package using pip: pip install rasa-storyteller
and launch rasa-storyteller
How to use it
Let's start a new RASA project in a usual way:
$ rasa init
Welcome to Rasa! рџ¤–
To get started quickly, an initial project will be created.
If you need some help, check out the documentation at https://rasa.com/docs/rasa.
Now let's start! 👇🏽
? Please enter a path where the project will be created [default: current directory] .
Created project directory at '/home/user/rasa-project'.
Finished creating project structure.
? Do you want to train an initial model? рџ’ЄрџЏЅ No
No problem рџ‘ЌрџЏј. You can also train a model later by going to the project directory and running 'rasa train'.
After that we should go to the directory with our new project and find three files: domain.yml
, data/nlu.md
, stories.md
.
Launch our utility and locate those files in the start window:
After you load those files a main window with three tabs opens, they are:
-
intents:
You can easily add new intents or new nlu examples, update or remove existing intents in this window. -
responses:
Using this window you can do CRUD operations with responses. -
stories:
The most interesting tab: here stories are presented as trees. You can link your intents with answers or even create new intent/response in-place using right button menu.
When you have created some story with complex logic and multiple branchings like this:
Just press "export" button at the bottom of the window and domain.yml
, data/nlu.md
, stories.md
will be generated in <your_working_directory>/export/
.
They will be suffixed with current timestamp so you can push "export" multiple times while editing to store different versions.
The stories generated from image above will look like this:
## greet-mood_great
* greet
- utter_greet
* mood_great
- utter_happy
## greet-mood_unhappy-affirm
* greet
- utter_greet
* mood_unhappy
- utter_cheer_up
- utter_did_that_help
* affirm
- utter_happy
## greet-mood_unhappy-deny
* greet
- utter_greet
* mood_unhappy
- utter_cheer_up
- utter_did_that_help
* deny
- utter_goodbye
## greet-mood_neutral-deny
* greet
- utter_greet
* mood_neutral
- utter_ask_cheer_up
* deny
- utter_goodbye
## greet-mood_neutral-affirm-affirm
* greet
- utter_greet
* mood_neutral
- utter_ask_cheer_up
* affirm
- utter_cheer_up
- utter_did_that_help
* affirm
- utter_happy
## greet-mood_neutral-affirm-deny
* greet
- utter_greet
* mood_neutral
- utter_ask_cheer_up
* affirm
- utter_cheer_up
- utter_did_that_help
* deny
- utter_goodbye
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file rasa-storyteller-0.2.tar.gz
.
File metadata
- Download URL: rasa-storyteller-0.2.tar.gz
- Upload date:
- Size: 26.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.8.0 tqdm/4.47.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9592e953025dc3554a1c013ca013a2201660910655457c7dcd54b0c510c2681c |
|
MD5 | 653d0521c0292b2a8e4bfb277011e62e |
|
BLAKE2b-256 | da7370743f383b03da017193704b3fdc1e6dab71a5e8c809c923f3fc7a21622b |