● Custom Nodes

Canvas allows you to create your own algorithms and advanced processes using Custom Nodes.

Overview

In addition to the built-in nodes above, EverWorker supports Custom Nodes that appear as a separate section in the "Add Node" dropdown.

What are Custom Nodes?

Custom Nodes are user-created JavaScript/TypeScript functions that can be saved and reused across workflows. They appear in the dropdown under a "Foundation" section.

Creating Custom Nodes

  1. Access the Custom Node Editor from the menu in the left hand side.
  2. Write your custom JavaScript/TypeScript code
  3. Define input parameters your code expects
  4. Test and save your custom node
  5. It will automatically appear in the "Add Node" dropdown

Using Custom Nodes

When you select a custom node from the dropdown:

  • The node uses methodId: "code_node" internally
  • It automatically gets a codeNodeId parameter pointing to your saved code
  • Additional parameters are generated based on your custom node definition
  • The display name shows your custom node name in green

Example Custom Node

A custom node might look like:

// Custom Node Handler
function processUserData(userData, apiKey) {
    // Your custom logic here
    return {
        processedData: userData.map(user => ({
            ...user,
            processed: true,
            timestamp: new Date()
        })),
        count: userData.length
    };
}

This would appear in the dropdown as a selectable node that you can add to your workflow.