Make.com Automation Google Drive Email Attachments

The Array Aggregator: Learn How to Use This Tool in a Scenario

Master the Make.com Array Aggregator tool to combine multiple files into single email attachments with this step-by-step automation guide.

Make.com Array Aggregator interface showing file aggregation workflow

Understanding the Array Aggregator

The Array Aggregator is one of Make.com's most powerful built-in tools, designed to combine multiple bundles of data into a single array containing collections of specified items. Unlike processing items individually, this tool allows you to structure multiple outputs into a format that downstream modules can process as a unified group.

In this specific scenario, we're using the Array Aggregator to solve a common business problem: sending multiple files as email attachments without flooding the recipient's inbox. Without the aggregator, Make would process each file individually, resulting in separate emails for each attachment. The aggregator combines all files into a single structured output that the Gmail module can process as one email with multiple attachments.

Pro tip: The Array Aggregator isn't limited to file attachments. You can use it to combine any type of data bundles - database records, form submissions, or API responses - into structured arrays for batch processing.

Scenario Setup

Our automation scenario consists of three key modules working in sequence. First, the Google Drive module watches a specified folder for new files. The Array Aggregator then combines these files into a structured array. Finally, the Gmail module sends all files as attachments in a single email.

The entire setup takes approximately 15 minutes to configure, assuming you already have Google Drive and Gmail accounts connected to your Make.com account. This is considered a beginner-level automation, but understanding the Array Aggregator's role will help you create more advanced workflows.

Make.com scenario showing the three module workflow
The complete scenario showing Google Drive, Array Aggregator, and Gmail modules connected in sequence

Configuring Modules

Google Drive Module

The "Watch files in folder" module from Google Drive serves as our trigger. When configuring this module, you'll select the specific folder to monitor and set the maximum number of files to process in each execution cycle. Setting this to 5 (as recommended in the tutorial) ensures your email won't exceed practical attachment limits while demonstrating the aggregator's capability.

Key configuration points include specifying whether to watch for new files only or process existing files on the first run. For testing purposes, you'll want to select "All files" initially to demonstrate the workflow with content already in your folder.

Google Drive module configuration settings in Make
Google Drive module configuration showing folder selection and file limit settings

Array Aggregator Module

Found under Make.com's tools section, the Array Aggregator automatically connects to the preceding Google Drive module. Its configuration becomes more powerful when you add the destination Gmail module first, as this unlocks attachment-specific structure options.

The critical configuration is selecting "Attachments" as the Target Structure Type, which formats the output specifically for Gmail's attachment field. You'll then map the Google Drive module as the Source File, creating the connection between the file source and the structured output.

Pro tip: Always add your destination module before fully configuring the Array Aggregator. The aggregator detects connected modules and provides appropriate structure options for each.

Gmail Module

The "Send an email" module from Gmail receives the aggregated array. After configuring standard fields like recipient, subject, and body content, you'll toggle the map switch for attachments and select the Array[] element from the aggregator's output.

This simple mapping is where the magic happens - the Gmail module understands it's receiving multiple attachments in a structured format rather than individual files. The module handles the rest, creating a single email with all specified attachments.

Testing & Execution

With all modules configured, testing begins by saving the scenario and clicking "Run once." Make.com processes the workflow, and you can examine each module's output by clicking their numbered circles. The Array Aggregator's output shows the transformation from multiple individual bundles to a single structured array.

Successful execution results in one email containing all files from your Google Drive folder as attachments. You can then set the scenario's schedule (how often it checks for new files) and activate it for ongoing automation.

Email result showing multiple file attachments from the Make scenario
Resulting email showing all files attached from a single scenario execution

Frequently Asked Questions

Common questions about Make.com's Array Aggregator

The Array Aggregator combines multiple bundles of data into a single array containing collections of specified items. In practical terms, it lets you take multiple files from different operations and combine them into a single output structure that can be processed together.

This is particularly useful when you need to maintain relationships between data points or process items as a batch rather than individually. The aggregator preserves the structure and metadata of each item while combining them into a format that destination modules can understand.

Yes, but you'll only see the custom option available in the Target Structure type menu. The Array Aggregator becomes more powerful when paired with destination modules like Gmail that can process its structured output.

Without a destination module, you can still use the custom option to create your own array structures, but you'll need to handle the output processing manually in subsequent modules. The pre-defined structures (like attachments) simplify integration with specific services.

You can set the maximum number in the Google Drive module configuration. The tutorial recommends 5 as a practical limit, but this depends on your specific needs and Make plan limits.

Technical limits vary based on your Make.com plan and the modules involved. While you might aggregate dozens of items, consider email attachment size limits and processing time when setting your maximums. For large batches, you may want to implement chunking logic.

Without it, Make would process and email each file individually, resulting in multiple separate emails rather than one email with all attachments.

This "fan-out" behavior is sometimes desired (like sending individual reports to different recipients), but for batch processing like our scenario, the aggregator provides much cleaner output and better user experience for recipients.

Absolutely. While this tutorial uses Google Drive, the Array Aggregator works with any module that outputs multiple bundles of data, including databases, spreadsheets, or other cloud storage services.

The same principles apply regardless of source - the aggregator combines multiple outputs into a structured array. You can even aggregate from multiple different sources into a single unified output if your scenario requires it.

The impact is minimal. The Array Aggregator efficiently combines data in memory before passing it to the next module, often reducing total operations compared to processing items individually.

In fact, aggregators can improve performance by reducing the number of API calls to destination services. Instead of making separate calls for each item, the destination module processes the batch in a single operation.

Yes! Our team specializes in building tailored automation solutions for file processing, email attachments, and complex data aggregation scenarios. We can design a system specifically for your business requirements.

Whether you need to process hundreds of files daily, apply custom business logic during aggregation, or integrate with specialized systems, we can create a solution that saves you time and reduces errors in your workflows.

  • Custom file processing logic
  • Enterprise-scale automation
  • Specialized integrations

Need Custom Automation Help?

This guide is a starting point. Our team builds fully tailored automation systems for your specific workflow needs.