Help

How to add an input to a script

Topic Labels: Scripting extentions
1157 1
cancel
Showing results for 
Search instead for 
Did you mean: 
Tami
4 - Data Explorer
4 - Data Explorer

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

1 Reply 1

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