Action Templates are open-source functions that save developers hundreds of hours when integrating databases, apps and other complicated logic. They work natively with Buildable Workflows, which means you can build, test, deploy any integration using Templates in a matter of minutes.
Check out the contribution guidelines to start creating your own Actions.
Each Action Template is comprised of an input
and run
function. Together, they should represent one logic step with a single purpose (i.e. Sending an email with Sendgrid).
The input
function’s sole purpose is to select the data that will be passed into the run function.
It has access to:
$body
- The Workflow's body$headers
- The Workflow's headers$env
- Your Environment Variables$actions
- The outputs of all Actions above itself$query
- The Workflow's query
The run
function is where you write the processing and logic of your Action. Whatever is returned in the run function will be the response of the Action.
It has access to:
input
- The values passed in from the input function
You can view a sample run
function in the sample directory.
Check out docs.buildable.dev to read more on Actions and Workflows.
Supported by a network of early advocates, contributors, and champions!
© 2022, Buildable Technologies Inc. - Released under the MIT License