Articles on: Integrations

Use STOQ triggers in Shopify Flow to customize your workflows

B-in-stock notifications and preorder management can be seamlessly integrated with your existing marketing automation tools through Shopify Flow. This guide explains how to leverage STOQ's Flow triggers to automate customer communications and inventory management workflows.

Enable Flow triggers



Go to Back in stock alerts > Integrations for back-in-stock related flow triggers.
Or, go to Preorders > Settings to configure triggers related to preorders.
Look for the "Shopify Flow" section and enable the trigger setting.
Enable any triggers you want STOQ to send. Then, add any of the available triggers below in Shopify Flow to receive events.

Enable Shopify Flow triggers for back in stock alerts in STOQ

Enable Shopify Flow triggers for preorders in STOQ


Available triggers for back in stock alerts



1. Customer signed up


Triggered instantly when a customer signs up for back-in-stock notifications through your storefront. Use this to track signup activity and initiate customer engagement workflows.

Variables:
VariableDescription
Customer IDUnique identifier for the customer
Customer nameCustomer's full name
Customer localeCustomer's locale setting
Customer emailCustomer's email address
Customer phoneCustomer's phone number
Product referenceReference to the product in Shopify
Product IDShopify product ID
Variant IDShopify variant ID
Market IDShopify market ID


2. Customer notified for email back in stock alert


Triggered when STOQ needs to send back-in-stock notifications to customers. This trigger can be used to send emails through your preferred marketing automation tool instead of STOQ's built-in email system.

How it works:
Create a new workflow with STOQ's "Customer notified for email back in stock alert" as the trigger
Connect your marketing tool's extension to the workflow
Use the event data to populate the email template and notify your customer.

Variables:
VariableDescription
Customer IDUnique identifier for the customer
Customer nameCustomer's full name
Customer emailRecipient's email address
Customer localeCustomer's locale setting
Customer phoneCustomer's phone number
Product referenceReference to the product in Shopify
Product IDShopify product ID
Variant IDShopify variant ID
Market IDShopify market ID
Notification typeType of notification (email/sms)
Checkout linkDirect link to checkout
Product page linkLink to product page
Unsubscribe linkLink to unsubscribe from notifications


Email Provider Options



When using the "Customer notified for email back in stock alert" trigger, you can continue to send emails through STOQ's email system or use your preferred marketing automation tool through Shopify Flow. Make sure to set the email sender in Back in stock alerts > Notifications > Customize email.

3. Product Variant Restocked


Triggered when a product variant's inventory is restocked and matches all conditions set in STOQ's dashboard. This allows you to automate actions based on inventory changes.

Variables:
VariableDescription
Product referenceReference to the product in Shopify
Product IDShopify product ID
Variant IDShopify variant ID
Market IDsComma-separated list of Market IDs where restock occurred



Available triggers for preorders



4. Product Added to Offer


Triggered when a product is added to a selling plan or offer, enabling automation of offer-related workflows and inventory management.

Variables:
VariableDescription
Product IDShopify product ID
Variant IDShopify variant ID
Offer NameName of the selling plan
Offer Order TagsTags applied to orders using this offer


5. Customer Placed Preorder


Triggered when a customer successfully places a preorder, allowing you to track and manage preorder activities in your marketing or inventory systems.

Variables:
VariableDescription
Order referenceReference to the order in Shopify



Limitations



Flow events are rate limited. For large sets of customers in waitlists, you may experience some delay in receiving trigger events.

Updated on: 17/02/2025

Was this article helpful?

Share your feedback

Cancel

Thank you!