I’m working on a custom n8n node for my company. Right now I have two separate action nodes (authenticate and upload file) that show up when I search for the company name in the node panel. But I want to combine them under one main node, similar to how the S3 node works.
Currently, when I select either action, I get a dropdown to choose between them. What I’m aiming for is a single company node with multiple actions inside it, rather than separate nodes for each action.
I’ve tried setting up my main.node.ts file with an Operation property that includes both actions, and I’ve listed both action files in my package.json. But this approach still results in separate core nodes.
Here’s a simplified version of my current setup:
export class CompanyNode implements INodeType {
description: INodeTypeDescription = {
displayName: 'CompanyActions',
name: 'companyActions',
properties: [
{
displayName: 'Action',
name: 'action',
type: 'options',
options: [
{ name: 'Authenticate', value: 'auth' },
{ name: 'Upload File', value: 'upload' }
],
default: 'auth'
},
// Other properties...
]
};
}
Any ideas on how to structure this correctly to achieve a single main node with multiple actions?