Ecommerce automation uses software to run repeatable store operations when a defined event occurs and the relevant business rules pass. In Shopify Flow, a trigger starts the workflow, a condition checks relevant data, and an action sends a notification, updates data, or takes another supported step. The same vocabulary helps when designing workflows across a storefront, a warehouse management system, and a support queue. Shopify Flow trigger, condition, and action reference
Turn an instruction such as “tell us when stock is low” into a rule with an owner and a measurable output. Specify the inventory scope, the threshold, and whether you want an alert on crossing the threshold or a recurring reminder. Decide what a missing quantity means. A blank or untracked value should go to an exception queue until someone confirms the source, because treating it as zero can trigger unnecessary action.
In Shopify Flow, start with Product variant inventory quantity changed. For an illustrative variant-level rule, check that the previous quantity was at least 10 and the current quantity is below 10. Add Send internal email to notify the inventory owner with the store, variant or SKU, previous and current quantities, and a place to verify the item. Test 11 to 9, which should alert, and 9 to 8, which should stay quiet. After replenishment, a fresh crossing should alert again. Shopify inventory trigger, previous quantity, and templates
If the decision concerns one warehouse, check available quantity for the relevant location. A variant's previous quantity and a warehouse's current quantity may describe different scopes. Use like-for-like values for a location-level crossing, or start with a reviewed location report when you do not have its previous quantity.
In Shopify, one purchase can produce several fulfillment orders assigned to different locations. The Fulfillment order ready to fulfill trigger can also run again after a hold is released. For an internal routing workflow, confirm the assigned location and recheck payment and hold status before handing off work. For example, an order split between two warehouses should route each eligible fulfillment order to the assigned warehouse. A held record should reach the review queue. For a rule that sends a specific handoff once, deduplicate on store, fulfillment order ID, and action. Shopify documents that the trigger excludes fulfillment orders created by editing an order, so include edited orders in a separate reconciliation check when they matter. Shopify fulfillment readiness and trigger limits
Let the workflow assemble the store, order ID, return reference, proposed amount and currency, and reason in an internal case. Have an authorized reviewer check the refundable balance, prior refunds, and the return record before approving. After approval, re-read the order before any payment action. A support agent or another integration may have refunded it while the case waited. If submission times out, look up the existing refund and reconcile it with the case before retrying. Shopify supports partial and full refunds and warns that a refund initiated in Shopify admin cannot be reversed there. Shopify refund options and considerations
| Approach | Use it when | Check before launch |
|---|---|---|
| Named Browser Profiles | An operator needs to review an exception or switch between approved store admins | Verify the active store and operator permissions before approving or writing data |
| Native rules such as Shopify Flow | The platform exposes the necessary trigger, data, and action | The trigger fires at the right point, and each branch reaches the intended recipient or record |
| API and webhooks | A storefront, warehouse, or support system must exchange structured data | Verify delivery, deduplicate messages and business actions, and reconcile missing or late updates |
| Browser RPA | An authorized legacy admin exposes a narrow read through its browser interface | Confirm the store and record on each run, stop on an unexpected page or missing field, and review evidence with the operator |
Shopify can deliver the same webhook more than once. Use X-Shopify-Webhook-Id to identify repeat deliveries where applicable. Separately give each intended business action a durable identity. Two different events can refer to the same dispatch or refund. An integration that writes should claim the action in a durable store, persist the destination reference on success, and route a timeout with unknown outcome to reconciliation. Re-read current state before acting if a late event could change the decision. Shopify webhook verification and duplicate delivery
For a shortage that requires judgment, create a named Browser Profile for each approved workspace, such as Brand A — Store Admin and Brand A — Warehouse Staging. Open the assigned workspace, confirm the store identifier, and review the item manually. The Profile identifies where the operator should work, while the store or warehouse system grants its permissions. Add RPA when a recurring read has a stable target and a clear exception condition.
Use one approved staging Browser Profile and a test record in a legacy admin your team controls. The example is a read-only stock reconciliation for SKU-QA-1042. It produces an internal observation for a reviewer, who can compare it with the storefront's stock record. The browser may redirect or render the wrong record even after navigation succeeds, so verify the target and stop on an unrecognized state.
Run a small acceptance test with fixture data and compare the source record, workflow history, and destination. Use a designated internal recipient or review queue. Increase the rollout from one store or location only after its operator can find and resolve exceptions.
| Test | Expected outcome |
|---|---|
| Stock moves 11 to 9, and the same event arrives again | The original crossing reaches the inventory owner once |
| A later stock update arrives before an older update | The older message cannot overwrite the newer state in a sync |
| An order has two fulfillment orders, one held | Only the eligible record reaches its assigned warehouse. The hold is visible to the reviewer |
| Refund submission times out after possible processing | The case stays open for reconciliation. The reviewer checks the destination before another submission |
Start with one alert, name the operator, and write down where they can verify the result. If the missing information only exists in an authorized test admin, use a narrow browser read to validate the handoff.
Q: What ecommerce task should I automate first?
Pick a frequent, reversible task with a clear owner, such as a stock alert. Compare alert and exception counts with the source records before expanding to fulfillment or payment actions.
Q: How do I keep ecommerce automation from running twice?
Track duplicate deliveries and duplicate business actions separately. Use the event ID where available and a durable action identity for each dispatch or approval. Reconcile any write whose outcome is unknown.
Q: Can Shopify Flow automate fulfillment?
Flow provides fulfillment-related triggers and actions. Check which event exposes the required fulfillment order, who owns that record, and how holds or edits affect your workflow before enabling a consequential action.
Q: When should I use browser RPA for ecommerce?
Use it for a scoped, authorized task that exists only in a browser interface, such as reading one stock status from a legacy admin for a human review.