voiceflow/runtime-client-js

Custom Action - select path (VF-876)

Closed this issue · 4 comments

Hi there,
I have here a Custom Action with 2 paths, and the trace object on the frontend.
Screen Shot 2021-05-03 at 9 54 41 PM
Screen Shot 2021-05-03 at 9 55 23 PM

It seems as though the stopTypes or even stopAll wouldn't actually stop on the action, and instead lead me to the end of the conversation by selecting the default path automatically.
Screen Shot 2021-05-07 at 9 17 50 AM

You guys are doing amazing job, I just turned away from DialogflowCX for this and can't stop but to applaud your ingenuity. Let's make this product better!

Okay, here's an update!
With new update v1.353.0, stopping on types works, though I still can't continue down a path.

Here's how it looks like in action:
Screen Shot 2021-05-09 at 3 52 41 PM

  1. I am receiving the Custom Action block and the trace has the continuation in it (why is that?)
  2. Once I
            .sendRequest({
              type: "default",
              payload: null,
            })

the trace abruptly ends.

Forum thread with more screenshots and details: https://forum.voiceflow.com/t/custom-actions-how-do-they-work/2052

Hey Timothy, sorry to hear you're having issues with the SDK. Our team is currently investigating this issue. If we have any questions or find a solution we'll reply here.

After investigating we found a bug in the logic for default branches which may have been responsible for the issue you encountered. Update to v1.17.1 and try changing .onSpeak to .onResponse. An example of this can be seen here.