Is there a way to setslot from stories

Hi, I have an app that handle real time devices. We handle so many inputs. We need to set different slots values according to slot conditions in stories. Is there a way we can setSlot from the stories after checking the conditions in stories.md file.

While searching we saw that slots can be set in actions.py file. But the issue is that if we have 1000 inputs we need to create 1000 action classes for each.

Please suggest a workaround.

Thanks in advance