botpress / v12

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

Choice/Slot Skills flow don't inherit flow on-receives #1725

Closed hernanbari closed 1 year ago

hernanbari commented 1 year ago

Describe the bug When creating a choice skill in a flow with on-receives, it ignores the flow on-receives. This is because when the skill code creates the inner flow, it ignores the flow on-receive.

To Reproduce Steps to reproduce the behavior:

  1. Add flow-wide on receive
  2. Create choice skill
  3. Test flow-wide on receive condition
  4. Flow ignores the on receive, continues with skill logic
sebburon commented 1 year ago

A skill is a flow itself, and this means the flow on-receives will not affect the choice-skill This is by design. If you want help finding a workaround for this, feel free to hop on the discussion forum here: https://github.com/botpress/botpress/discussions

Thanks, Seb