What's the best way to extract multiple entities within the same intent and retrieve its numerical value?

So it looks like you’re successfully extracting the entities, your question seems to be more “how can I extract the same entity and store it to different slots in a single intent”, right?

You could use a list slot for this (there’s some discussion here: How to pupulate a slot of type list - #4 by ganeshv) but you’ll probably need to write a little custom code to assign the right qualities to the right order.

Another question to consider is: is this a pattern you’re seeing users try? If it is, then it definitely makes sense to try and address it now even if it takes a bit of finagling. If it’s not & something you think they might do, then I’d skip working on it until you have good evidence that it’s functionality that folks want. (As a just-in-case measure, you could include a rule that detects multiple intents and asks the user to list items in their order one-at-a-time.)

2 Likes