Package tracking

luiza jurczyk

Last update:

The package is on its way? Let customers know directly from the chat window.

In the ecommerce business, the real challenge starts when the order leaves the warehouse and begins its journey to the customer. Customers want their order to arrive quickly, safely and at the time they can arrange a pickup. To meet the expectations, most ecommerce companies engage a logistics service provider to operate fast and reliable on a national or even a global scale.

Package Tracking Bot Sometimes, the tracking packages systems provided by logistics companies aren’t sufficient or require lots of steps to know the package status. With the Package Tracking template, you can regain control over deliveries and enhance the user experience. Import the template now and provide your customers with the delivery status within the chat window.

Are you ready? Let’s get started! 🚀

Getting started with the Package Tracking template

The package tracking template can be an excellent complement to your existing chatbot, or an independent bot created to check deliveries. To get started, go to your ChatBot account and import the template. So now, let’s see step by step how does it work. ✨

In this short story, the bot asks users for the order number using the Ask Question action that validates if the answer is alphanumeric and saves it as an attribute named trackingNumber. The number is forwarded to the system by a webhook.

The system response always contains three parameters:

  • trackingNumber — the tracking number provided by the user
  • statusType — the status code that indicated the current delivery status
  • statusDescription — status description

{ “sessionParameters”: { “trackingNumber”: “1ZCB345E020527168P”, “statusType”: “P”, “statusDescription”: “Picked Up.” } }

There are six statuses that can be possibly returned by the system:

  • I = In Transit
  • D = Delivered
  • X = Exception
  • P = Pickup
  • M = Manifest Pickup
  • E = Error

Received statuses are used to route the bot to relevant interactions. That can be done with the filters that check the trackingNumber attribute and act accordingly. Filters check the received attribute and trigger the relevant interaction. Each status triggers different interaction that returns basic information about the package status. You can easily extend these messages and add the exact package location, your customer service contact number or anything you want. An interaction is based on the status code. Check this documentation to prepare your package tracking system. Congrats! Your package tracking bot is ready to go! 🎊✨🎉

How to import and test the template

  1. Click here to go to your dashboard and import the Package Tracking Bot. Import the Package Tracking bot template.
  2. When you’re ready, go to Stories and open the imported template. Hit test story to test the template in the built-in chat. Test the template in the built-in chat.
  3. Click Check order status to start testing the template. Check order status.
  4. To help you test the template, we prepared six package numbers, each with a different status code. The number combines the string 1ZCB345E020527168 with the status code added to the end. For example, 1ZCB345E020527168D would provide the delivered bot response. Enter the dleivery code.
  5. Enter various tracking numbers to check all available bot answers.

How the back-end works

We’ve prepared a simple backend to show the delivery status. The full code is available here.