the fruit slots customer: what’s the price of apple and banana?
class ActionSearchPrice(Action): def run(…): fruit = tracker.get_slot(“fruit”)
the “fruit” will be one of apple or banana, or a list like [apple, banana]?
the fruit slots customer: what’s the price of apple and banana?
class ActionSearchPrice(Action): def run(…): fruit = tracker.get_slot(“fruit”)
the “fruit” will be one of apple or banana, or a list like [apple, banana]?
you can use a List Slot for this, see Slots
Customer: what’s the price of apple and banana?
stories:
domain: slots: fruit: type: list
class ActionSearchPrice(Action):
def run(…):
fruits = tracker.get_slot(“fruit”)
fruits = [“apple”, “banana”] like this?