diff --git a/packages/nodes-base/nodes/Webhook.node.ts b/packages/nodes-base/nodes/Webhook.node.ts index 8d819d37b5..31036a55b1 100644 --- a/packages/nodes-base/nodes/Webhook.node.ts +++ b/packages/nodes-base/nodes/Webhook.node.ts @@ -250,6 +250,21 @@ export class Webhook implements INodeType { the received file. If the data gets received via "Form-Data Multipart"
it will be the prefix and a number starting with 0 will be attached to it.`, }, + { + displayName: 'Response Data', + name: 'responseData', + type: 'string', + displayOptions: { + show: { + '/responseMode': [ + 'onReceived', + ], + }, + }, + default: '', + placeholder: 'success', + description: 'Custom response data to send.', + }, { displayName: 'Response Content-Type', name: 'responseContentType', @@ -480,7 +495,13 @@ export class Webhook implements INodeType { }; } + let webhookResponse: string | undefined; + if (options.responseData) { + webhookResponse = options.responseData as string; + } + return { + webhookResponse, workflowData: [ [ response,