Actions have 4 sections:
- Params, where you declare any parameters that will appear on the card. Parameters do not accept any data from previous cards
- Input, where you declare any inputs that will appear on the card. Inputs can accept data that is dragged and dropped from an earlier card.
- Output, where you declare any outputs that will appear on the card
- Core, where you declare the steps (called Modules) that will make the call to the API to perform the Action and handle any data that the API returns.
In general, Actions take in data, use it to run a call to the API, then shape the resulting object into the declared output format.
Note: Actions do not return collections, just single objects. If the last module in your Action outputs a collections object (where “_array” = “true”), you will get a typecasting error.