@m.vielkind thank you so much. I have managed to solve the problem by adding a new custom action: class ActionSaveCategoryToList_en(Action):
def name(self):
return 'action_save_category_to_list_en'
def run(self, dispatcher, tracker, domain):
chosen_category_list_en = tracker.get_slot('chosen_restaurant_menu_category_list_en')
##print(chosen_category_list_en) ####### Check to see if code prints correctly #######
current_chosen_category_en = tracker.get_slot('chosen_restaurant_menu_category_en')
##print(current_chosen_category_en) ####### Check to see if code prints correctly #######
chosen_category_list_en.append(current_chosen_category_en)
##print(chosen_category_list_en) ####### Check to see if code prints correctly #######
return [SlotSet("chosen_restaurant_menu_category_list_en", chosen_category_list_en)]
I just call it in my story after setting the slots and it works perfectly. I just wanted to make sure that there isn’t another way to write less code but since it’s not broken and all. Again thank you very much you’ve helped a lot. Sorry tI just have one last question and it happened more than once, when it comes to adding a number like quantity or phone number and I use the shell debugger to check it does not fill the slot, have you ever come accross a problem like this?