Custom Code - Javascript Step
The code step allows you to write and execute custom JavaScript (ES6) code within your assistant. You can access and use external libraries within the step, using the requireFromURL function.
Using assistant variables in your code
The code step automatically allows for all of your assistant variables to be used within the code step. To use variables within the code step, simply type the name of the variable.
Success and Failure paths
The code step has two default paths: Success and Failure. The Success path will be followed if your code is successfully ran, and the Failure path will be followed if your code fails to run.
If your Code Step is within a turn block, it will not have the Failure path available and your assistant will end automatically if your code fails to run.
Comments
0 comments
Article is closed for comments.