JavaScript Code Execution
Code Execution extends the capabilities of chatbot, allowing chatbot execute Javascript code in Runtime to perform complex task.
Code Execution with JavaScript
Our chatbot enables the execution of JavaScript code to accomplish complex tasks. It supports external dependencies such as axios, node-fetch, and moment-timezone!
How To Execute Code
-
Set Up JavaScript Component: Go to the
Flow
section in the Chatbot Studio, hover on Advance, and then drag the JavaScript component onto the canvas. -
Write and Execute Code: Input your JavaScript code into the editor and click on the
execute
button to run it. The output will be displayed in theoutput Console
section. -
Debugging and Data Manipulation: Use the
console.log()
function for debugging purposes. The JavaScript code can also be used for various tasks like fetching data from external APIs, performing calculations, and manipulating data. -
Save and Test: Save your flow and test the chatbot to see the code execution in action.
Video Part
🧑💻 Code Showcased in the Video - Weather Search Example: