Skip to content
FlexiPedia logo

JavaScript Function

Unlock the full potential of Flexito OmniAI by leveraging Javascript action nodes for advanced flow logic. This feature empowers you to execute complex calculations and logic that go beyond the platform's native capabilities, enhancing your automation processes. Flexito OmniAI us

Flexito OmniAI
Beginnerv4
Read in:

Listen to an audio overview

A short, AI-generated podcast-style summary of this article.

Unlock the full potential of Flexito OmniAI by leveraging Javascript action nodes for advanced flow logic. This feature empowers you to execute complex calculations and logic that go beyond the platform's native capabilities, enhancing your automation processes.

Flexito OmniAI users can now execute sophisticated flow logic using the Javascript action feature. This allows users to write Javascript code to implement complex flows and calculations that are not yet supported natively by Flexito OmniAI.

Choosing the Javascript Action Node

To begin, create an Action node block. Then, click on Advanced Actions and choose the Javascript Function node.

Understanding the Javascript Function Node

A Javascript function operates just like a standard function. Initially, all parameters are parsed into the Javascript block for use. The upper section of the action is designated for input.

Parameter Name: Enter the name of the variable you are parsing.

Parameter Value: Specify the user field you wish to parse into the Javascript function.

Test Value: Provide a test value to facilitate running tests.

The function block supports a variety of Javascript libraries.

These libraries enhance the capabilities of the native function block.

Within the function block, you can write your Javascript code.

Once your code is written, you must return a value, as the function block behaves like a regular function.

You can map the outcomes of your code to update specific user fields.

Note: When working with JSONs, ensure they are parsed first before use in the code.

Note: Native Javascript methods such as console.log, which require a browser, do not function with the Javascript Function node.