How to add an input to a script

Hey everyone,

I’m new to using scripts and I’m hoping someone can help me out.

I’m running an automation that runs a script which includes the input from the trigger but I have no idea how to add the input to the script.

Here is the script, the input is supposed to be sent as the body to the webhook url:

let response = await fetch('https://hook.eu1.make.com/o3pnw2043wkr9zs9mcavdrix', {method: 'POST', body: '*Input should go here*'});
console.log(await response.text());

Thank you

Welcome to the community, @Tami! :smiley: The doc page on the automation system’s “Run a script” action shows how to add input variables:

1 Like