Building Features
1. Create or Extend a Node
bashCopyEdit/backend/nodes/my-custom-node/tsCopyEdit// index.ts
export default {
name: "MyCustomNode",
inputs: ["text"],
outputs: ["result"],
run: async ({ text }) => {
const result = doSomething(text)
return { result }
}
}2. Register Node in Frontend
tsCopyEdit/frontend/flows/nodes/index.ts
import MyCustomNode from './my-custom-node'
export const nodeRegistry = {
...,
'my-custom-node': MyCustomNode
}3. Add a UI Panel for Node Settings
4. Add API or Utility Logic
Last updated