Reset slot value after a certain the number of UserMessage

I want to reset value of a slot. I know that we can use ReminderScheduled to reset its value after a certain amount of time. Is it possible to reset its value after a certain number of UserMessage? (For example, forget the value of this slot after receiving ten messages from the user.)

@mac_71128 Are you using custom actions anywhere?

@dakshvar22 Yes. I’m using custom actions.

@mac_71128 Then you can query the tracker for number of messages and based on that reset the value of slot.