节点代码文件#
codex文件包含有关您节点的元数据。该文件是位于节点根目录下的JSON文件。例如,n8n入门中的HttpBin.node.json文件。
codex文件名必须与节点基础文件名匹配。例如,给定一个名为MyNode.node.ts的节点基础文件,codex应命名为MyNode.node.json。
| 参数 | 描述 |
|---|---|
node |
Includes the node name. Must start with n8n-nodes-base.. For example, n8n-nodes-base.openweatherapi. |
nodeVersion |
The node version. This should have the same value as the version parameter in your main node file. For example, "1.0". |
codexVersion |
The codex file version. The current version is "1.0". |
categories |
The settings in the categories array determine which category n8n adds your node to in the GUI. See Node categories for more information. |
resources |
The resources object contains links to your node documentation. n8n automatically adds help links to credentials and nodes in the GUI. |
节点分类#
您可以在节点配置JSON中定义一个或多个类别。这有助于n8n将节点放置在节点面板的正确类别中。
请从以下类别中选择:
- 数据与存储
- 财务与会计
- 营销与内容
- 生产力
- 其他
- 销售
- 开发
- 分析
- 通信
- 实用工具
必须匹配语法。例如,Data & Storage而不是data and storage。