---
title: " Define Function"
url: "https://docs.robotiq.ai/en/article/define-function"
language: "en"
last_updated: "2025-12-25T10:43:23.765Z"
---

#  Define Function

The Define Function step lets you create local parameters for a Function. These parameters are only available within that specific Function in your process. Use this step to manage data flow inside your custom Functions.

## How to Use Define Function

Use the Define Function step to set up input and output parameters for your custom Functions.

### Step 1: Add the Define Function Step

1.  Drag and drop the **Define Function** step into your process workflow.
2.  (Optional) In the **Step name** field, enter a custom name for this step. This helps you identify it in your process.

### Step 2: Add Parameters

1.  Select the **Define Function** step in your workflow.
2.  Add the input and output parameters your Function needs.
3.  Set up each parameter based on its role in the Function.

## Parameters Explained

**Step name** (Optional)

-   A custom name for the process step.
-   Example: "Calculate\_Total\_Price\_Function"
-   Use this to give the step a clear, descriptive label in your process.

**Input/Output Parameters** (Required)

-   These are the specific data points your Function will receive (input) or return (output).
-   The exact parameters depend on what your Function does.
-   Add as many input and output parameters as your Function needs to work correctly.

## Related Articles

-   [Functions](https://docs.robotiq.ai/en/article/functions): Learn more about creating and using Functions in Robotiq.ai.
-   [Execute Function Step](https://docs.robotiq.ai/en/article/execute-function-step): Understand how to run your predefined Functions within a process.
-   [Define Variable Step](https://docs.robotiq.ai/en/article/define-variable-step): Learn how to declare and use variables in your processes.

## Need Help?

Can't find what you're looking for? Join the [Robotiq Community](https://community.robotiq.ai/home/) to get help from other users and the Robotiq team.

![](https://cdn-assets.productfruits.com/fc117a30-e1b9-4e6c-88ec-e568416854c5)
