Types of modules
Integromat distinguishes 4 types of modules that differ mainly with regard to what data they process: actions, triggers, aggregators and iterators. The two latter ones are intended for advanced scenarios.
An action is the most common, most general type of module.
- Every action can return one or more bundles which are then passed to the next module for processing.
- Actions can be placed at the beginning, middle or end of a scenario.
- Every scenario can contain an unlimited number of actions.
Examples of actions
- The Upload a file action from the Dropbox package sends a file to a selected Dropbox folder and returns its identificator.
- The Resize action from the Image package receives an image, resizes it to specified dimensions and passes the resized image to the next action.
- The Create a report action from the Google Analytics package gets information about web traffic and passes it on for further processing.
A trigger is a module that returns bundles that were newly added or updated (depending on settings) since the last time the scenario was run.
A webhook is a special type of trigger. Whereas other types of triggers ask periodically a given service whether there are new bundles placed at disposal, webhooks allow to send information from the service to Integromat as soon as there are new bundles available. You can schedule a scenario containing webhooks to run immediately by selecting the Immediately option from the Schedule setting panel.
- Every trigger can return one or more bundles which are then passed to the next module for processing.
- Triggers can be placed only at the beginning of a scenario.
- Every scenario can contain only one trigger.
Examples of triggers
- The trigger Watch files from the Dropbox package returns files that were newly added since the last time the scenario was run.
- The trigger Watch Tweets from the Twitter package, returns Tweets posted by the user since the last time the scenario was run.
- The trigger Watch posts from the Tumblr package returns new posts added to a selected blog since the last time the scenario was run.
- The trigger (webhook) New notification from the Paypal package returns new payment notifications. If you schedule a related scenario to run Immediately, it will be executed immediately after receiving a notification.
An Aggregator is a type of module that composes multiple bundles into one bundle.
- Every aggregator returns only one bundle which is then passed to the next module for further processing.
- Aggregators can be placed only in the middle of a scenario.
- Every scenario can contain an unlimited number of aggregators.
Examples of aggregators
- The aggregator Create an archive from the Archie package compresses received files to a zip archive.
- The aggregator Aggregate to CSV from the CSV package merges multiple strings from a scv file into a single row.
- The aggregator Compose a string from the Tools package combines several strings together into a single string.
An iterator is a type of module that splits arrays into multiple separate bundles.
- Every iterator returns one or more bundles which are passed to the next module for processing.
- Iterators can be placed only in the middle of a scenario.
- Every scenario can contain an unlimited number of iterators.
Example of iterators
- The Retrieve attachments iterator from the Email package breaks an array of attachments into separate bundles.