Why Your Order Tracking Chatbot Can’t Say When Delivery Will Arrive

“Will it arrive this afternoon?”

The chatbot finds the order. “Your order has been dispatched,” it replies. So the customer asks again. They need to decide whether to stay at the address or get on with their day, and the bot hasn't helped them decide.

Before changing the prompt, I'd look at the data behind that answer. “Dispatched” tells us that a step has been recorded. To say when the goods will arrive, we need more: a booking, a current estimate, or enough information to apply the warehouse's delivery rules.

We've been working on an order assistant for a building-materials business, where this gets surprisingly messy. The number a customer gives us may belong to an installation job, while the goods travel on separate orders. Some of the delivery rules came from operations and had to be written down before the assistant could use them.

I'll use those code and design findings to work through a possible approach. The customer exchanges and delivery times below are invented examples; the decision policy is a design to adapt, with checks that still need testing in a real deployment.

Help the customer decide whether to wait

An assistant can be useful even when it can't give an exact arrival time. Finding the right shipment and gathering the latest updates gives a support colleague a place to start. If there's a booking, the assistant can explain it. If there isn't, it can identify what dispatch still needs to confirm.

For someone waiting for materials, knowing that the delivery is booked for tomorrow may be enough to change today's plans. Knowing that nobody has confirmed a slot tells them who needs to check.

Compare these two replies to the afternoon question:

Your order has been dispatched. Please wait patiently.

The delivery is booked for tomorrow morning. I don't see an approved change to this afternoon. Support can check whether an earlier slot is available.

If the records support the second reply, the customer has something to work with: the current plan and a way to ask for a change. Adding a friendlier greeting to the first reply wouldn't answer their question.

When reviewing a reply, I'd ask what the customer can do with it. If they have to ask the same question again, there's probably a missing fact to track down.

Start with the shipment the question is about

In our order assistant, installation progress and materials delivery have separate meanings. A customer can quite reasonably give us the installation order number and ask, “Have the materials arrived?” We then have to follow the links to the deliveries they mean.

An installer might be assigned while the goods are still waiting for dispatch. An installation job might also have several related materials orders, including a later supplementary delivery. Looking up the installation record alone won't settle the question.

The reply formatter handles this by showing the related materials orders when they're available and leaving out the installation job's own logistics section for a materials question. Otherwise, an update about the installer can easily look like an update about the goods.

One small detail in the code is worth a closer look: the formatter shows up to six related orders. That's understandable for a short chat reply. But if the same shortened list feeds the delivery decision, what happens to shipment seven?

I'd keep all relevant shipments available while making the decision, then shorten the display. The reply can mention that there are more shipments and offer their details. It shouldn't quietly drop one from the answer.

The code also makes an inference when an installer has started work: materials should already be on site, and the driver may enter the delivery confirmation later. I'd be careful with how far that inference travels. It can help explain an unsigned materials order, but a supplementary shipment could still be on its way.

What the bot needs to look up

Before adding more reply templates, I'd map the available fields against this checklist. A missing booking and a failed booking lookup need different answers, so include the lookup result as well as the data it returns.

Evidence What it lets you say What to check before using it
Correct order and related shipments Which goods or visit the answer covers Has the customer been matched to the right records? Is the list complete?
Latest logistics event and event time What the system last recorded Is it a delivery event, an installation event, or an old summary?
Applicable delivery policy The normal service window under stated conditions Category, region, payment or order cutoff, calendar, exceptions and rule version
Delivery assignment or booking The slot currently recorded for this shipment Is it active, current and consistent with the latest exception?
Carrier or dispatch ETA A current arrival estimate, if one exists When was it calculated? Does it cover the shipment being discussed?
Customer report and delivery evidence Whether the recorded outcome needs investigation Does the customer dispute receipt, or report a partial delivery?

A booking tells you the planned slot; a current ETA may narrow that down. A recorded signature changes the question again, especially if the customer disputes it. The final reply needs to preserve what each source actually says.

Shopify's delivery-date documentation makes a similar distinction between dates calculated from configured fulfillment and transit times and predictions based on shipping performance. If an API gives you a date, find out how it was produced. That tells you how to describe it.

A cutoff rule gives you a conditional answer

Operations supplied the cutoff rules for our project. They varied by material category, payment or order time, and delivery area. Some products and remote locations had their own arrangements. A single “orders before this time arrive today” sentence would have lost those exceptions.

You'll need the equivalent rules from your own operations team. To show how the logic works, let's use a fictional warehouse policy:

Eligible local orders paid before 10:00 normally enter the afternoon delivery window, provided stock is available and no service exception applies.

At 09:40, a paid order could satisfy the time condition. You still need to establish that it's an eligible product, going to a covered address, with the required stock available. If no vehicle has been assigned, the reply should make the remaining uncertainty clear:

This order meets the normal cutoff for afternoon delivery. A delivery assignment hasn't appeared yet, so the afternoon slot still needs confirmation from dispatch.

Once a current booking exists, the answer can become more specific:

Your delivery is booked for this afternoon, between 14:00 and 18:00. That's the scheduled window; I don't have a narrower arrival estimate yet.

The cutoff and delivery window in this example are fictional. Notice what allowed the second answer to be more specific: an actual booking became available.

Don't quietly choose a timestamp when the policy is ambiguous. “Ordered before the cutoff” and “paid before the cutoff” produce different results for an unpaid order. Ask the policy owner to resolve the difference, then store that rule explicitly.

I'd also keep a version and an effective date with each rule. When the warehouse changes its schedule, someone will eventually need to work out why the bot gave a different answer yesterday.

Decide what the evidence supports, then write the reply

The core lookup and formatting path we reviewed uses rules. An LLM could help interpret the customer's question or put the result into natural language. I'd still have the application decide which delivery claim the evidence supports before asking the model to phrase it.

I'd have the application produce a small structured result: the answer type, relevant shipments, facts supporting the answer, missing evidence, source timestamps, and the next action. The language layer can then explain that result in ordinary words.

Here's a simplified policy to adapt. I've written it as pseudocode so the decision points are easy to follow:

records = load_authorized_order_and_all_relevant_shipments()
if records are unavailable or incomplete:
    return NEEDS_CHECK("Relevant delivery records are missing")

if customer_disputes_receipt or records_conflict:
    return NEEDS_REVIEW("Support must reconcile the evidence")

if evidence_is_too_old_for_this_question:
    return NEEDS_CHECK("Refresh the delivery information")

assess each relevant shipment separately:
    if delivery_is_recorded:
        report the recorded event and its time
    else if an active_exception_blocks_the_estimate:
        report the exception and the required follow-up
    else if a current_authoritative_eta_exists:
        report the ETA as an estimate, with its update time
    else if a current_booking_exists:
        report the scheduled window
    else if an applicable_policy_can_be_evaluated:
        report the conditional policy window and missing confirmation
    else:
        report the missing evidence and who can check it

combine without hiding partial deliveries or unresolved shipments

Your business needs to define what counts as current, which source has authority, and which exceptions block an estimate. A day-old event might be adequate for answering when a completed delivery was recorded. It could be a poor basis for answering whether a truck will arrive in the next hour.

For several shipments, keep separate conclusions. “Two deliveries are recorded as complete; the supplementary order is awaiting a slot” is more useful than forcing the whole order into one reassuring sentence.

Customer notes need the same care. Our formatter includes order remarks and flags some time-sensitive requests for follow-up. A note saying “please deliver before noon” establishes the customer's request. Check for an accepted booking change before presenting noon as the arranged time.

Test the replies that are easy to get wrong

Take this fictional record set: the main order says dispatched, a materials shipment has a booking for tomorrow, and the customer's note requests delivery today. The latest lookup succeeds, but there is no accepted change to the booking.

I'd expect the assistant to answer:

The materials delivery is currently booked for tomorrow. I can see your request for today, but I don't see a confirmed change. Support can check whether dispatch can move it forward.

The request for today stays visible, but the answer follows the confirmed booking. If your bot can open a support request, let it offer that next step. Have it report success only after the request has actually been created.

Before release, put these cases through the full path, including the actual reply:

Case Expected behavior
Paid before cutoff, no assignment Explain policy eligibility and the missing confirmation
Booking exists, but a newer delay is active Surface the delay; avoid repeating the old slot as current
Installation started, supplementary materials undelivered Report the materials shipment separately
More related shipments than the display limit Include every relevant shipment in the decision
System says delivered, customer says nothing arrived Acknowledge the conflict and route it for investigation
Related-order lookup times out State that the lookup is incomplete; avoid treating missing data as “no related orders”
Customer requests noon, booking says afternoon Keep the request and accepted booking distinct
Latest event has no usable timestamp Avoid describing it as a fresh update

I'd use these as acceptance cases before release; we haven't verified this whole set in production. They cover the places where a successful lookup can still lead to a misleading reply.

If you're building a personal AI assistant for work, this is a good first task to scope carefully. Have it collect the evidence, explain the current plan and identify the unresolved question. Then decide separately whether it should be allowed to change a booking, as discussed in our guide to assigning work-chat tasks to agents.

To get started, take a few anonymized questions from your support team and sit down with someone who schedules deliveries. Ask them to walk through how they'd answer each one. When they say “I'd check with the warehouse,” pause there. Find out what they need to check. That's often the next piece your assistant needs.