How would I layout my slots and stories to have a float/integer slot and then take different paths based on the slot value ie: if (testSlotValue > 0) action1 else if (testSlotValue > 20) action2 else if (testSlotValue > 40) action3 else action4
Hi @ski23. I had the same question previously and was searching for the answer but I did not see something like that in the documentation. I may be wrong.
Currently it is possible to ask if a slot is filled or not, if it is true or false or if it belongs to a predefined category. But in the case of numbers, I have not seen how can you do if (testSlotValue > 0) action1 else if (testSlotValue > 20) action2 else if (testSlotValue > 40) action3 else action4
What I would is to create a custom action for these intents where you need to check the value of a certain slot, capturing it with tracker.slots[“name-of-the-slot”]
Hope it helps.
Yea I feared that this may be the case. This solution does technically work. But in my case it means a ton more back and forth calls from rasa to my server.