quick-musician-29561
12/03/2023, 5:52 PMquick-musician-29561
12/03/2023, 5:53 PMquick-musician-29561
12/03/2023, 5:54 PMjs
const webhookUrl = 'https://hook.eu2.make.com/xxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
try {
const response = await axios.post(webhookUrl)
const webhookResponse = response.data
console.log(webhookResponse)
} catch (error) {
console.log(error)
}
tall-flag-82740
12/03/2023, 5:54 PMquick-musician-29561
12/03/2023, 5:55 PMquick-musician-29561
12/03/2023, 5:56 PMquick-musician-29561
12/03/2023, 5:59 PMquick-musician-29561
12/03/2023, 6:08 PMquick-musician-29561
12/03/2023, 6:13 PMcrooked-ram-87124
12/03/2023, 6:19 PMancient-author-26489
12/04/2023, 1:20 PMcrooked-van-25152
12/04/2023, 3:38 PMbland-advantage-2085
12/26/2023, 6:54 PMquick-musician-29561
12/29/2023, 5:23 AMbland-advantage-2085
12/29/2023, 2:29 PMancient-author-26489
12/31/2023, 8:26 PMbland-advantage-2085
01/02/2024, 6:34 PMquick-musician-29561
01/02/2024, 6:46 PMquick-musician-29561
01/02/2024, 6:51 PMbland-advantage-2085
01/04/2024, 7:53 PMbland-advantage-2085
01/04/2024, 7:53 PMquick-musician-29561
01/05/2024, 6:10 AMbland-advantage-2085
01/05/2024, 7:03 PMquick-musician-29561
01/05/2024, 7:29 PMbland-advantage-2085
01/05/2024, 7:44 PMquick-musician-29561
01/05/2024, 7:46 PMbland-advantage-2085
01/05/2024, 7:46 PMquick-musician-29561
01/05/2024, 7:46 PMbland-advantage-2085
01/05/2024, 7:47 PMquick-musician-29561
01/05/2024, 7:48 PMquick-musician-29561
01/05/2024, 7:50 PMbland-advantage-2085
01/05/2024, 8:19 PMquick-musician-29561
01/06/2024, 7:16 AMquick-musician-29561
01/06/2024, 7:19 AMquick-musician-29561
01/06/2024, 7:27 AMwide-market-36754
09/05/2024, 9:34 AMwhite-nest-40686
09/06/2024, 1:04 PMjson
{"success":true,"response":"Accepted"}
otherwise json
{"success":true,"response":"vegetable"}
All your tasks must be connected, in Webhook response body field write or choose the name of variable that contains the string you want to return for example "vegetable".
In botpress to read the response field only js
const webhookResponse = response.data
// set a local variable
const reply = webhookResponse.response
// set a workflow variable
const workflow.reply = webhookResponse.response
wide-market-36754
09/08/2024, 3:55 PMwhite-nest-40686
09/09/2024, 7:23 AMBody
field of webhook response a selector appear and hrlp you to search and select your variable.
https://cdn.discordapp.com/attachments/1180929476624912394/1282602352267759646/webhook_output_a_json.json?ex=66dff406&is=66dea286&hm=c0f184087d83de579dedc363801ffe7fd9aa0f33ae02fdc4a270b270917f3df9&wide-market-36754
09/11/2024, 5:41 AMwhite-nest-40686
09/11/2024, 7:27 AMwhite-nest-40686
09/11/2024, 7:07 PM