How to use list slot

Can I use List Slot to store all the info of tickets, if I wanna collect “price”, “departual station” and “arrival station” from tickets, and the number of tickets is given by the user?

Yes, you can store anything in a list slot. But the problem is knowing which element represents what.


slots:
  ticket:
    type: rasa.shared.core.slots.ListSlot
    initial_value: null
    auto_fill: false
    influence_conversation: false
forms:
  trip_form:
    required_slots:
      ticket:
      - type: from_list

is this correct? or should it be

forms:
  trip_form:
    required_slots:
      ticket:
      - type: from_text

There’s no from_list mapping.

The type key defines how you want the slot to be filled, not the type of slot.

Please read about Slot Types vs Slot Mappings.

ok, thanks