# Function

> Call a coded function, deterministic logic written in Python, JavaScript, or TypeScript, as a step in a workflow.

:::note
Function is in Preview.
:::

**Function** calls a coded function: a unit of logic that a developer writes in Python, JavaScript, or TypeScript and deploys to UiPath. Use it for rules, calculations, or data handling that's easier to write as code than as nodes.

## Add a function

1. Select **Add node > Function**.
2. Pick the function:
   - **In this solution** lists functions in the same solution as the workflow.
   - **Published** lists functions deployed in your organization.

[About Functions](/functions/automation-cloud/latest/user-guide/about-functions) describes how to build and deploy functions.

## Next steps

- [Script](node-script.md): write a short piece of JavaScript directly in the workflow.
- [API Workflow](node-api-workflow.md): call an API workflow instead.
