Slot bool type default value

Hi!

Is it possible to define bool slot with default value? For some reason, if I use the code below, my slot does not change during custom action. After I return slot by the following expression in custom action - return [SlotSet(“initial_value”, False)], my slot is still the same True value…

first_time_greet:

influence_conversation: true

type: bool

initial_value: True

mappings:

- type: custom

I would look at the debug log to watch how the slot value changes. Make sure it starts as True and watch for unexpected changes from there.

The problem is : the slot value does not change! It keeps initial_value all the time, even when it supposed to execute code return [SlotSet(“initial_value”, False)]

Hi @risgrot,

Try this:

return [SlotSet(“first_time_greet”, False)]

The first argument of SlotSet is the slot name, not “initial_value”.