The right message flow for a telegram bot that sends logistics updates follows three factors: how reliably tracking events arrive from carriers or warehouses, what customers expect to be told without asking, and how many messages the audience will tolerate before reminders become noise. The two basic models are a proactive push flow, where the bot messages customers when an order status changes, and an on-demand query flow, where the customer asks the bot for the current status. Most real logistics bots combine both, but the emphasis differs by business. This article compares the two models, maps which events belong in each, explains status mapping and auto reply handling, and outlines the failure states and integration checks the flow must cover.
The two flow models compared
The proactive push flow subscribes each order to event updates: when the fulfillment system or carrier reports a status change, the bot sends the customer a message with the stage, reference, and any next step. Messages reach the customer without action, which matches expectations for shipments where delivery timing matters, such as e-commerce parcels, perishable goods, or time-sensitive orders. The flow depends on a steady stream of accurate events; if event feeds are late or incomplete, customers receive stale or missed updates and the bot’s reliability is judged on the feed rather than the bot’s own code.
The on-demand query flow lets the customer open the bot, enter an order or tracking reference, and receive the current status pulled from the source system. This model fits customers who check shipments occasionally, businesses with irregular tracking feeds, and situations where push messages would feel intrusive. The bot answers the question on request rather than carrying a continuous subscription state. A query-only flow still needs fast lookup and clear status wording, but it does not require event subscription or scheduled reminders.
| Dimension | Proactive event push | On-demand query |
|---|---|---|
| Customer action needed | None; messages arrive on status change | Customer requests the status |
| Depends on event feed | Steady, timely, accurate carrier or warehouse events | Current status read from source on request |
| Message volume | One message per relevant status change | One query and reply per check |
| Best fit | Time-sensitive parcels, repeat buyers, tracked deliveries | Irregular feeds, low-update businesses, privacy-sensitive audiences |
| Main risk | Stale or missed events; message fatigue from too many pushes | Outdated answer if the source lookup fails silently |
A combined flow is the common middle ground: push the high-value stages such as dispatched, out for delivery, and delivered, while letting customers query any time for intermediate status. The split between push and query should be decided per event rather than applied to every status the system knows about.
Which events belong in push versus query
Not every carrier event deserves a customer message. Internal milestones such as label created, parcel scanned at a sorting hub, or handover between depots may matter to operations but mean little to the buyer. Push messages should carry the stages the customer acts on: order confirmed, parcel dispatched, out for delivery, delivered, and exceptions such as delayed, returned, or failed delivery. Intermediate scans can remain available through on-demand query, where a customer who wants detail can pull them without receiving a stream of notices.
The event list should be agreed with the business before build. For each status, define whether it pushes, appears only in query, or triggers an exception message. Order-created and payment-confirmed messages may belong to the order alert flow rather than the logistics flow; the boundary between order notifications and shipment updates should be explicit so customers do not receive duplicate messages for the same stage. The build-versus-buy context for order alert bots is laid out in the order alert bot guide, and logistics flows should connect to that order state without duplicating it.
Push frequency needs a throttle. Repeated scans at depots or redelivery attempts should not each generate a message; related events should collapse into one updated status, with the next push sent only when the status meaningfully changes. Campaign-style broadcasts should never be mixed into transactional shipment messages, because promotional content in a delivery notice weakens trust in the status updates themselves.
Status semantics and status mapping
Carrier and warehouse status codes do not read naturally to customers, and different feeds use different codes for the same reality. The flow needs a mapping layer that translates source statuses into a small set of customer-facing states: processing, dispatched, in transit, out for delivery, delivered, delayed, failed attempt, returned, or cancelled. Each source code maps to one state, and ambiguous feeds fall into a pending or review state rather than guessing a happy outcome.
Mapping should handle the gaps where feeds disagree: a carrier says delivered while the fulfillment system still shows in transit, or a scan arrives after the customer already received the parcel. The bot should show the most recent reliable state and label pending or conflicting information honestly, rather than presenting a resolved status the system cannot confirm. Status timestamps and tracking references should appear alongside the state, so the customer can follow up with a reference if the update seems off.
Status rules should be documented in the delivered system, including which code maps to which customer state and how conflicts are handled. Without that map, a later operator cannot repair the flow when a carrier changes its status codes, and small feed changes become bot defects. The sync rules that commonly break between a bot and its source system, including record matching and status write-back, are covered in the CRM sync rules guide and apply to logistics feeds as well.
Auto reply for status questions and common follow-ups
Even in a push flow, customers message the bot with questions: “where is my order,” “why hasn’t it moved,” “can I change the address,” “can I reschedule.” The auto reply layer should recognize these intents, match the message to the order record, and answer with the current state and next step. Repeated wording, typos, and fragment questions should still route to the right topic; questions that do not match a known intent should escalate rather than guess an answer.
Replies should follow the same customer-facing state vocabulary as push messages, so a query answer matches the message the customer already received. Common follow-ups need defined flows: address-change requests, delivery-date preferences, lost or damaged parcels, and delivery exceptions. Where the bot cannot resolve the issue, it should hand off to a human queue with the conversation history and order reference attached.
Auto reply accuracy should be tested against a sample of real customer messages before launch, not only scripted questions. Misrouted questions about delays or delivery problems are worse than silence, because they close the loop without resolving the issue. The reply library should be editable after launch, with policy and wording corrections handled under the maintenance arrangement rather than buried in flow code.
Failure states the flow must cover
Logistics flows fail in predictable ways, and each needs a designed response. A delayed update: the feed has not reported a new scan, and the bot should show the last known state with its timestamp rather than implying progress. A failed delivery attempt: the customer should see the reason if available and the next delivery or pickup option, not a generic failure notice. A lost or damaged parcel: the bot should collect the details and route to a human review path. A returned or cancelled order: messages should stop once the order closes, so the customer does not receive stale shipment notices after the refund.
Technical failures also need handling: a query that cannot reach the source system should return a clear retry message rather than a blank or repeated failure; a duplicate event should not send a second push for the same state; a retried callback should not duplicate an order record. Webhook or polling failures should alert the operator, and the bot should distinguish “no update yet” from “feed unavailable.” Hosting region and update-loop choices affect how these failures surface; the latency and reliability tradeoffs are compared in the hosting region guide.
Integration checks that decide whether launch slips
Verify the source integration with a sample of real orders: match order references, check statuses against the source of truth, and confirm timestamps and references transfer correctly. Replay delayed, failed-attempt, and delivered cases through staging to confirm the right message fires. Check that opt-out or notification preferences are honored, and that customers who do not want shipment pushes can manage that preference without losing the ability to query.
Data handling should be stated in writing: which order and tracking fields are stored, retention for message history, who can read records, and how deletion works. Customer contact details and shipment history are personal data, and cross-border storage location should be documented. Records used for logistics follow-up should export in a readable format, with order references and consent flags joined.
Choosing the flow by business type
A business selling tracked parcels where customers wait for delivery usually leans on push for the key stages plus query for detail. A business with an irregular or limited tracking feed should lead with on-demand lookup and avoid promising push updates the feed cannot support. A wholesale or B2B operation where buyers check orders in batches may prefer query and bulk status views over individual pushes. The combined flow lets each business pick the push stages its feed can reliably support, while keeping query available for every status.
The choice should be tested against real event history before locking scope: pull the last month of carrier or warehouse events, count how many reach each customer-facing state, and identify where feeds are late or conflicting. That history shows which pushes can be delivered accurately and which states belong in query only. Building the flow around the actual event stream, rather than around an idealized tracking timeline, keeps the bot’s updates trustworthy from the first real shipment onward.
Leave a Reply