Make.com Twitter Data Management Automation

How to Use the Array Aggregator to Save New Followers from Twitter to a Data Store

Do you have a rapidly growing Twitter following and need an efficient way to keep track of new followers? This tutorial demonstrates how to leverage Make.com's Array Aggregator and a Data Store to automatically save and monitor your new Twitter connections.

Illustration of people with phones around a large Twitter hashtag, representing follower tracking.

This guide will walk you through setting up a Make.com scenario that retrieves a list of your Twitter followers, compares it against a stored list, and then saves any new followers to a Data Store. This ensures you always have an up-to-date record of your audience growth.

The process involves several key Make.com modules, including the Data Store for persistent data and the Array Aggregator for efficient data comparison. The difficulty level for this tutorial is intermediate, and it should take approximately 15 minutes to implement. Before you begin, ensure you have a Twitter account connected to Make.com and a Data Store set up to store your follower information.

Configuring the Scenario

The automation scenario is built using four core Make.com modules, each playing a crucial role in fetching, comparing, and storing your Twitter follower data. These modules work in sequence to ensure that only new followers are added to your Data Store.

The modules involved are: Data Store > Search records, Array Aggregator, Twitter > List followers, and Data Store > Add/replace a record. Below is an overview of how these modules are connected in the scenario.

Make.com scenario flow for tracking Twitter followers
The complete Make.com scenario for saving new Twitter followers.

The first module in the scenario is the Data Store > Search records. Its configuration is straightforward: simply select an existing Data Store where your current follower list is kept, or create a new one if you haven't already. It's important to leave the filter field empty in this module, as its purpose is to retrieve all existing records from the Data Store for comparison.

Configuration for the Data Store Search records module
Configuring the Data Store Search records module to retrieve all existing follower data.

Next, you'll configure the Array Aggregator module. This module is crucial for consolidating the individual records from your Data Store into a single array. The Source module should automatically be set to Data Store > Search records, and the Target structure type should be Custom. These settings can typically be left as their defaults. Under the aggregated fields, make sure to tick the Key option. This tells the Array Aggregator to collect all the keys (which represent the Twitter screen names in your Data Store) into one array.

Array Aggregator module configuration with Key option selected
Setting up the Array Aggregator to collect all 'Key' values from the Data Store.

Following the Array Aggregator, add the Twitter > List followers module. This module is responsible for fetching the most up-to-date list of your followers directly from Twitter. In its configuration, select By Screen Name under the List Followers option. You will also need to enter a numerical value under Limit. This limit specifies the maximum number of followers Make.com will retrieve during a single execution cycle. Choose a number that suits your needs, keeping in mind the potential volume of your followers.

Twitter List followers module configuration
Configuring the Twitter module to list followers by screen name with a specified limit.

A critical component of this scenario is the filter placed on the route between the Twitter > List followers module and the final Data Store > Add/replace a record module. This filter's purpose is to ensure that only genuinely new followers are passed through to be saved. It achieves this by checking if the Keys (screen names) retrieved from the Data Store do not contain the Screen names outputted by the Twitter module. If a screen name from Twitter is not found in your existing Data Store, it means it's a new follower, and the bundle will proceed.

To set up this filter, click on the route connecting the two modules. Within the filter configuration, you'll utilize the map() function, which is found under the Functions for working with arrays tab. This function is essential for extracting specific items or values from an array of collections, allowing for precise comparisons.

Setting up the filter using the map() function
Using the map() function to extract keys for the filter condition.

Within the filter, you'll map the Array[] element outputted by the Array Aggregator. Inside the brackets, type the word key after the semicolon. It's crucial to use the raw name of the element, which in this case is 'key', as outputted by the Array Aggregator. You can verify the raw name by hovering over the element in the mapping panel.

Pro tip: Always double-check the raw name of elements when using functions like map(). Hovering over the element in the mapping panel reveals its precise internal name, preventing common configuration errors.

Hovering over an element to see its raw name
Verifying the raw name of the 'key' element for accurate mapping.

After mapping the key, select the Does not contain text operator. Then, map the Screen name element outputted by the Twitter module. This completes the filter setup. If a bundle successfully passes this filter (meaning the Twitter screen name is not already in your Data Store), it will proceed to the next module.

Final filter configuration for new Twitter followers
The completed filter ensures only new Twitter followers are processed.

The final step in the scenario configuration is setting up the Data Store > Add/replace a record module. This module will add the new followers to your Data Store. Simply select the same Data Store you used in the first module. Then, map the Screen name element, which is outputted by the Twitter module, to the Key field in this Data Store module. This action will create a new record for each new follower, using their screen name as the unique identifier.

Data Store Add/replace a record module configuration
Mapping the Twitter screen name to the Data Store's Key field.

With all modules configured, your scenario is now ready to run. Let's examine two different execution scenarios to see how the filter and data storage work in practice.

Scenario Execution 1

In the first execution example, you'll observe how the system handles new followers. The bundles retrieved from the Data Store are aggregated, and the filter correctly identifies that the screen names from the Twitter module are not present in the existing Data Store keys. As a result, these new followers successfully pass the filter and are added as new records to your Data Store.

Successful scenario execution adding new followers
First scenario execution showing new followers being added to the Data Store.

This demonstrates the effectiveness of the "does not contain" filter in isolating unique new entries. Each new follower's screen name becomes a new key in your Data Store, maintaining an accurate and growing list of your audience.

Scenario Execution 2

In the second execution, the scenario processes a list of Twitter followers where all screen names are already present in the Data Store. In this case, the filter's condition—that the Data Store keys "do not contain" the Twitter screen names—is not met. Consequently, none of these bundles proceed to the final Data Store module, as they are not new followers.

Scenario execution where no new followers are found
Second scenario execution showing no new followers identified, and bundles stopped by the filter.

This highlights the efficiency of the filter in preventing duplicate entries and ensuring that your Data Store remains clean and only contains records for unique, new followers. The scenario effectively distinguishes between existing and new connections, optimizing data management.

You have now successfully learned how to use Make.com's Array Aggregator and Data Store to automatically track and update your list of Twitter followers. This powerful combination allows for precise data management and ensures you're always aware of your audience growth without manual intervention. Happy Automating!

Frequently Asked Questions

Common questions about Twitter follower tracking with Make.com

The Array Aggregator module in Make.com is designed to combine multiple individual data bundles into a single array. This array then contains collections of specified items, allowing for more streamlined processing and comparison of data sets. It's particularly useful when you need to consolidate information from several sources before performing a unified action or analysis.

This consolidation is vital for scenarios where you need to perform operations like filtering or searching across a complete set of data rather than individual pieces. It transforms scattered data into a manageable, structured format for subsequent modules.

A Data Store acts as a persistent storage for your Twitter follower data. It allows the Make.com scenario to keep a historical record of followers, which is crucial for identifying new followers. By storing existing follower screen names, the system can efficiently compare the current list from Twitter against the stored data to pinpoint who has recently followed you.

Without a Data Store, the automation would only be able to see the current list of followers without any context of who was already following you. This makes the Data Store indispensable for tracking changes over time.

The filter mechanism works by comparing the list of current Twitter followers (retrieved by the Twitter module) against the aggregated list of existing followers from your Data Store. Specifically, it uses a 'does not contain' condition. If a screen name from the current Twitter list is NOT found in the Data Store's aggregated list, it signifies a new follower, and that data bundle is allowed to pass through the filter for further processing.

This logical check is fundamental to ensuring that only unique, previously unrecorded followers are added to your tracking system, preventing redundant entries and maintaining data integrity.

The map() function in Make.com is essential for extracting specific items or values from an array of collections. In this Twitter follower scenario, it's used to extract the 'key' (which represents the screen name) from the bundles aggregated by the Array Aggregator. This allows the filter to accurately compare individual screen names from the Twitter module against the list of existing screen names from the Data Store.

By isolating the exact data point needed for comparison, the map() function enables the filter to operate effectively and precisely, ensuring that the comparison logic is applied to the correct piece of information.

To successfully implement this scenario, you need an active Twitter account with the necessary connection already established within your Make.com environment. Additionally, you must have a Data Store created and configured in Make.com, which will serve as the repository for storing your Twitter follower information. These foundational elements ensure the modules can interact correctly.

Having these in place before you start building the scenario will streamline the setup process and prevent common integration issues, allowing you to focus on the logic of the automation itself.

Yes, the core logic of using an Array Aggregator and a Data Store for comparison can be adapted for various social media metrics, provided the platform offers the necessary API access. For instance, you could track new likes on a post, new comments, or new subscribers on other platforms by modifying the initial data retrieval module and the specific data points being aggregated and compared. The key is identifying a unique identifier for the items you wish to track.

This flexibility makes the Array Aggregator and Data Store combination a powerful pattern for monitoring changes and growth across different social media channels, extending beyond just Twitter followers.

Absolutely! If you need a more advanced or tailored solution for tracking Twitter followers, or any other social media metrics, GrowwStacks specializes in building custom automation workflows. We can design and implement a system that perfectly fits your specific requirements, integrating with other tools you use and providing detailed reporting.

Our experts can help you optimize your social media strategy through automation, ensuring you gain valuable insights and save significant time. Contact us for a free consultation to discuss your unique automation needs and how we can help your business grow.

Need Custom Automation Help?

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