Value of a text within a story / Use text slot with checkpoints

Hi,

does the value i give to a text slot within my story file matter? F.e.

  • inform{“textslot”: “Hello”}
    • slot{“textslot”: “hello”}
    • action_do_something

vs

  • inform{“textslot”: “Hola”}
    • slot{“textslot”: “Hola”}
    • action_do_something

Are these stories identical?

Also I wonder how I specify text slots using stories.

Is the following ok:

*greet
> checkpoint_greeted
 
> checkpoint_greeted
    - slot{"textslot": "something"}
    - utter_something

or should it be

*greet
> checkpoint_greeted
 
> checkpoint_greeted{"textslot": "something"}
    - slot{"textslot": "something"}
    - utter_something

Thanks in advance :slight_smile:

The value there doesn’t matter. Slots of type text just look for a value been set to them or not. It does not matter what’s the actual value that is set for them.

1 Like

Thanks for this answer :slight_smile:

Can you also help me out with the Checkpoint-usage? The first example seems to work, but I am not sure if this is just because of luck with the TED-Policy

The difference between two is that the second story checks if the value of “textslot” set by the user utterance and then sets the value to “something”, whereas in the first story, irrespective of the user utterance you are setting the slot value to “something”.