Provide a better post-purchase experience. Make it possible for customers to track their orders using a chatbot.
The Show order action for Shopify allows customers to check their order status while chatting with a chatbot. The chatbot just needs the user’s order ID and postal code to check where their package is along the shipping process.
How to show the Shopify order status in ChatBot
-
Open a Story you want to use to let users check their order status.
-
Choose a point in your Story at which you want to add the order status path.
-
To configure the Show order status action, you need to gather customer information first. Do this by using the Question action. Drag it from the menu and drop it into the Story.
-
Open the Question block. In the Question variants field, ask the user for their order ID.
-
In the Validate response with entity field, chose the Any validation type.
-
In the Save response to attribute field, choose a default Order ID attribute, or create a custom one.
-
Lastly, in the Action on failure input field, you can decide what should happen if the user provides an invalid response. You can also set up how many attempts your chatbot should make to obtain a valid response from the user.
-
Now, select Add next question. This adds another section in which you’ll be able to gather more necessary information.
-
In the Question variants field, ask the user for their postal code.
-
In the Validate response with entity field, choose the Any validation type.
-
In the Save response to attribute field, choose a default Postal code attribute or create a custom one.
-
In the Action on failure input field, decide what should happen if the user provides an invalid response. Set up how many attempts your chatbot should make to obtain a valid response from the user.
-
Now, add another Bot response after the Success block. Here, you can thank the user for providing their information and let them know what’s going to happen next.
-
Next, select the Order status action from the Actions and Interactions menu and drop it after the Bot response you’ve added.
-
Open the Show order status block. This action contains the default Shopify attributes — Order ID and Postal code — that were used in the Question action earlier in the Story. This action is ready to use and doesn’t require configuration.
-
Now, you can decide what message will be shown to the user depending on their order status. For that purpose, use Filters. The number of filters you need to add depends on the number of order statuses you want to provide. Check the list of available Shopify statuses.
-
Name the first Filter block as “SENT.” This block will help the chatbot to display a dedicated message to users whose orders have already been fulfilled/shipped.
-
Open the Filter block named “SENT.” Select the Add new filter field and then select Add filter for customer attribute.
-
Now you need to create a new custom attribute for the Show order status action. Type shopify_order_status in the Attribute name field.
-
n the Condition section choose = equals.
-
In the Value section, type “sent.” Now, the chatbot message will appear only if the order is saved as “sent” (fulfilled) in the Shopify system. Finally, select Apply filter.
-
Now, add the Bot response after the Filter block to provide a message for users whose packages have already been shipped.
-
Select the Bot response you added and enter the bot’s reply.
-
Now you can add another Filter block that will let you display a message for users whose orders haven’t been shipped yet. Open the second Filter block and name it IN “PROGRESS.” Configure the block:
-
In the Attribute name, type shopify_order_status.
-
In the Condition field, choose = equals.
-
In the Value field, type “in progress.” Now, the chatbot message will appear only if the order is saved as “in progress” in the Shopify system.
When you’re ready, select Apply filter.
-
-
Then, add the Bot response after the Filter block and provide a message for users whose packages haven’t been sent yet.
-
Lastly, configure the Failure path in case the chatbot can’t find the user’s order ID in the Shopify database. To do so, add the Bot response after the Failure block.
-
Open the Bot response block and enter the chatbot reply.
If you don’t want to build the Show order status path from scratch, use a pre-build Order status flow.