Please I’m very new to Rasa, infact I only just recently finished watching the masterclass and some tutorials online. Now, I have started building a chatbot which I want to return the “url” of different products category users are interested in. I noticed this is possible if I only include every single product category I think users may want to buy e.g say we have only 3 products then we can add the conversations for these 3 products in the nlu.md and assign an entity to them (for instance “product” entity). so the nlu.md looks like:
- intent: buy_product
examples: |
- i want to order [hand bag](product)
- want to order [cloth](product)
- want to order [laptop](product)
- get me a [laptop](product)
- need to buy [hand bag](product) please
- want to purchase me [cloth](product) pls
However, I need help to understand how we can use this for a case where we have around 500 product categories. Is this possible with rasa, because it will be almost impossible to write all conversations for 500 products category in the nlu.md. What if the categories increase to 1000 or 2000?
I had a look at the one of rasa features called “lookup table” but it seems it can’t work for this case.
@nik202 Not really, the url are in a DB table “shop” which contains fields: “product_id, product_name, product_category, url”. So i was thinking if i can dynamically get the category of a product i can run a query on the DB and fetch the url to display to user. This will be placed in a CustomAction.
Bot: Help, how can I help you in shopping today!
User: I am looking for an “laptop” <— this should allow users pass any product
It’s because the product categories (> 500) is too much so I can’t write all conversations in nlu.md.
@nik202 this suggestion is quite explanatory. so i have to break it down into some flow of conversation. from product, to brand and url
regarding this:
User: Looking for an laptop?
i’m just wondering if i have those many product names (more than 500 names) how will the nlu.yml look like. I’m not sure i should write 500+ plus conversations under the intent in nlu.yml
Thank you for informing about nlu.yml. I’m just noticing now.
@nik202 Thank you very much for your response. It has being of great help. I also found a link to using custom SpaCy model with Rasa. I think this will work for my scenario. I will train the model with all categories of products and use this model in Rasa config.yml
Why do you have to suffer so much if there are already ready-made cases for such cases? It seems that this is just a waste of time, whereas, on the Internet, there are both paid and free templates for your site, including chatbots and everything you will need to work. I can advise you to use out of the sandbox coupons and make your life easier. Now there are just a lot of discounts on their services since it was recently the new year and it is always the season of significant discounts and sales. Write to me if you have any questions; I would be happy to talk to you on this topic and explain my position