botpress / v12

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

[BUG] Number of tours for extracted variable is replaced with slot source #1259

Closed ierezell closed 3 years ago

ierezell commented 3 years ago

Describe the bug When looking at infos from the debugger pannel, the slot is extracted but the tours number is the slot source instead of an integer.

Slot can also be extracted from previous utterances (as second screenshot)

To Reproduce Use a classic dummy bot with one intent and some slots (here one intent my name is and slot for name)

Utterances for "name" intent
  • My friends call me Sparky.
  • You can call me Brenda
  • My name is Michael
  • My friends call me Simbarashe
  • I'm Stewart
  • Hi, I'm Sheba
  • You can call me Trust
  • It's David
  • I am called Steven
  • Hie, my name is Collin
  • Hello, it's Julia
  • Hie there, I am Peter
  • Sharon is my name

Expected behavior Extraction : "X turns ago" with X being the real tour number not the slot source

Screenshots image

Environment (please complete the following information):

Additional context Seems to appear when the intent is none or not detected, else it works fine.

Debugger UI is in /mnt/Documents/Projets/BotPress/botpress/src/bp/ui-studio/src/web/components/Layout/BottomPanel/Debugger/views/Slots.tsx could be a starting point

ierezell commented 3 years ago

https://github.com/botpress/botpress/pull/4577 Was made to fix the slot turn number problem and was merged.