SlotSet() is not working?

hey guys, I have created a slot called “TOTAL”. I try to set a value to “TOTAL” using a custom action as shown below: slotset

However, run the shell with debug mode, the slot “TOTAL” remains unchanged: slot

I got no errors, no exceptions. Everything is working, but i just can not set a value to the slot"TOTAL"!

Hi @Elliot

What’s the output of rasa --version for you?

Did you set any other slots with custom actions, and did that work?

Hey Johannes, thanks for your reply! I tried to set other slots with SlotSet() function and it worked!!! However, I do not understand the reason behind this. I have created forms for other 4 slots(food, food_num, drinks, drinks_num) in order to take input from uesrs. I only created a slot for “TOTAL” because I do not need users to input anything for slot “TOTAL”. I will try to create a form for “TOTAL” to see if SlotSet() works.

Hey Johannes, i found the problem. It was actually so embarrassing because i did not know i should re-run action server every time I modify actions.py file. Now the slot “TOTAL” is set successfully. Once again, thanks for your reply!

1 Like