Structure of the node base file#
The node base file follows this basic structure:
- Add import statements.
- Create a class for the node.
- Within the node class, create a
description
object, which defines the node.
A programmatic-style node also has an execute()
method, which reads incoming data and parameters, then builds a request. The declarative style handles this using the routing
key in the properties
object, within descriptions
.
Outline structure for a declarative-style node#
This code snippet gives an outline of the node structure.
1 2 3 4 5 6 7 8 9 10 |
|
Outline structure for a programmatic-style node#
This code snippet gives an outline of the node structure.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
|
Refer to Standard parameters for information on parameters available to all node types. Refer to Programmatic-style parameters and Programmatic-style execute method for more information on working with programmatic-style nodes.
此页面是否
微信
🚀 与作者交流
关注公众号

n8n实战笔记
📚 教程 💡 案例 🔧 技巧
📚 教程 💡 案例 🔧 技巧
添加微信

1对1 专业指导
⚡ 快答 🎯 定制 🚀 支持
⚡ 快答 🎯 定制 🚀 支持