Node Resolution
Good to know: If you use TypeScript workflows with direct function refs (
run: chatNode), you can usually skip this page.
run in each node can be resolved in three ways.
1. Direct function (TypeScript workflows)
This is the cleanest option when your workflows are TypeScript modules.
2. Module path string (YAML/JSON or TS)
Resolution behavior (from resolveNodeHandler):
- Path-like strings are dynamically imported
- If
#exportNameis present, that named export must be a function - If absent, runtime tries:
defaultexport as function- exactly one named function export
3. Registry key string
If the run value is not path-like, runtime treats it as a registry id.
Helper APIs:
registerNodegetRegisteredNodelistRegisteredNodesclearRegisteredNodes