2
0

📝 Add custom body with variable example

This commit is contained in:
Baptiste Arnaud
2023-01-06 10:41:17 +01:00
parent 7174ef0f81
commit 40d230a73a

View File

@ -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. 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 ### 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/)). 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/)).