🤖 Chatbot
✏️ Studio
Elements
Code-Execution

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

  1. 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.

  2. 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 the output Console section.

  3. 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.

  4. 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:

javascript