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 bot you want to use to let users check their order status.
-
Choose a point in your bot where 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 bot.
-
Open the Question block. In the Question variants field, ask the user for their order ID.
-
In the Validate response with entity field, choose the Any validation type.
-
In the Save response to attribute field, choose a default Order ID attribute or create a custom one.
-
Decide what should happen if the user responds invalid in the Action on failure input field. 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 can 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 responds invalid. Set up how many attempts your chatbot should make to obtain a valid response from the user.
-
Add another Bot response after the Success block.
-
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 bot. This action is ready to use and doesnât require configuration.
-
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.
-
Create a new custom attribute for the Show order status action. Type shopify_order_status in the Attribute name field.
-
In 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.
-
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.
-
-
Add the Bot response after the Filter block and provide a message for users whose packages havenât been sent yet.
-
Configure the Failure path if 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.
Read more: