Tired of manually creating products in your Shopify store? By combining Zapier's automation platform with Cloudhooks' custom logic capabilities, you can automatically create products from Google Sheets.
Zapier is a powerful automation platform that connects over 7,000 applications and services. While Zapier offers native Shopify integration, combining it with Cloudhooks enables advanced workflows with custom logic and data transformations—all without writing complex code or installing additional Shopify apps.
We'll demonstrate this by showing you how to automatically create Shopify products from Google Sheets using Zapier and Cloudhooks, eliminating manual data entry and reducing errors.
In this tutorial, you'll create an automation that:
Time to complete: ~20 minutes
Difficulty level: Intermediate
First, let's create a Google Sheet that will serve as your product data source. This sheet will contain all the necessary information to create products in Shopify.
Here's an example of how your sheet should look:
Before setting up Zapier, we need to create a Cloudhooks endpoint that will receive and process the product data. We'll create a hook with an external trigger and secure it with an API key.
First, let's create a secure API key that Zapier will use to authenticate its requests:
1) Press the “Settings” button on the “Overview” page.
2) In the “Access tokens” section, press the “Generate token” button:
3) Give a name to the access token and generate it.
💡 Security Tip: Store this API key safely—you'll need it when configuring Zapier, and it can't be retrieved later.
Now we'll create a hook that listens for incoming product data from Zapier:
1) Press the “Create hook” button on the “Overview” page.
2) On the “Trigger” tab, choose the “External” trigger type, and press the “Select” button:
3) Save the hook, and an endpoint URL will be generated for the hook. Take note of the URL, you’ll need it in Zapier:
4) Select the “API key” authentication method, set the “Parameter type” to “HTTP Header” and set the “Parameter name” to “x-http-authentication”.
This hook will:
The external trigger gives you flexibility to receive data from any system that can make HTTP requests, not just Zapier.
5) Switch to the "Hook" tab. For initial testing, we'll use a simple script that logs the incoming data:
This basic script helps verify that Zapier is correctly sending data to your hook. Once confirmed, you can enhance it with product creation logic.
6) Last thing we have to do is to activate the hook on the “Settings” tab:
Before moving to Zapier, verify your hook setup:
With both your Google Sheet and Cloudhooks endpoint ready, let's build the Zapier automation. We'll create a two-step workflow:
Here's what the complete workflow will look like:
First, let's set up Zapier to monitor your product sheet:
1) In Zapier, click "Create Zap"
2) In the trigger configuration:
3) In the trigger settings:
Test the connection by adding a sample row to your sheet
💡 Tip: After testing, review the sample data to ensure Zapier correctly reads all your columns.
After setting up the Google Sheets trigger, we'll configure Zapier to send data to your Cloudhooks endpoint:
1) Click the plus (+) icon after your trigger to add an action
2) In the action setup:
3) In the webhook configuration:
4) Additional settings:
5) Add authentication:
💡 Tip: Check your Cloudhooks logs to verify the payload was received correctly.
To confirm your automation is working correctly:
Now that you have the basic integration working, let's enhance it by adding the actual product creation code in Cloudhooks using the Shopify GraphQL Admin API.
Replace the test hook code with this production-ready version:
This enhanced hook:
To verify the integration is working:
This integration demonstrates the power of combining Zapier with Cloudhooks for Shopify automation. While this example focuses on basic product creation, the possibilities for extending and customizing the workflow are endless. You can build upon this foundation to create more complex automations that match your specific business needs.