cdimascio / nationalparks_conversation

Chatbots and Watson: Let’s talk about national parks: course source code
https://developer.ibm.com/courses/all-courses/chatbots-and-watson-lets-talk-about-national-parks/
46 stars 74 forks source link

Intents to be imported. #8

Closed jvsriniv closed 6 years ago

jvsriniv commented 6 years ago

Thank you for the developerworks course and this example. I imported the conversation json in the resources folder as my workspace. That created the intents, entities and dialog flow as well as expected. I changed the conversation.js in the server code (commented the env) to get this working with IAM_apikey type of authentication and Watson Assistant.The conversation works perfectly. Please see below:

image

However, there is one issue with the intents as explained below. Please clarify. When I type "Zion" instead of "Mount Zion" like above, the #tellmeabout intent is not detected. i.e; the response only has in #yes and @NationalParks detected. Eventually, in the discoursehandler.js that interprets the response, the default case of the switch case is triggered. But this somehow results in "park" variable as undefined. Please see below.

image

Can you tell me the exact intents that you used for your application's (http://nationalparks.mybluemix.net/) workspace ?

I tried the workspace also directly and please find the intents detected. image

image

cdimascio commented 6 years ago

@jvsriniv Thanks for the issue submission. This sounds like there may be problem with the training samples used for your intents... Here is the workspace.json used in the demo. It contains all intents and training samples. Please have a look at those. you can try pasting the contents of workspace.json into something like https://jsoneditoronline.org/ so that you can more easily navigate the json object.