Skip to main content
Solved

Using Product Ordered Title in Flow Filter After Product is Delivered


Forum|alt.badge.img

I am using aftership But I am open to switching to a different app if it can give me the name of the product when creating the trigger

Cause from what I have understood this is not possible with aftership based on this comment here:
 



However this is pretty important for my store so it must be done in some way.
I am trying to start a flow for the customer based on the product name and that would begin ideally after the shipment has been delivered as timing is important.
In Other metric triggers it seems the best ways was to choose a trigger → product name/items → contains → “name of the product”

Interestingly enough it seems the data is present when constructing the email via the personalization variables and can be accessed with the following: {{ event.OrderLineItems.0.ItemTitle|default:'' }}
Is there anyway I can get and use this data as a trigger filter when starting the flow? Is there anyway to get this data and the order delivered notification in one trigger for a flow? Shopify tags? 
If you know or can recommend any other means to check product name upon delivery to begin a flow I am open to that as well but timing & the name of the product both seem important.

Thank you and any help is appreciated

Best answer by muffinman

For anyone else with this problem solved it by better understanding the structure of the whole platform.

I created a segment for each specific product by name and required entry into the segment with 2 triggers-
-Aftership’s shipment for delivered

-Shopify’s Ordered Product for ProductName (which was also segment name

Then I made a flow for that specific product & segment to trigger whenever an individual was added/met those parameters

I appreciate all the responses from the team

View original
Did this topic or the replies in the thread help you find an answer to your question?

3 replies

emma.owens
Community Manager
Forum|alt.badge.img+9
  • Community Manager
  • 42 replies
  • February 5, 2025

Hi ​@muffinman ! 

Thank you for reaching out to the Community. So from what I can gather, you are looking to trigger your flow based on the Delivered Shipment Aftership event. Then, you want to set up a trigger filter so that only shipments with specific products in it will enter the flow? 

Unfortunately it looks like ItemTitle is nested too deeply within the Delivered event to appear as an option in the trigger filter dropdown. I would suggest reaching out to AfterShip to see if they’re able to make ItemTitle top level data so that it is included as a trigger filter option. 

If you can provide some additional clarification around why you are looking to use this trigger filter, I may be able to offer some alternative solutions! 

 


hani
Contributor I
  • 2025 Champion
  • 2 replies
  • February 5, 2025

Emma is correct, the data is too deeply nested to appear in the trigger filter. There is a technical way around this:

  1. Redirect the webhook from AfterShip to your own custom API endpoint
  2. This endpoint creates a new event object that surfaces the product title, and/or any other data you want to branch off at the top of the object (not nested) so it’s visible to the trigger
  3. You pass this new event to Klaviyo to trigger the flow

Forum|alt.badge.img
  • Author
  • Contributor I
  • 3 replies
  • Answer
  • February 7, 2025

For anyone else with this problem solved it by better understanding the structure of the whole platform.

I created a segment for each specific product by name and required entry into the segment with 2 triggers-
-Aftership’s shipment for delivered

-Shopify’s Ordered Product for ProductName (which was also segment name

Then I made a flow for that specific product & segment to trigger whenever an individual was added/met those parameters

I appreciate all the responses from the team