From 40d230a73a489dda5f2a344669fe97c465af7b5d Mon Sep 17 00:00:00 2001 From: Baptiste Arnaud Date: Fri, 6 Jan 2023 10:41:17 +0100 Subject: [PATCH] :pencil: Add custom body with variable example --- apps/docs/docs/editor/blocks/integrations/webhook.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/apps/docs/docs/editor/blocks/integrations/webhook.md b/apps/docs/docs/editor/blocks/integrations/webhook.md index 0f663a7d3..154c27ba9 100644 --- a/apps/docs/docs/editor/blocks/integrations/webhook.md +++ b/apps/docs/docs/editor/blocks/integrations/webhook.md @@ -21,6 +21,17 @@ This gets more technical as you'll need to know more about HTTP request paramete Lots of services offer an API. They also, most likely have an API documentation. Depending on the parameters you are giving the Webhook block, it should return different info from the 3rd party service. +## Custom body + +You can set a custom body with your collected variables. Here is a working example: + +```json +{ + "name": "{{Name}}", + "email": "{{Email}}" +} +``` + ### Example: fetch movie information Let's create a bot that ask for a movie and retrieve its informations (By sending an HTTP request to the [OMDB API](http://www.omdbapi.com/)).