The JS node lets you add a small snippet of JavaScript code to your call flows to do things like process tags and call information. The JS Node supports the ES5 version of JavaScript.
The JavaScript you include in a JS node lets you perform simple calculations and string manipulations. Unlike parsing JS parsing steps in ring tree targets, JS nodes in call flows are not functions, and do not require the code to return anything. Advanced JS functionality is not supported.
Note: The JS node is included in your subscription, but is not available by default. Contact Ringba support to enable JS node for your Ringba account.

-
Node Name: Enter a label to appear at the top of the node on the canvas. This information is also helpful for identifying nodes in the Call Details Report.
Tip: Enter a descriptive name to help you differentiate this dial node from other JS nodes when you are troubleshooting or reviewing the reporting later. - Script: The JS snippet to execute.
JavaScript Snippet Examples
To help you get ideas for how you can use the JS node, see the JS Node Examples article. This article contains several sample snippets for common use cases that you can use to help you get started.
JS Node FAQ
Can I use for and if loops?
Yes, you can use functions like for and if in your JavaScript code in a JS node. However, the JS node does not support returning a value or exiting a loop.
Can I have the JS node dial a target that's in a variable?
Not directly. You can set up a routing plan for each of your targets and then set a tag and filter to the target in your variable.
Can I delete or remove a tag with a JS node?
No, the JS node does not support deleting or removing tags.
What should I do if I need help with configuring and using the JS node?
If you have any questions or need additional help, please reach out to our support team via chat or email at support@ringba.com.