botpress / v12

Botpress OSS – v12
https://v12.botpress.com
GNU Affero General Public License v3.0
78 stars 90 forks source link

skill choice not working properly #439

Closed pankajdata4u closed 6 years ago

pankajdata4u commented 6 years ago

Make sure these checkboxes are checked before raising an issue, thank you!

Please also fill in these fields:


Botpress version: 10.23.0

Channels: web

I am trying to create skill choice and link it to NLU.

  1. Created skill and choices with below details message : test values : intent:
  2. When i ask bot for intent name it goes to the chosen node and give options of skills choice but when i click on choice "nothing happens" and Bot take me to main. image

Please help or let me know what is the issue.

spacepirate0001 commented 6 years ago

This is not an issue! I think you are using the choice skill incorrectly. The purpose of a choice skill is to present the user with options to choose one from. Their choice can be captured and stored or it can direct the flow to the next step based on raw conditions you set and the transition you choose.

Are you trying to pass the value of your choice to be classified with intent? If this is the case then the value of the choice can be found in state['skill-choice-ret']. You can then pass it to a node were intent classification takes place.

I don't believe passing intent as a choice in choice-skill will not trigger intent classification.

pankajdata4u commented 6 years ago

thanks @Haythamamin , i had put it in wrong way. Now I am able to use skills perfectly.