Skip to content

Code Block

Execute custom JavaScript or TypeScript code within your workflow.

Features

  • Full TypeScript support
  • Access to workflow context
  • Return values to use in other blocks

Example

typescript
// Process the input
const result = input.split(',').map(s => s.trim());
return result.length;

Available APIs

  • fetch - Make HTTP requests
  • console - Debug logging
  • JSON - Parse and stringify

AI Workflow Editor