Make.com Shopify Procurement Inventory Management

How to Automate Procurement in Your Shopify Store - Part 1

Learn how to create a procurement automation system from scratch for your Shopify store, starting with tracking stock levels automatically.

Illustration of automated purchase orders for an e-commerce business

Managing procurement for an e-commerce store, especially one with a diverse product catalog, presents significant challenges for business owners and managers. Inefficient procurement directly leads to lost revenue and a subpar customer experience, two critical issues for any online business.

While the concept of an effective procurement system seems straightforward—knowing when product stock levels hit a certain threshold—its execution can be surprisingly complex. Factors like sudden demand surges, disorganized inventory systems, and supplier inconsistencies can quickly complicate matters. Even predictable events, such as an inventory manager being unavailable, can disrupt operations.

These complexities highlight the crucial role of procurement automation. This guide is the first in a four-part series designed to walk you through building a robust automated procurement system. We'll start by establishing automatic stock level tracking, a foundational element for any successful e-commerce operation.

Before diving into the technical details, let's outline what this automated procurement system will achieve. Understanding its capabilities will help you determine if it aligns with your current business needs and operational goals.

A Simple Procurement Automation System for Shopify Vendors

This comprehensive automated procurement system is designed to streamline various aspects of your e-commerce operations. It will leverage Make.com scenarios to connect several widely-used applications, including Shopify, Airtable, QuickBooks, and email, creating a seamless workflow.

Specifically, this system will enable you to:

  • Keep track of Shopify inventory levels by adding products to Airtable
  • Check when stock levels for every product reach a certain point
  • Add products and suppliers to QuickBooks
  • Create a purchase order when predefined stock levels are reached
  • Send the purchase order to the corresponding supplier
  • Receive the invoice from the supplier and send it to the finance department for payment

We've structured this tutorial into four parts for two main reasons. Firstly, to maintain clarity and manageability, as each scenario within the system involves multiple configuration steps. Presenting all this information at once would be overwhelming.

Secondly, and perhaps more importantly, each of the four scenarios can function independently or as part of the larger integrated system. This modular approach means you can implement specific automations, such as purchase order automation or stock level tracking, based on your immediate needs, or build out the full system over time.

With this overview in mind, let's begin building the first scenario. This initial setup will focus on automatically adding inventory data from Shopify to Airtable, laying the groundwork for effective stock level tracking.

To successfully create this first scenario, you will need active accounts for the following platforms:

  • A Shopify account
  • An Airtable account
  • A Make.com account

If you have these ready, let's proceed with the step-by-step instructions to get your Shopify inventory flowing into Airtable.

Step 1: Creating the Make Scenario

Once you've logged into your Make.com account, you'll be directed to your main dashboard. This is your central hub for managing all your automation workflows.

To initiate a new automation, locate and click the "Create a new scenario" button, typically found in the upper right corner of your screen. This action will take you to the scenario builder interface.

Screenshot of the Make.com dashboard with 'Create a new scenario' button highlighted
Click the "Create a new scenario" button to begin building your automation.

The scenario builder is your workspace for designing and configuring automated workflows. It's a visual interface where you'll connect different applications and define the sequence of actions.

Step 2: Adding the Shopify Module

Within the scenario builder, click on the large plus sign located at the center of the canvas. This will open a pop-up menu where you can search for and select the applications you want to integrate into your scenario.

In the search bar, type "Shopify" and select the Shopify app from the results. Once selected, a list of available Shopify modules (also known as endpoints or actions) will appear, each representing a specific function you can perform with Shopify data.

GIF showing how to add the Shopify app and select a module in Make.com
Search for and select the Shopify app in the scenario builder.

From the list of Shopify modules, choose "Search for products." This module will allow your scenario to retrieve product information from your Shopify store. After selecting it, a configuration box will automatically appear on your screen, prompting you to set up the module's details.

Screenshot of Shopify 'Search for products' module selection
Select the "Search for products" module to retrieve product data.

To enable Make.com to access your Shopify inventory data, you'll need to establish a connection between your Make.com account and your Shopify store. This is a one-time setup process that grants the necessary permissions.

Inside the module's configuration box, click the "Add" button. This will open a new window or prompt, guiding you through the connection setup. You can assign a descriptive name to this connection for easy identification in the future.

Screenshot of Shopify connection setup in Make.com
Click "Add" to set up a new connection to your Shopify store.

To finalize the connection, you will be asked to enter the subdomain of your Shopify store. This is typically the first part of your Shopify store's URL (e.g., if your store is "mystore.myshopify.com", your subdomain is "mystore"). Provide this information to authenticate the connection.

Screenshot showing where to enter the Shopify subdomain
Enter your Shopify store's subdomain to complete the connection.

Once the connection is successfully established, the next step is to adjust the "Limit" field within the Shopify module's configuration. This field dictates the maximum number of products Make.com will retrieve each time the scenario runs.

To ensure that your entire inventory is processed and included in the automation, it's highly recommended to set a sufficiently high number in this "Limit" field. This prevents any products from being overlooked during the data retrieval process. After setting the limit, click the "OK" button to save your changes and proceed to the next stage of building your scenario.

Screenshot of Shopify module configuration with 'Limit' field
Configure the Shopify module by setting a high limit for product retrieval.

Step 3: Adding the Iterator

Many Shopify stores manage products with multiple variants (e.g., different sizes, colors, or materials). When retrieving product data from Shopify, it's essential to ensure that all these variants are captured and processed correctly, not just the main product.

The Shopify module typically outputs product data, including a "Variants[]" array element. This array contains a collection of attributes for each variant, such as its title, price, and other relevant details. However, without additional configuration, Make.com might only process the first variant in this array, which isn't ideal for comprehensive inventory tracking.

To address this, you need a mechanism to split the variant data so that each individual variant can be processed as a separate item. This ensures that your Airtable base receives complete and accurate information for every product variant.

To achieve this, you will add an "Iterator" module to your scenario. The Iterator is a powerful tool found within the "Tools" menu at the bottom of the scenario builder. It's designed to process arrays of data, allowing you to iterate through each item within an array.

Screenshot showing the 'Iterator' module in Make.com's Tools menu
Add an "Iterator" module from the Tools menu to process product variants.

After successfully adding the Iterator module and connecting it to your Shopify module, the next step is to map the "Variants[]" array. This mapping tells the Iterator which data collection it needs to process individually.

Simply drag and drop or select the "Variants[]" element from the Shopify module's output into the Iterator's configuration. This ensures that the Iterator correctly receives and processes each product variant, preparing the data for the next step in your automation. Once mapped, you're ready to move on.

Screenshot of mapping the Variants[] array to the Iterator module
Map the "Variants[]" array from the Shopify module to the Iterator.

Step 4: Adding the Airtable App

For this automation, we'll be using a pre-configured Airtable base and table. You can access and copy this base to your own Airtable workspace by clicking here. While you can customize it later, using this template ensures compatibility with the automation steps outlined in this guide.

Screenshot of the Airtable base and table structure
The pre-configured Airtable base and table for Shopify inventory.

A critical aspect of this automation is preventing duplicate product entries in your Airtable base. Each time the scenario runs, it should either add new products or update existing ones, not create redundant records. To achieve this, the scenario needs to first search the Airtable base to determine if a product or variant already exists.

If a product is not found, it will be added as a new record. Conversely, if the product is already present, only its inventory quantity will be updated, ensuring data accuracy and preventing clutter.

Now, let's integrate the Airtable app into your Make.com scenario. Click on the small "plus" sign located next to the Iterator module you just configured. This will again bring up the application search menu.

Search for "Airtable" and select it. From the list of Airtable modules, choose "Search Records." This module is essential for checking the existence of products in your Airtable base before any new data is written. After selecting it, the configuration panel for this module will appear.

Screenshot of selecting the 'Search Records' module for Airtable
Add the "Search Records" module for Airtable to check for existing products.

To connect your Airtable account to Make.com, you'll need an Airtable API Token. If you're unsure how to obtain this token, click the small " ?" icon within the module's configuration box for detailed instructions. This token acts as a secure key, allowing Make.com to interact with your Airtable bases.

Once you have your API token, provide a name for your connection in Make.com, paste the token into the designated field, and click "Continue." This establishes the secure link between your Airtable and Make.com accounts.

After successfully connecting your Airtable account, the next step is to specify which Airtable base and table your scenario will interact with. Select the "Shopify Inventory" base and the "Inventory" table, which you copied earlier, from the dropdown menus in the module's configuration.

For accurate and reliable searching, it's more effective to search for products using their "Inventory Item IDs" rather than their names, as names can sometimes be inconsistent or change. You'll need to input a simple formula into the search field to utilize these IDs. The exact formula can be copied directly from the image provided in the original guide, ensuring correct syntax.

When configuring this search, ensure that the "Inventory Item ID" element is mapped from the Iterator module. This ensures that Make.com uses the unique ID for each variant as it processes them. You can select this element from the list that appears when you click into the formula field.

Screenshot of Airtable 'Search Records' module configuration
Configure the Airtable module to search records by Inventory Item ID.

The "Search Records" module in Airtable can yield two primary outcomes, which are crucial for our automation logic:

  • The Inventory Item ID is not found in the table, indicating that the product is new and needs to be added.
  • The Inventory Item ID is found in the table, meaning the product already exists, and only its inventory quantity needs to be updated.

It's important to note that if a record containing the Inventory Item ID is found, the "Search Records" module will also output a "Record ID." This "Record ID" is a unique identifier for that specific record within Airtable. If no matching record is found, the "Record ID" will be empty.

To handle these two distinct outcomes within a single scenario, we'll utilize a native Make.com tool called a "Router." The Router allows you to split your scenario's flow into multiple paths, each designed to handle a different condition. You'll find the Router in the "Tools" section at the bottom of the visual builder. After attaching it to your scenario, click on the Router to add two new routes, one for each possible outcome.

Step 5: Adding the Modules and Filters on the Routes

With the Router in place, let's configure the top route to handle new products. This route should only activate if the product is not already present in your Airtable table. To enforce this condition, we'll use a "Filter," another essential native Make.com feature.

Recall the "Record ID" that the "Search Records" module outputs. The filter will check whether this "Record ID" exists. If the "Record ID" is empty (meaning the product was not found), the data will pass through this route, and the new product will be added to your Airtable table. To add a filter, click on the small wrench icon located on the line of the top route.

Screenshot showing how to add a filter on a Make.com route
Click the wrench icon on the route to add a filter.

Clicking the wrench icon will open the filter configuration box. Here, you'll first name your filter; for this route, "Add a product" is a suitable name. Next, map the "Record ID" output from the "Search Records" Airtable module to the top field in the filter configuration.

Then, from the dropdown menu, select the "Does not exist" basic operator. This ensures that the route only proceeds if no existing record was found for the product. Finally, click the "OK" button to save your filter configuration.

Screenshot of the 'Add a product' filter configuration
Configure the filter to check if the Record ID "Does not exist."

The final step for the top route is to add the "Airtable > Create a Record" module. This module will be responsible for adding new product entries to your Airtable base when the filter condition is met.

After selecting the same "Shopify Inventory" base and "Inventory" table as before, you'll need to map specific data elements from your Shopify and Iterator modules to the corresponding fields in the Airtable "Create a Record" module. Map the "Title" data element from the Shopify module to the "Product Name" field in Airtable. Then, map the relevant data from the Iterator module to the respective fields, as illustrated in the provided image.

A few important notes for mapping:

  • For "Maximum Quantity" in the "Item" field: You can map the SKU element if you've used it in Shopify to store the maximum quantity for a variant, or use the "Inventory quantity" element, which typically holds the maximum amount when a new product is added.
  • For the "Unit price" field: The Shopify module usually outputs only the selling price. As a workaround, you can enter the cost price in the "Compare at price" field in Shopify (located near the regular price field). This field is not visible to customers. You can then map this "Compare at price" element to the "Unit price" field in Airtable. Once the item is in Airtable, you can remove this workaround from Shopify if desired.
Screenshot of Airtable 'Create a Record' module configuration
Map Shopify and Iterator data to the Airtable "Create a Record" module.

That concludes the setup for the top route! Now, let's configure the bottom route, which will handle updating existing product inventory totals. Set up a filter on this route as well, and name it "Update Inventory Total."

The key difference for this filter is that you will select the "Exists" basic operator instead of "Does not exist." This ensures that this route only activates when a matching "Record ID" is found, indicating an existing product that needs its inventory updated.

Screenshot of the 'Update Inventory Total' filter configuration
Configure the filter for the bottom route to check if the Record ID "Exists."

Since this route is dedicated to updating inventory totals, select the "Airtable > Update a Record" module and add it to the bottom route. As before, choose the correct "Shopify Inventory" base and "Inventory" table.

Crucially, map the "ID" from the "Search Records" Airtable module to the "Record ID" field in this "Update a Record" module. This tells Airtable precisely which existing record needs to be modified.

Screenshot of mapping Record ID in Airtable 'Update a Record' module
Map the Record ID to ensure the correct Airtable record is updated.

Product or variant names can occasionally change, and you'll want your Airtable base to always reflect the most current information. To ensure this, map the "Title" element from the "Shopify > Search Records" module to the "Product Name" field in Airtable. Additionally, map the "Title" element from the Iterator module to the "Variant Name" field.

The most vital part of this configuration is mapping the "Inventory quantity" element from the Iterator directly to the "Quantity" field in your Airtable "Update a Record" module. This ensures that your Airtable inventory accurately reflects the current stock levels from Shopify. Refer to the provided images for precise mapping guidance.

Screenshot of mapping product and variant names in Airtable update module
Map product and variant titles for accurate updates in Airtable.
Screenshot of mapping inventory quantity in Airtable update module
Map the "Inventory quantity" to the "Quantity" field in Airtable.

With all the modules and filters configured, your scenario is now fully set up. The next step is to test it to ensure everything works as expected.

Step 6: Executing the Scenario

You've likely noticed the prominent blue "Play" button at the bottom of the Make.com scenario builder. This button is your gateway to testing your newly created automation. It's time to click it and observe your scenario in action.

Screenshot of the 'Play' button in Make.com scenario builder
Click the "Play" button to execute your scenario.

Upon clicking "Play," the scenario will execute, and you should see a visual representation of the data flowing through each module. If the execution is successful, you'll observe products and their variants being added to or updated in your Airtable table, reflecting your Shopify inventory. This visual feedback confirms that your scenario is correctly configured and functioning as intended.

GIF showing a Make.com scenario execution
Observe the scenario execution to confirm data flow.

Once you've verified that the scenario successfully adds and updates products and variants from Shopify to Airtable, it's crucial to save your work. Locate the "Save" button, typically found within the controls menu of the scenario builder, and click it to preserve your configuration.

Screenshot of the 'Save' button in Make.com
Save your scenario after successful testing.

The final step is to determine the frequency at which this scenario will run. This scheduling setting dictates how often Make.com will check your Shopify store for product, variant, and quantity changes, and then synchronize that information with Airtable. Whether you need daily, weekly, or monthly updates, you can configure this to match your business requirements.

To enable and set the schedule, toggle the scheduling switch to the "On" position. This action will open the schedule setting menu, where you can define the desired frequency for your scenario runs. Once your preferred schedule is set, click the "Activate" button to bring your automated inventory tracking system fully online.

Screenshot of the scheduling switch in Make.com
Toggle the scheduling switch to activate and set the scenario's run frequency.
Screenshot of the scheduling setting menu in Make.com
Configure the scheduling settings and click "Activate."

Frequently Asked Questions

Common questions about Shopify Procurement Automation

Procurement automation is crucial for Shopify stores to maintain optimal stock levels, prevent stockouts, and avoid overstocking. It streamlines the process of identifying when new inventory is needed, reducing manual errors and saving significant time for store owners.

By automating procurement, businesses can react quickly to changes in demand, ensuring products are always available for customers. This leads to improved customer satisfaction, increased sales, and more efficient use of capital by minimizing inventory holding costs.

Tracking Shopify inventory in Airtable provides a centralized, flexible, and highly customizable database for your product data. It allows for advanced filtering, sorting, and visualization beyond Shopify's native capabilities, making it easier to manage complex product catalogs and variants.

This integration facilitates better data analysis, enabling you to identify trends, manage supplier information, and create custom views for different team members. It also serves as a robust foundation for building more complex procurement workflows and reporting.

The Iterator module in Make.com is essential for processing product variants by taking an array of variant data (like Shopify's "Variants[]" output) and breaking it down into individual bundles. This allows subsequent modules in the scenario to treat each variant as a separate item.

Without an Iterator, only the first variant of a product might be processed, leading to incomplete inventory tracking. By iterating through each variant, the automation ensures that every unique product option, regardless of its attributes, is accurately recorded and managed in Airtable.

The "Search Records" module in Airtable plays a crucial role in preventing data duplication and ensuring data integrity. Before adding any new product or variant, this module checks if a record with the same unique identifier (like an Inventory Item ID) already exists in your Airtable base.

If a record is found, the automation proceeds to update its quantity. If no record is found, it triggers the creation of a new entry. This conditional logic is vital for maintaining an accurate and clean inventory database.

Routers and Filters in Make.com are used to create conditional logic within your automation, allowing different actions based on specific criteria. In this procurement scenario, the Router splits the workflow into two paths: one for adding new products and another for updating existing ones.

Filters on each route then determine which path the data should take based on whether a product's "Record ID" exists in Airtable. This ensures that the system intelligently handles both new inventory additions and updates to current stock levels, optimizing efficiency and accuracy.

To ensure all your Shopify products are included, you need to set a sufficiently high number in the "Limit" field of the Shopify "Search for products" module in Make.com. This field determines how many products Make.com retrieves during each scenario execution.

If your store has a large number of products, setting a high limit (e.g., 250 or more, depending on your total product count) will help ensure that no products are missed. Regularly monitoring your scenario's execution history can also help confirm that all expected data is being processed.

Yes, GrowwStacks specializes in building custom automation solutions tailored to your specific business needs. While this guide provides a solid foundation, your Shopify store might have unique procurement processes or require integrations with other specialized tools.

Our experts can design, implement, and maintain a bespoke automation system that perfectly fits your workflow, ensuring maximum efficiency and accuracy for your procurement operations. Contact us for a free consultation to discuss your requirements.

Need Custom Automation Help?

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