简体   繁体   中英

IBM Watson Assistant: How should I group the entities?

I am creating a chatbot to ask some certain questions about the business of a list of stores of many companies in the countries as in the image. I am struggling with the fact that how should I group the entities for this case:

When the user inputs: Wonder Group, I want to check whether it has any store in California or not. -> If Yes, then I will ask for the name of the store -> Check if the store is available in California -> If yes, then answer: OK, Store A, // If no, then say "Sorry, there is no store under this name in California!"

-> If No, then answer "Sorry, we do not have information as you require.".

Also, should I use the multiple conditioned responses or slot here?

I have tried many ways, but it does not work.

Entity type

As mentioned in the comments, more detail will help. However, just going by your image, it seems you may wish to have a number of entity groups. Locations (Florida, Texas, etc) and the store groups (Wonder group, snowman etc) would be a good start. Then depending on the number of stores in each location, you may wish to hard code these, or use an external database with the stores, which could be accessed via an external API call from within assistant.
This only defines creating entities via the 'Synonym entity' method, you may wish instead to train your assistant to recognise your entities via the 'Annotation-based method', see the Assistant documentation for more info.

Using contextual entities is typically best for situations where all entity values are not known to the developer. In your case, I'm assuming you will know all possible values. As Timd said, the Synonym approach may be best for this use case.

Just FYI, to practice annotating, visit https://www.ibm.com/cloud/architecture/demo/try-watson-assistant-contextual-entities/

For one of my projects, I have an annotated entity called benefitName. benefitName represents all medical procedures such as Physical Therapy, Gallbladder Removal, Heart Bypass Surgery, etc. I determined it would not be possible to find a list of all the procedures my bot may see, and that is why I used an annotated approach.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM