In nlu.md I have intent like this :
## intent:ask_budget
- Lesser than [300](budget)
- Lesser than [600](budget)
- Lesser than [900](budget)
- More than [901](budget)
- More than Rs. [901](budget+1)
- More than Rs [901](budget+1)
For more than x
I want rasa to send x+1
to backend(actions.py file)
Is it possible?
Because right now I have these button options:
-
Lesser than Rs. 300
-
Between Rs. 300 to Rs. 600
-
Between Rs. 600 to Rs. 900
-
More than Rs. 900
For this 900 case it’s creating issue for even more than 900 it will come under the 600-900 case. Because in my backend I have given these conditions.
rangeMin = 0
rangeMax = 999999
if int(budget) <= 300:
rangeMax = 300
elif int(budget) <= 600:
rangeMin = 301
rangeMax = 600
elif int(budget) <= 900:
rangeMin = 601
rangeMax = 900
elif int(budget) > 900:
rangeMin = 901
else:
"""
Default budget
"""
rangeMin = 0
rangeMax = 9999
So whenever a user type more than x I want to get x+1 in the tracker.get_slot('budget')