Two slots the same slot type eg. what's the price of apple and 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:

  • ask_price{“fruit”:“apple”}
  • action_search_price

domain: slots: fruit: type: list

class ActionSearchPrice(Action):

def run(…):

fruits = tracker.get_slot(“fruit”)

fruits = [“apple”, “banana”] like this?