So i'm creating a chatbot, where users can ask faq's and place orders for items for loans. One bit i'm struggling with is how to pair paramaters and values when a user makes an order for multiple things in one sentence.
So for example:
User wants to order 5 items with varying quanititys:
"I'd like to order 3 phones, 2 cases, 3 power cables, 1 screen protector, and 1 bluetooth speaker".
I'd like it to do this and associate the quantity with the item. so something like:
3 - Phones
2 - Cases
3 - Power cables
1 - Screen protector
1 - Bluetooth speaker
Thanks!