Sample Lookup Adaptor Project Plan #
This is a sample project plan that will guide you through setting up WISMO (Where Is My Order) on Sidekick for custom Lookup Adaptors. The goal of these exercises is to add attributes, from easy to complex, that will enhance the customer experience in Sidekick.
Pre-requisites: #
- You have auto-linking by Email enabled for your Lookup Adaptor.
- You are using Sidekick for Chat or plan to implement chat.
- You have built a Lookup Adaptor to display order details in Gladly.
Phase 0: Display Basic Order Information #
Now that WISMO Threads and Sidekick are configured, let’s do the following so we can show basic information on the Customer’s latest order’s shipment within Sidekick through a WISMO Thread.
- Update your Lookup Adaptor detailed lookup response to contain the following information for customer orders.
- Validate the new attributes have been successfully added to your Lookup Adaptor.
- Confirm the data is being displayed properly to your customers in Sidekick.
Let’s get started
- Update your Lookup Adaptor to include the following attributes:
- orderNumber
- createdAt
- orderTotal
- customerOrderUrl
- Validate the new attributes have been successfully added.
- Log into Gladly and go to Settings → App Developer Tools → Lookup Adaptor Debugger and select the Test Autolinking + Detailed Workflow option.
- Enter an email address of a customer that has order data.
- Select the Lookup Adaptor from the drop-down list.
- Click Test.
- Check the Detailed response. You may need to update your custom Lookup Adaptor to send back a payload like this:
- Now that you confirmed that the Lookup Adaptor is working, let’s test Sidekick. Go to Settings → Channel → Sidekick in Gladly.
- Select the Sidekick you want to test, click the three dots and select View Preview.
- A new window will pop up. This is the Sidekick you will use for testing.
- Select the chat button on the bottom right corner and enter your email address and name.
- Select the button that has been linked to the WISMO Thread (i.e., “Order Status”). Once you click “Order Status”, an email will be sent to the email address provided with an authorization code. Go to the email account, find the email, and copy & paste the authentication code into Sidekick.
- Once the account has been verified, Order details will be displayed in Sidekick.
This is the Customer’s view in Sidekick:
This is the Agents view in the Conversation Timeline:
You have just completed testing the WISMO SST by retrieving basic order information using a custom Lookup Adaptor. Your Customers can now see basic order information within Sidekick.
Phase 1: Expose Basic Shipment Tracking Information #
Now that we have basic order information available to Customers in Sidekick, let’s enhance the experience to show basic tracking/fulfillment information. We will follow the same steps as Phase 0 above:
- Update your Lookup Adaptor detailed lookup response to contain the following information for customer orders.
- Validate the new attributes have been successfully added to your Lookup Adaptor.
- Confirm the data is being displayed properly to your customers in Sidekick.
Let’s get started
- Update your Lookup Adaptor to include the following attributes:
- fulfillments[n].trackingUrl
- fulfillments[n].trackingNumber
- Validate the new attributes have been successfully added.
- Log into Gladly and go to Settings → App Developer Tools → Lookup Adaptor Debugger and select the Test Autolinking + Detailed Workflow option.
- Enter an email address of a customer that has order data.
- Select the Lookup Adaptor from the drop-down list.
- Click Test.
- Check the Detailed response. You may need to update your custom Lookup Adaptor to send back a payload like this:
JSON
{
"results": [
{
"externalCustomerId": "6u3DitFgR3GFDIpLbHiBKQ-external-id",
"emails": [
{
"original": "[email protected]"
}
],
"transactions": [
{
"type": "ORDER",
"orderNumber": "12345",
"createdAt": "2022-12-01T12:00:00.000Z",
"orderTotal": "$100.00",
"customerOrderUrl": "https://my-store.com/orders/12345",
}
]
}
]
}
- Now that you confirmed that the Lookup Adaptor is working, let’s test Sidekick. Go to Settings → Channel → Sidekick in Gladly.
- Select the Sidekick you want to test, click the kebab icon, and select View Preview.

- A new window will pop up. This is the Sidekick you will use for testing.
Select the chat button on the bottom right corner and enter your email address and name.
Select the button that has been linked to the WISMO Thread (i.e. “Order Status”). Once you click “Order Status”, an email will be sent to the email address provided with an authorization code. Go to the email account, find the email, and copy & paste the authentication code into Sidekick.
Once the account has been verified, Order and shipment details will be displayed in Sidekick.
This is the Customer’s viewin Sidekick:
This is the Agent’s view in the Order Card:
If you do not have the carrier and/or trackingUrl saved, no worries. You can generate the trackingUrl for each carrier based on the trackingNumber:
Carrier | Example | Description | URL |
---|---|---|---|
FedEx | 02394653084833154920 | FedEx assigns a 12-digit number, but there are also, 10-digit, 15-digit, 20-digit, and 22-digit numbers. Mostly, FedEx tracking numbers contain no letters. | https://www.fedex.com/fedextrack/?trknbr=TRACKING_NUMBER |
FedEx SmartPost | 9202394653084833154920 | FedEx SmartPost merely drops them at the local post office. USPS carries SmartPost parcels for the final leg of their journey, known as the “last mile.” The original FedEx tracking number will start with 612/748. USPS tracking number prefix’s FedEx number with 92. | same as above. |
UPS | 1Z 999 AA1 01 2345 6784 | The most common tracking number format is a combination of 18 alphabetic and numeric characters, usually starting with “1Z”. Some other less common formats may also exist. | http://wwwapps.ups.com/etracking/tracking.cgi?tracknum=TRACKING_NUMBER |
USPS | USPS Tracking® 9400 1000 0000 0000 0000 00 | The most common tracking number format is 20 digits or a combination of 13 alphabetic and numeric characters, usually starting with 2 alphabets, followed by 9 digits, and ending with “US”. Some other less common formats may also exist, such as 10 digits. | https://tools.usps.com/go/TrackConfirmAction_input?strOrigTrackNum=TRACKING_NUMBER |
DHL Parcel | 3S1567810922 | Tracking number has a 10-digit number and letters, starting with 3S, JVGL, or JJD. | http://www.dhl.com/cgi-bin/tracking.pl?AWB=[TRACKING_NUMBER] |
DHL Express | JJD019873458976 | Tracking number will have a 10-digit numeric beginning with 000, JJD01, JJD00, JVGL, or a similar variation. | http://www.dhl.com/en/express/tracking.html?AWB=TRACKING_NUMBER |
DHL eCommerce | GM2951173225174494 | Tracking number will vary from 10 to 39 characters. It usually starts with GM, LX, and RX. Alternatively, the tracking number can start with up to five digits. | |
DHL Global Forwarding Airfreight Masterbill | 125-12345678 | Tracking number is a 3-digit carrier code, followed by space or dash (-), followed by the 8-digit master bill number. | |
DHL Global Forwarding US DOMESTIC | SEA1234567, LAX1234567 | Tracking number is the airport code (three alphas) followed by numerics with no spaces in between (AAANNNNNNN). |
Code samples for FedEx, UPS, and USPS can be found in Andrew Kurochkin’s blog post here. For additional carriers, see Parcelsapp.com.
Phase 2: Expose Advanced Shipment Tracking Information #
Now that we have basic order and fulfillment information available to Customers in Sidekick, let’s enhance the experience to show detailed product and fulfillment/shipping information.
We will follow the same steps as Phase 0 and Phase 1 above:
- Update your Lookup Adaptor detailed lookup response to contain fulfillment details.
- Validate the new attributes have been successfully added to your Lookup Adaptor.
- Confirm the data is being displayed properly to your customers in Sidekick.
Let’s get started
- Update your Lookup Adaptor to include the following attributes:
- fulfillments[n].productIds
- fulfillments[n].estimatedDeliveryDate
- fulfillments[n].status
- itemCount
- products Array for each order
- products[n].imageUrl
- Validate the new attributes have been successfully added.
- Log into Gladly and go to Settings → App Developer Tools → Lookup Adaptor Debugger and select the Test Autolinking + Detailed Workflow option.
- Enter an email address of a customer that has order data.
- Select the Lookup Adaptor from the drop-down list.
- Click Test.
- Check the Detailed response. You may need to update your custom Lookup Adaptor to send back a payload like this:
- Now that you confirmed that the Lookup Adaptor is working, let’s test Sidekick. Go to Settings → Channel → Sidekick in Gladly.
- Select the Sidekick you want to test, click the three dots and select View Preview.
- A new window will pop up. This is the Sidekick you will use for testing.
- Select the chat button on the bottom right corner and enter your email address and name.
- Select the button that has been linked to the WISMO Thread (i.e., “Order Status”). Once you click “Order Status”, an email will be sent to the email address provided with an authorization code. Go to the email account, find the email, and copy & paste the authentication code into Sidekick.
- Once the account has been verified, Order details will be displayed in Sidekick.
This is the Customer’s view in Sidekick:
This is the Agent’s view in the Order Card: