● 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
- Access the Custom Node Editor from the menu in the left hand side.
- Write your custom JavaScript/TypeScript code
- Define input parameters your code expects
- Test and save your custom node
- 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.
Updated about 12 hours ago