From 36fe289b9d1db82e1cd6aba96582c355cad36788 Mon Sep 17 00:00:00 2001 From: Harshil Date: Fri, 22 Jan 2021 11:11:27 +0530 Subject: [PATCH 1/2] =?UTF-8?q?=E2=9A=A1Add=20FAQ?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../nodes-library/core-nodes/Webhook/README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docs/nodes/nodes-library/core-nodes/Webhook/README.md b/docs/nodes/nodes-library/core-nodes/Webhook/README.md index 9b4a288fb..e0fe6b2f3 100644 --- a/docs/nodes/nodes-library/core-nodes/Webhook/README.md +++ b/docs/nodes/nodes-library/core-nodes/Webhook/README.md @@ -195,6 +195,20 @@ curl --request GET https://your-n8n.url/webhook/path --from 'key=@/path/to/file' ``` Replace `/path/to/file` with the path of the file you want to send. +### How to send a response of type string? +To send a response of type string, follow the steps mentioned below. +1. Select 'Last Node' from the ***Response Mode*** dropdown list. +2. Select 'First Entry JSON' from the ***Response Data*** dropdown list. +3. Click on 'Add Option' and select 'Property Name' from the dropdown list. +4. Enter the name of the property that contains the response. +5. Connect a Set node to the Webhook node. +6. In the Set node, click on 'Add Value' and select 'String'. +7. Enter the name of the property in the ***Name*** field. The name should match the property name from Step 4. +8. Enter the string value in the ***Value*** field. +9. Toggle ***Keep Only Set*** to `true`. +When the Webhook gets called, you will receive the string response you set in the Set node. + + ## Further Reading - [Webhook Node — The Versatile Toolbox 🧰](https://medium.com/n8n-io/webhook-node-the-versatile-toolbox-21cb17cee862) From a63b6ba21e885c89f294f408343d2c1cc4f9c5ea Mon Sep 17 00:00:00 2001 From: Tanay Pant Date: Fri, 22 Jan 2021 10:31:16 +0100 Subject: [PATCH 2/2] :hammer: Minor fix --- docs/nodes/nodes-library/core-nodes/Webhook/README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/nodes/nodes-library/core-nodes/Webhook/README.md b/docs/nodes/nodes-library/core-nodes/Webhook/README.md index e0fe6b2f3..2f839039b 100644 --- a/docs/nodes/nodes-library/core-nodes/Webhook/README.md +++ b/docs/nodes/nodes-library/core-nodes/Webhook/README.md @@ -195,7 +195,7 @@ curl --request GET https://your-n8n.url/webhook/path --from 'key=@/path/to/file' ``` Replace `/path/to/file` with the path of the file you want to send. -### How to send a response of type string? +### How to send a response of type `string`? To send a response of type string, follow the steps mentioned below. 1. Select 'Last Node' from the ***Response Mode*** dropdown list. 2. Select 'First Entry JSON' from the ***Response Data*** dropdown list. @@ -203,10 +203,11 @@ To send a response of type string, follow the steps mentioned below. 4. Enter the name of the property that contains the response. 5. Connect a Set node to the Webhook node. 6. In the Set node, click on 'Add Value' and select 'String'. -7. Enter the name of the property in the ***Name*** field. The name should match the property name from Step 4. +7. Enter the name of the property in the ***Name*** field. The name should match the property name from step 4. 8. Enter the string value in the ***Value*** field. 9. Toggle ***Keep Only Set*** to `true`. -When the Webhook gets called, you will receive the string response you set in the Set node. + +When the Webhook gets called, it will send the string response that was set in the Set node. ## Further Reading