Reference

n8nRunNode

Trigger an n8n workflow node via webhook and return the response.
mindstudio.n8nRunNode({ method, authentication, user, password, webhookUrl, input }) → Result

Trigger an n8n workflow node via webhook and return the response.

Parameters
method
string
RequiredHTTP method to use (GET or POST)
authentication
string
RequiredAuthentication type for the webhook request
nonebasicstring
user
string
RequiredUsername for Basic authentication
password
string
RequiredPassword for Basic authentication
webhookUrl
string
Requiredn8n webhook URL for the workflow node
input
object
RequiredKey-value pairs sent as query params (GET) or JSON body (POST)
Call from a method
import { mindstudio } from '@mindstudio-ai/agent';

const result = await mindstudio.n8nRunNode({
  method: /* ... */,
  authentication: /* ... */,
  user: /* ... */,
  password: /* ... */,
  webhookUrl: /* ... */,
  input: /* ... */
});