diff --git a/docs/nodes/nodes-library/core-nodes/Webhook/README.md b/docs/nodes/nodes-library/core-nodes/Webhook/README.md index 9b4a288fb..2f839039b 100644 --- a/docs/nodes/nodes-library/core-nodes/Webhook/README.md +++ b/docs/nodes/nodes-library/core-nodes/Webhook/README.md @@ -195,6 +195,21 @@ 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, it will send the string response that was set in the Set node. + + ## Further Reading - [Webhook Node — The Versatile Toolbox 🧰](https://medium.com/n8n-io/webhook-node-the-versatile-toolbox-21cb17cee862)