liveBook · Manning

Story

As explained in Natural Language Processing in Action, Second Edition

A story is a Rasa dialogue specification that represents a possible sequence of user intents and bot actions.

A story is a Rasa dialogue specification: a YAML sequence that chains user intents and bot actions into a possible multistep conversation. Actions may return prepared utterances or run Python code that accesses databases and web APIs. section 12.5.1

Build a story by arranging:

  • User intents, such as greet, parent, and agree. section 12.5.1
  • Bot actions, such as utter_welcome, utter_ask_permission, and utter_permission_granted. section 12.5.1
  • A project data layout where stories work alongside NLU training data and response definitions. section 12.5.1

Parent onboarding

A story can model greeting, welcoming the user, identifying a parent, requesting permission, recording agreement, and inviting the child to begin. The resulting sequence preprograms one plausible path without requiring a drag-and-drop dialogue tree.

How Natural Language Processing in Action, Second Edition covers it

How deep it goes
Explains story structure through YAML project files and a complete onboarding sequence, without detailing dialogue-policy internals.
Examples
Uses a math-tutor chatbot’s parent-permission onboarding dialogue as its concrete story example.
What it assumes
Assumes basic chatbot concepts such as intents and actions while introducing their use in Rasa stories.
What you can do after
Build it from scratch by encoding plausible Rasa dialogue paths as intent-and-action sequences in YAML.
How it connects
Connects user intents and bot actions with NLU training data, response definitions, YAML files, and dialogue engines.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Natural Language Processing in Action, Second Edition. The section links point to the parts of the book it draws on.