How to modularize multi branching sequence

If I remember correctly, slot_was_set does not generate an event by itself, in the sense that it doesn’t actually trigger the slot setting itself when it’s reached. Slot setting is done before that, elsewhere (in custom actions, forms, or automatically during intent classification). slot_was_set is used to unambiguously describe context at any point within story declaration. If a slot has influence_conversation set to true, then story declaration should be interpreted in the following way (take this with a big chunk of salt, as I’m trying to remember my experiments):

  • If up to a particular point within a single YAML story declaration, that slot has not been declared to be set —either by means of slot_was_set or by the entity: optional key that accompanies the intent: key (asumming automatic filling is on)—, then the slot is implicitely asumed to be declared as NOT set, and memoization policies will require that condition when cheking if the current state matches that of the specific story.
  • If the slot WAS declared to be set within a specific YAML story declaration, then memoization policies will, naturally, require that condition when cheking if the current state matches that of the specific story.

This means that for augmented memoization:

  • Declarations of a slot being set —either by means of slot_was_set or by the entity: optional key that accompanies the intent: key (asumming automatic filling is on)— in a specific YAML story, do not carry on to other YAML story declarations that happen to go after the former one during an actual session.
  • The model in general cannot infer the intended state for a particular story from information outside of the explicit YAML story declaration. Not from other stories and not from custom actions.

[edit] as I look to the docs, it seems there’s a new example in the section about creating logical breaks. That may seem to indicate that I’m wrong on what I just said, but I don’t know if that example works because of memoization or because of TED policy (which would be different cases, since memoization is more predictable). Any way, it’s enough to make me doubt myself, so I edited the previous explanation to reflect that it should be taken with a big chunk of salt, intead of a grain.