How to use STOQ triggers in Shopify Flow to build custom workflows
STOQ integrates with Shopify Flow so you can automate workflows around back-in-stock alerts and preorders. When events happen in STOQ — such as a customer signing up for an alert, a product getting restocked, or a preorder being placed — STOQ sends triggers directly to Shopify Flow. You can combine these triggers with conditions and actions to build powerful, custom automations without writing any code.
Before You Begin
Make sure you have the following before you enable Flow triggers:
- A paid STOQ plan (Shopify Flow triggers are not available on the free plan)
- Shopify Flow installed on your store (it is free and available to all Shopify plans that support it)
- STOQ installed and active on your Shopify store
How to Enable STOQ Triggers in Shopify Flow
Follow these steps to turn on Flow triggers and select which events STOQ should send.
Step 1: Open the Shopify Flow Integration
- Open the STOQ app in your Shopify admin.
- Click Back in stock alerts in the left-hand menu.
- Navigate to the Settings section, then scroll to Integrations.
- Click Set up on the Shopify Flow card.

Step 2: Turn On the Flow Triggers Toggle
- In the Triggers tab, turn on the Flow triggers toggle.
- Click Save in the top bar to confirm.
Once enabled, STOQ will send events to Shopify Flow whenever the selected triggers fire.

Step 3: Select Individual Triggers
- Under Available triggers, check the box next to each trigger you want to activate.
- Click Save.

You can enable or disable triggers independently. Only checked triggers will send events to Shopify Flow.
Step 4: Create a Workflow in Shopify Flow
- Open Shopify Flow from your Shopify admin (under Apps).
- Click Create workflow.
- Click Select a trigger, then search for STOQ or Restock Rocket.
- Choose one of the available STOQ triggers (for example, Customer signed up for back in stock alerts).
- Add any conditions and actions you need.
- Click Turn on workflow when you are ready to go live.



Available Triggers for Back-in-Stock Alerts
STOQ provides three triggers related to back-in-stock alerts. These fire when customers sign up, get notified, or when inventory is restocked.
Customer Signed Up
Fires instantly when a customer signs up for a back-in-stock notification on your storefront. Use this to track signup activity, sync customers to external tools, or send a confirmation message.
Variable | Description |
|---|---|
Customer ID | Unique identifier for the customer |
Customer name | Customer's full name |
Customer email | Customer's email address |
Customer phone | Customer's phone number |
Customer locale | Customer's locale setting |
Product ID | Shopify product ID |
Variant ID | Shopify variant ID |
Variant name | Name of the product variant |
Signed up at | Date and time the customer signed up |
Market ID | Shopify market ID |
Product reference | Reference to the product in Shopify |
Customer Notified for Email Back-in-Stock Alert
Fires when STOQ is ready to send a back-in-stock email notification to a customer. You can use this trigger to send the notification through your own marketing tool instead of STOQ's built-in email system.
Variable | Description |
|---|---|
Customer ID | Unique identifier for the customer |
Customer name | Customer's full name |
Customer email | Recipient's email address |
Customer phone | Customer's phone number |
Customer locale | Customer's locale setting |
Product ID | Shopify product ID |
Variant ID | Shopify variant ID |
Variant name | Name of the product variant |
Market ID | Shopify market ID |
Product reference | Reference to the product in Shopify |
Notification type | Type of notification (email or SMS) |
Checkout link | Direct link to checkout with the product in cart |
Product page link | Link to the product page |
Unsubscribe link | Link for the customer to unsubscribe from notifications |
Product Variant Restocked
Fires when a product variant's inventory is restocked and matches the conditions set in STOQ's dashboard. Use this to trigger inventory-related automations, such as notifying your team or updating external systems.
Variable | Description |
|---|---|
Product ID | Shopify product ID |
Variant ID | Shopify variant ID |
Market IDs | Comma-separated list of market IDs where the restock occurred |
Product reference | Reference to the product in Shopify |
Available Triggers for Preorders
STOQ provides five triggers related to preorders. These fire when customers place preorders, when products are added to or removed from offers, and when offers are enabled or disabled.
Customer Placed Preorder
Fires when a customer successfully places a preorder. Use this to track preorder activity, send confirmation emails, or update your fulfillment workflow.
Variable | Description |
|---|---|
Order reference | Reference to the order in Shopify |
Order Number | Shopify order number |
Order Name | Shopify order name (for example, #1001) |
Product Added to Offer
Fires when a product variant is added to a preorder offer. Use this to automate inventory tracking or notify your team when new products join an offer.
Variable | Description |
|---|---|
Product ID | Shopify product ID |
Variant ID | Shopify variant ID |
Offer Name | Name of the preorder offer |
Offer Order Tags | Tags applied to orders placed through this offer |
Product reference | Reference to the product in Shopify |
Product Removed from Offer
Fires when a product variant is removed from a preorder offer. Use this to trigger clean-up actions or update external systems.
Variable | Description |
|---|---|
Product ID | Shopify product ID |
Variant ID | Shopify variant ID |
Offer Name | Name of the preorder offer |
Offer Order Tags | Tags applied to orders placed through this offer |
Product reference | Reference to the product in Shopify |
Preorder Offer Enabled
Fires when a preorder offer is turned on. Use this to send internal notifications or start marketing campaigns for the offer.
Variable | Description |
|---|---|
Offer Name | Name of the preorder offer |
Offer Internal Name | Internal name for the offer (used in STOQ dashboard) |
Offer ID | Unique identifier for the offer |
Offer Order Tags | Tags applied to orders placed through this offer |
Preorder Offer Disabled
Fires when a preorder offer is turned off. Use this to stop related automations or notify your team.
Variable | Description |
|---|---|
Offer Name | Name of the preorder offer |
Offer Internal Name | Internal name for the offer (used in STOQ dashboard) |
Offer ID | Unique identifier for the offer |
Offer Order Tags | Tags applied to orders placed through this offer |
Send Restock Alerts Through Shopify Flow
STOQ lets you replace its built-in email system with Shopify Flow for full control over your restock alert emails. This is useful if you want to send branded emails through a third-party marketing tool like Klaviyo, Omnisend, or Mailchimp via their Shopify Flow connectors.
To set this up:
- Turn on the Customer notified for email back in stock alert trigger in the Shopify Flow integration (as described above).
- Go to Back in stock alerts > Notifications > Customize email and select Shopify Flow as your email platform.
- Create a workflow in Shopify Flow using the Customer notified for email back in stock alert trigger.
- Add your preferred marketing tool's action (for example, "Send email via Klaviyo") and use the trigger variables to populate the email template.
Available Shopify Flow Actions
In addition to triggers, STOQ provides built-in Shopify Flow actions you can use in any workflow. These actions let you automate preorder management and back-in-stock notifications directly from Shopify Flow.
Preorder Actions — Payments
- Collect pending payment — Capture a pending payment on a preorder with partial or deposit payment.
Preorder Actions — Fulfillments
- Hold all fulfillments — Place a hold on all fulfillments in a preorder to prevent them from being fulfilled.
- Release all fulfillments — Release all fulfillments that are on hold and change them to "Unfulfilled."
- Open scheduled fulfillments — Open scheduled fulfillments for a preorder, changing them from "Scheduled" to "Unfulfilled."
- Split preorder fulfillments — Split preorder items into separate fulfillment orders from regular items.
- Send shipping update notification — Send a shipping update email to the customer for a preorder.
Preorder Actions — Offers
- Add product variant to offer — Add a product variant to a preorder offer in STOQ.
- Remove product variant from offer — Remove a product variant from a preorder offer in STOQ.
Back-in-Stock Actions
- Notify customers in waitlist — Send back-in-stock notifications to customers waiting for a specific variant.
Known Limitations
There are a few constraints to keep in mind when using STOQ triggers in Shopify Flow.
- The Shopify Flow integration requires a paid STOQ plan. Free-plan stores cannot enable it.
- Flow events are rate limited. For large waitlists, you may experience a short delay before all trigger events are delivered to Shopify Flow.
- Each trigger must be individually enabled using the checkboxes on the Triggers tab. Turning on the main toggle alone does not activate any specific trigger.
- If your store's Shopify access token becomes invalid, STOQ automatically disables the Flow triggers toggle. You will need to re-enable it after resolving the access issue.
- The Customer notified for email back in stock alert trigger fires per customer. For waitlists with hundreds of customers, events are sent sequentially and may take a few minutes to complete.
- Preorder-related triggers (Customer placed preorder, Product added to offer, Product removed from offer, Preorder offer enabled, Preorder offer disabled) can also be configured from Preorders > Settings in STOQ.
Troubleshooting
If your Shopify Flow workflows are not receiving events from STOQ, check the table below.
Symptom | Likely Cause | Fix |
|---|---|---|
No trigger events appear in Shopify Flow | The Flow triggers toggle is not enabled | Go to Back in stock alerts > Settings > Integrations > Shopify Flow and turn on Flow triggers |
No trigger events appear in Shopify Flow | The individual trigger checkbox is not checked | Check the box next to the specific trigger you want to use and click Save |
Triggers stopped working suddenly | The store's access token became invalid, and STOQ auto-disabled the integration | Re-enable the Flow triggers toggle and check that your Shopify access permissions are intact |
Trigger events are delayed for large waitlists | Flow events are rate limited | This is expected. Events are processed in the background and may take a few minutes for large lists |
"Customer notified" trigger fires but no email is sent | Shopify Flow is not set as the email platform | Go to Back in stock alerts > Notifications > Customize email and select Shopify Flow as your email platform |
Workflow runs but the action fails | The action requires additional configuration | Open the action step in Shopify Flow and fill in the required fields |
STOQ triggers do not appear when searching in Shopify Flow | STOQ is not installed or Flow triggers are disabled | Make sure STOQ is installed, then enable the Flow triggers toggle and the specific trigger |
FAQs
Common questions about using STOQ triggers in Shopify Flow.
Q: Do I need to enable every trigger?
A: No. You can enable only the triggers you plan to use. Each trigger has its own checkbox, so you have full control over which events STOQ sends to Shopify Flow.
Q: Can I use STOQ triggers with third-party marketing tools in Shopify Flow?
A: Yes. Many marketing tools like Klaviyo, Omnisend, and Mailchimp have Shopify Flow connectors. You can combine a STOQ trigger with their actions to send branded emails, add contacts to lists, or start automations.
Q: What happens if I disable the Flow triggers toggle?
A: STOQ stops sending all trigger events to Shopify Flow immediately. Your existing workflows in Shopify Flow remain intact but will not receive any new events until you re-enable the toggle.
Q: Can I send restock alert emails through Shopify Flow instead of STOQ?
A: Yes. Enable the Customer notified for email back in stock alert trigger, then select Shopify Flow as your email platform in Back in stock alerts > Notifications > Customize email. STOQ will delegate the notification to your Flow workflow.
Q: Why are my trigger events delayed?
A: Flow events are rate limited and processed in the background. For large waitlists with many customers, it may take a few minutes for all events to arrive in Shopify Flow. This is normal behavior.
Q: Where do I configure preorder-related triggers?
A: You can enable preorder triggers from two places: the Shopify Flow integration page at Back in stock alerts > Settings > Integrations > Shopify Flow, or from Preorders > Settings in the STOQ app. Both locations control the same triggers.
Q: Are STOQ's Shopify Flow actions different from triggers?
A: Yes. Triggers are events that start a workflow (for example, "Customer signed up"). Actions are steps that run inside a workflow (for example, "Hold all fulfillments"). STOQ provides both triggers and actions. You can view the full list of actions on the Actions tab in the Shopify Flow integration page.
Updated on: 14/04/2026
Thank you!