The Order Filter Block is a powerful new feature that allows you to filter Shopify orders based on order creation date and shipping status. This enables you to dynamically respond to user queries, automate processes, and customize interactions, enhancing the efficiency and personalization of your flows.
Overview
The Order Filter Block evaluates specified Shopify order properties and determines which flow node to execute. It requires input variables such as order.id
or order name
(e.g., #1234
).
Where to Find It
The Order Filter Block is located in the Flow Builder under the Flow Control Blocks section in the right menu panel.
Filter Outcomes
The Order Filter Block has three outcomes, each represented by a distinct node in the flow:
1. If Filter Matches Node
Triggered when the input variable matches the specified filter criteria.
Example Use Cases:
Send order tracking details for orders created recently.
Provide promotional offers for users with delivered orders.
2. Else Node
Triggered if the input variable does not match the filter criteria.
3. Order Not Found Node
Triggered when no matching order is found based on the specified criteria.
Example Use Cases:
Display a message: “We couldn’t find your order. Please check the order ID and try again.”
Redirect users to customer support for further assistance.
Filter Options
The Order Filter Block evaluates orders based on the following properties:
1. Order Creation Date
Filter orders by their creation date using the following options:
Relative:
Orders placed in the last X days.
Orders placed between the last X and Y days.
Absolute:
Orders placed on a specific date.
Orders placed before or after a specific date.
Orders placed within a specific date range.
2. Shipping Status
Filter orders by their shipping status. Available options include:
Delivered
Shipped
Not Yet Shipped
Partially Shipped
Sample Use Cases:
1. Exclude Recently Ordered Users
Scenario: Prevent sending product recommendations to users who placed an order in the past X days.
Solution: Use the Order Filter Block to check the creation date and exclude users who have recently placed orders.
2. Automate Order Tracking Responses
Scenario: Automatically respond to tracking inquiries, e.g., “Tracking details will be available after 3 days of ordering,” without agent intervention.
Solution: Use the Order Filter Block to evaluate creation date and shipping status, automating accurate responses.
Steps to Use the Order Filter Block:
Add the Order Filter Block: Drag the block into your flow from the Flow Control Blocks section in the right menu panel.
Provide Input Variable: Enter a variable such as
order.id
ororder name
.Set Filters:
Define criteria for Order Creation Date or Shipping Status.
Configure Nodes:
If Filter Matches Node: Define the flow to execute when criteria are met.
Else Node: Configure a response for cases with no valid input or mismatched input.
Order Not Found Node: Set a response for cases where no matching order exists.
Save and Test: Validate your flow to ensure it works as expected.
FAQs:
1. What variables can I use with the Order Filter Block?
You can use variables like order.id or order name (e.g., #1234) as input for filtering.
2. Can I handle cases where no matching order is found?
Yes. If no matching order is found, the Order Not Found Node is triggered. You can configure this node to:
Display a message: “We couldn’t find your order. Please check the order ID.”
Redirect users to customer support.
3. Can I filter multiple orders for the same user?
No. The block evaluates one order at a time and does not aggregate results from multiple orders.
4. Can I filter orders by other properties?
Currently, the block supports filtering only by order creation date and shipping status.
For further assistance or to raise feature requests related to order filter block, please contact [email protected].