Skip to main content

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:

initial_windows
After you load those files a main window with three tabs opens, they are:

  • intents:
    intent_tab
    You can easily add new intents or new nlu examples, update or remove existing intents in this window.

  • responses:
    responses_tab
    Using this window you can do CRUD operations with responses.

  • stories:
    stories_window
    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:
complex_story

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rasa-storyteller-0.1.tar.gz (24.0 kB view details)

Uploaded Source

Built Distribution

rasa_storyteller-0.1-py3-none-any.whl (29.8 kB view details)

Uploaded Python 3

File details

Details for the file rasa-storyteller-0.1.tar.gz.

File metadata

  • Download URL: rasa-storyteller-0.1.tar.gz
  • Upload date:
  • Size: 24.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.1 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6

File hashes

Hashes for rasa-storyteller-0.1.tar.gz
Algorithm Hash digest
SHA256 3af277afc6935d49147a7925ae590fd55ffb06155725ba225974af3fb7f976c8
MD5 6067736ca382411ce726b4ab9df5fc8f
BLAKE2b-256 97b336208d5f48270dc3ccd59c385fb88c02ba2bbc14acfd0eb49383a8da7a62

See more details on using hashes here.

File details

Details for the file rasa_storyteller-0.1-py3-none-any.whl.

File metadata

  • Download URL: rasa_storyteller-0.1-py3-none-any.whl
  • Upload date:
  • Size: 29.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.1 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6

File hashes

Hashes for rasa_storyteller-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c76df30ef413d423bf3dbdd2092bb824925b97e896e1ae48bfe86ffcd621d69a
MD5 9c72e696b57ad1c8f06442edbe272594
BLAKE2b-256 4b291d347d654950b792b04ffb28f343073580974195e49423f22cdfd0e62688

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page