Automate Wishlist Cleanup: Remove Purchased Items on Order
This Flow automatically removes items a customer has purchased from their wishlist, ensuring wishlists are always current and relevant for future shopping.
The Problem
Outdated wishlists are a common headache, forcing customers to manually remove purchased items, leading to frustration and a cluttered shopping experience. This not only wastes their time but can also lead to ineffective marketing campaigns if you're promoting items they already own. Merchants risk decreased customer satisfaction and wasted marketing spend.
What This Automation Solves
This Flow elegantly solves the problem by triggering when an `Order created`, then uses custom `Run code` and `Send HTTP request` actions to identify and remove purchased products from the customer's wishlist. This ensures wishlists stay pristine and relevant without any manual intervention, enhancing the customer journey and focusing future marketing efforts.
When to Use This Automation
- Your store processes a high volume of orders, making manual wishlist management impractical.
- You prioritize a seamless, personalized shopping experience for returning customers.
- You utilize wishlists for targeted marketing and need accurate data to avoid promoting already-owned items.
Workflow
Trigger
Step 1This workflow starts when a new order is created
Condition
Step 2Ensures that the workflow runs for only customers that have a valid email address
Action
Step 3Encode user agent and email ID
Action
Step 4Fetches regId and Session ID
Action
Step 5Encode regid and sessionid
Action
Step 6Fetches the wishlisted items for the customer
Action
Step 7Check if the ordered items contain any wishlisted product
Condition
Step 8Checks if the wishlisted is present in the order based on the response from the previous block
Action
Step 9Logs a summary of wishlisted items in the order (added for debugging purpose only)
Action
Step 10Returns URL-encoded body for deleting the wishlisted item(s)
Action
Step 11Remove the wishlist purchased item(s) from the wishlist
Step-by-Step Setup
- 1
Initiate the Flow with the `Order created` trigger.
- 2
Add a `Condition` to verify the customer associated with the order has an email address.
- 3
Configure the sequence of `Run code` and `Send HTTP request` actions to interface with your wishlist app's API, fetching wishlist data and identifying purchased overlaps.
- 4
Insert a `Condition` after the comparison to proceed only if wishlisted items were found in the order.
- 5
Finalize with a `Send HTTP request` action to send the deletion command to your wishlist app's API, removing the purchased items.
Related Questions
- Will this Flow work with any wishlist app?
- This Flow relies on specific `Run code` and `Send HTTP request` actions that must be tailored to your wishlist app's API documentation. It's designed for apps that provide an API to fetch and modify customer wishlists.
- What if a customer checks out as a guest?
- The Flow includes a `Condition` to ensure a valid email address is present. If your wishlist app links wishlists to customer emails (which is common), this Flow can still function for guest checkouts provided an email is captured.
- Does this support multiple wishlists per customer?
- No, this specific automation is designed for stores with single wishlist mode enabled, meaning each customer has only one primary wishlist.
- How do I get the API details and authentication for my wishlist app?
- You'll need to consult your specific wishlist app's developer documentation for API endpoints, required parameters, and authentication methods (e.g., API keys, tokens). Their support team can also assist with this.
Recommended Tools & Apps
Launch this automation
Open Shopify Flow and use this page as your setup blueprint.
Merchant Insight
To ensure this Flow runs reliably, carefully manage your wishlist app's API keys or tokens using Shopify Flow's built-in secrets feature. This protects your credentials and maintains the security of your automation.
Related Automations
Tag & Prioritize High-Value Orders Automatically with Flow
Automatically identify and tag orders above a custom threshold, enabling your team to prioritize high-revenue customers for expedited processing and support.
Automate Repeat Customer Tagging for Smarter Segmentation
Automatically identify and tag loyal shoppers after their second purchase, streamlining segmentation for personalized marketing and service.
How to Automatically Tag Orders Using a Discount Code
Automatically segment your orders by applying a 'Discounted' tag whenever a customer uses a promotional code, simplifying reporting and future marketing efforts.