$trigger
object and the $nodes
object.status
200
status
body
+
button that appears when you hover over the trigger node. All Templates are also 100% open-source and available on Buildable's Github under the MIT license.input
(the data needed to run the Node) and run
function (the Node's executable logic). You can easily access either using the Input
and Code
buttons found on the front of each node. input
function’s sole purpose is to select the data that will be passed into the run function of that node.$trigger
- The flow's request object$nodes
- The outputs of all nodes above itselfrun
function is where you write the processing and logic of your node. Whatever is returned in the run
function will be the response of the node.input
- The values passed in from the input
functionrun
function, accessing the values we passed in from the input
function.input
function of your nodes will have access to 2 global variables, which are $trigger
and $nodes
. The below section highlights both types.$trigger
method
- The request method (GET
, POST
, PUT
, PATCH
, or DELETE
).headers
- The request headers.params
env
- The environment that you’re testing in.flowPointer
- Your flow’s unique slug.p0
…pN
- Params passed in via the URL. Each param will have the property name pN
, where N = the param’s position in the URL.query
body
- Data passed to the body. This will not be parsed if the request method is GET
.$nodes