Choose A Function Scope
Account functions appear in the special Account Functions folder. Local and account functions can each use nested folders. Drag functions and folders to reorganize them within the same scope.
Choose the scope when creating or importing the function. Functions and folders can move within their current scope, but a local function cannot be moved into Account Functions, and an account function cannot be moved into a local graph. To change scope, create or import a separate function in the intended location and update callers deliberately.
Choose Pure Or Impure
A pure function can be evaluated whenever another node needs its output. An impure function has execution connections that determine when it runs.
Create A Function
1
Open Build
In the graph editor, select Build, then find Functions.
2
Choose the destination
Use the add menu at the function root or inside a folder. Choose a local or account function.
3
Describe the responsibility
Give the function a focused name and description. Choose Pure or Impure, and optionally assign a folder.
4
Define its boundary
Add named inputs and outputs in the function’s Build tab. Set each value’s type, structure, nullability, and input default where appropriate.
5
Build between Entry and Return
Connect input values from Function Entry through the function’s nodes, then connect results to Function Return. Impure functions also connect the execution path.
6
Save and test
Save the function version, then use Tests to verify inputs, outputs, and any expected effects.
Call A Function
From the main graph or another compatible function:- Find the function under Build > Functions.
- Insert its call on the canvas.
- Connect the required inputs and use its outputs.
- For an impure function, also connect its execution input and Then output.
Pass Values Into A Function
Local and account functions follow the same boundary rule: they do not automatically read variables from the root graph or calling function. Variables created inside a function belong to that function. When a function needs a caller’s variable:- Add a function input with the same type and structure.
- Insert Get Variable in the calling graph.
- Connect its
valueoutput to the matching function-call input.
null, but does not make the input optional. A nullable input with no default still needs a connection at every call site.
Change A Function Safely
Changing an input, output, or mode can affect call sites and saved tests. The editor shows the expected impact before applying a breaking boundary change.- Add explicit value defaults when callers may safely omit an input.
- Keep output meanings stable across versions.
- Create a new version before a major change.
- Run the function tests and every parent graph test after upgrading calls.
- Archive an obsolete function to remove it from new-call menus. Existing saved calls keep their pinned behavior.