Remember previous conversations

Hi, How to make rasa chatbot remember previous conversations for example if I am ordering the icecream chatbot should ask which flavor and i want to order one more ice cream it should give the same flavor which I ordered 1 st and should not ask about the flavour

Just add those conversations you just describe to the stories. The bot will learn to not ask for the flavor if the slot is already set.

You can save the ice cream flavors as a entity/slot. Rasa will remember the slot value mentioned in the conversation. You can get slot values using “tracker.get_slot(’<slot_name>’)”.

Remember to make an entity and the slot with the same name. i.e: ‘flavor’

Have you solved this problem, I also have a demand。Thank you