botpress / v12

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

Slot tagging not working on user input for BMI calculation #1687

Open pradeepkhtc opened 1 year ago

pradeepkhtc commented 1 year ago

Describe the bug I doing the BMI bot , I faced an issue when adding the slot tagging of height . i.e , user types , my height is 5.5 ft , but its captured the data in slots and asking the height units. Please not 5.5 is a height value and ft is a height unit.

  1. See error TypeError: Cannot read property 'height_unit' of undefined at eval (eval at runCode (C:\snapshot\botpress\packages\bp\dist\core\dialog\instruction\strategy.js), :3:27) at TransitionStrategy.runCode (C:\snapshot\botpress\packages\bp\dist\core\dialog\instruction\strategy.js) at TransitionStrategy.processInstruction (C:\snapshot\botpress\packages\bp\dist\core\dialog\instruction\strategy.js) at InstructionProcessor.process (C:\snapshot\botpress\packages\bp\dist\core\dialog\instruction\processor.js)

Flow for BMI - image

Expected behavior image

Screenshots If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

Additional context Add any other context about the problem here.

damiendidi commented 1 year ago

hi, did you manage to solve the problem ?