Notifying customers when a product is back in stock is a great opportunity to recover eCommerce sales. When a product becomes available again, you can reactivate contacts who have subscribed to back-in-stock alerts for that product.
In this article, you'll learn how to create a back in stock alert (part two).
How it works
After segmenting the products in the Back in stock alert 1/2 workflow, we set up an email that is sent as soon as we identify that the product is back in stock. Once the email has been sent, we check if the contact is still subscribed to a product and, if not, remove them from the segment.
Workflow configuration
STEP 1. "Start" node
(This node will set the target audience for the action).
1. Click (Edit node settings) for the “Start” node.
2. Under Select limitation, check "Is in segment" and in the dropdown select the segment created to group contacts who want to receive the stock notification.
3. Under Select data source, check “All existing and new”.
4. Click Update.
STEP 2. “Schedule” node
(This node will react each day at a specific time to reintroduce contacts to the workflow.)
5. Click (Edit node settings) for the “Schedule” node.
6. Choose how frequently you want it to repeat, in this case "Daily" and select "Every day".
7. Next, select the time of day for the task to launch automatically.
8. Click Update.
STEP 3. “Fetch products” node
(This node will fetch the product for which the contact has subscribed to notifications).
9. Click (Edit node settings) in the “Fetch products” node.
10. Drag "Filtered products" to the block on the right, then click Next.
11. In Main use case settings, the first field selects the products you want to fetch, in this case one.
12. Add a condition, choose "External product ID" to indicate the field with the ID we want to check in imported data. Click Next.
13. On the "Overview" screen, uncheck the box to fill with products until selected limit.
14. Click Update.
STEP 4. First “Check value” node
(This node will identify whether the list obtained in the previous node contains any products.)
15. Click (Edit node settings) of the “Check value” node.
16. Drag the "List size" field from "Fetch products" to the block on the left.
17. Then, under Operator, select "Is greater than".
18. Drag the "Literal" field to the block on the right and set a value of "0".
19. Click Update.
STEP 5. “Send email” node
(This node will send the campaign to the contacts subscribed to the newsletter).
20. At the junction of this node with the previous one, click on the circle until "Yes" appears.
21. Click (Edit node settings) in the “Send email” node.
22. Select the email you want to send and click Next.
23. In the Send to section, select "Contact".
24. Indicate the "Newsletter" type of email.
25. Configure the parameters in the "Send to contact" section.
26. Under Google Analytics, click "Enable Google Analytics" then Next.
27. Click Complete .
STEP 6. First “Set field” node
(This node will delete the ID of the product for which the notification was sent from the field that stored it.)
28. Click (Edit node settings) for the “Set field” node.
29. Drag the Literal field from the block to the left of the corresponding field created to store the product ID of the notice and leave it blank.
30. Then, in the central Operator select "Assign".
31. Click Update.
STEP 7. Second “Check value” node
(This node will identify if the field that stores the other product is empty.)
32. Click (Edit node settings) of the “Check value” node.
33. Drag the field created for this first product from Contact to the block on the left.
34. Then under Operator, select "Is empty".
35. Click Update.
STEP 8. Second "Remove from segment" node
(This node will remove the contact from the segment.)
36. At the junction of this node with the previous one, click on the circle until "Yes" appears.
37. Click (Edit node settings) in the "Remove from segment" node.
38. Select the segment created for contacts who have subscribed to back in stock alerts.
39. Click Update.
Keep learning!
To make the most of your Connectif account, we recommend reading these articles next:
- Discounted product alert 1/2, for the contact to subscribe to a discounted product alert.
- Discounted product alert 2/2, to notify the contact that they have subscribed to the discounted product alert.
- Back in stock alert 1/2, for the contact to subscribe to a back in stock product alert.
- Countdown, to display a countdown to contacts on the website.