Slot type list changes to text and text changes to list based on input. For example if I create a text slot and I extract 2 entities, slot is filled as list → slot: [‘x’, ‘y’]. Also when I create list slot and extract 1 entity, slot is filled as text → slot: x. I want it to be list even if I extract 1 entity, so I can process it in my custom action without checking the type.
What is the point defining text and list slots if their type is decided based on input?
Also is there a way to append to a list slot if it is not null, instead of overriding value
thanks for raising this, I’m just looking at the code here and it definitely looks like the behaviour is determined by the slot’s type and not by the type of the extracted entity. Can you please share a minimal example?
- intent: bot_challenge
- are you a bot?
- are you a human?
- am I talking to a bot?
- am I talking to a human?
- intent: pizza
- I want a [pepperoni](toppings) and [mushroom](toppings) pizza
- I want a [pepperoni](toppings) pizza
- lookup: toppings