> For the complete documentation index, see [llms.txt](https://docs.flexy.bot/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.flexy.bot/modules/scripting/steps/execute-function.md).

# Execute Function

**Introduction**

The "Execute Function" step allows you to run a predefined function within your automation, providing inputs and managing the execution mode. This step is useful for reusing logic encapsulated in functions and integrating them into your automation workflows.

**Configuration**

* **Function**: The function to be executed. This parameter is required and defines the logic that will be run.
* **Mode**: The execution mode of the function, which determines how the function runs. This parameter is required.
* **Inputs**: The inputs required by the function. These are dynamically generated based on the selected function's input parameters (if there are any).

**Outputs**

* **Output**: The result returned by the function after execution (if the function returns an output). This output can be used in subsequent steps or actions.
