How to access a list of all current slot values from custom Action

Hey,

I am trying to access a list of all current slot values from custom Action in Python, for the previous utterance. Then I want to compare with current utterance and replace values. How can this be done?

Create an action that does this:

            msg = "Slots:\n"
            for k, v in tracker.slots.items():
                msg += f" {k} | {v}\n"
            dispatcher.utter_message(msg)
1 Like