SAMPLE
Last updated
Last updated
In this setup, the HTTP block is used to query a virtual server. (https://jsonplaceholder.typicode.com/posts/1)
This server responds with information in JSON format.
{
"userId": 1,
"id": 1,
"title": "sunt aut facere repellat provident occaecati excepturi optio reprehenderit",
"body": "quia et suscipit\nsuscipit recusandae consequuntur expedita et cum\nreprehenderit molestiae ut ut quas totam\nnostrum rerum est autem sunt rem eveniet architecto"
}
From this response, we want to extract the "userId," "title," and "body" information using the JSON Parser.
Next, to send the variable information from these fields via email, we create an HTML template and insert the relevant data into the Mail block using square brackets.
User ID: [[userId]]
Title: [[title]]
Body: [[body]]
Finally, the Mail block uses this HTML template to send the extracted information as an email. The email will include the parsed details from the JSON response.