Skip to main content

Code Node

Can run custom code in a sandbox.

Properties

LabelPropertyTypeDescriptionDefault ValueIs Required
LanguageLanguagebotdojo/types/optionsThe language of the code to run. TypeScript or JavaScript.TypeScript,JavaScript
Allow CallbacksAllow Callbacksbotdojo/types/booleanAllow the Code Node to access session state. This is required if you want to use session state in your code.false
Allow Environment VariablesAllow Environment Variablesbotdojo/types/booleanAllow the Code Node to access environment variables via the context.env object.false

Output

LabelPropertyTypeDescriptionDefault Value
Outputoutputbotdojo/types/dataOutputnull