CloudSketch AI Logo
FeaturesTemplatesPricingEnterpriseAboutContactLog in
πŸŒ™β˜€οΈ
Log inStart free
Home/Templates/Logistics & Supply Chain

🚚 Logistics & Supply Chain · State Machine

Parcel Delivery Lifecycle

Every state a parcel passes through in a courier network, including failed attempts and returns to sender.

More Logistics & Supply Chain templates

Opening a template is free and never counts toward your daily diagrams. Asking the AI to change it counts as one.

Drawing diagram…

What this diagram shows

  • Three failed delivery attempts trigger a return
  • Customers can reschedule while the parcel is held at the hub
  • Returned parcels have their own route back to the sender

Prompt used

Parcel lifecycle state machine for a courier: booked, picked up, at origin hub, in transit, at destination hub, out for delivery, delivered. A failed delivery attempt returns the parcel to the destination hub; the customer can reschedule; after three failed attempts it is returned to origin (RTO) and delivered back to the sender.

Mermaid code
stateDiagram-v2
  [*] --> Booked
  Booked --> PickedUp
  PickedUp --> AtOriginHub
  AtOriginHub --> InTransit
  InTransit --> AtDestinationHub
  AtDestinationHub --> OutForDelivery
  OutForDelivery --> Delivered: signed or OTP
  OutForDelivery --> AttemptFailed: customer unavailable
  AttemptFailed --> AtDestinationHub: retry or reschedule
  AttemptFailed --> ReturnToOrigin: third failed attempt
  ReturnToOrigin --> ReturnedToSender
  Delivered --> [*]
  ReturnedToSender --> [*]

Inside this diagram

A state diagram with 10 states and 10 transitions.

States

  • Booked
  • PickedUp
  • AtOriginHub
  • InTransit
  • AtDestinationHub
  • OutForDelivery
  • Delivered
  • AttemptFailed
  • ReturnToOrigin
  • ReturnedToSender

Starts in

  • Booked

Ends in

  • Delivered
  • ReturnedToSender

Transitions

  • Booked β†’ PickedUp
  • PickedUp β†’ AtOriginHub
  • AtOriginHub β†’ InTransit
  • InTransit β†’ AtDestinationHub
  • AtDestinationHub β†’ OutForDelivery
  • OutForDelivery β†’ Delivered when signed or OTP
  • OutForDelivery β†’ AttemptFailed when customer unavailable
  • AttemptFailed β†’ AtDestinationHub when retry or reschedule
  • AttemptFailed β†’ ReturnToOrigin when third failed attempt
  • ReturnToOrigin β†’ ReturnedToSender

Make your own diagram like this

Describe your own system in plain English and CloudSketch AI draws it in seconds. See all AI diagram generators.

Related templates

SequenceLogistics & Supply Chain

Last-Mile Delivery Sequence

From an order leaving the hub to the parcel at the customer's door: rider assignment, live tracking, OTP handover and proof of delivery.

C4 ArchitectureProLogistics & Supply Chain

Shipment Tracking Platform Architecture

A logistics platform that tracks shipments across carriers: booking, scan events from hubs, carrier integrations and customer notifications.

FlowchartLogistics & Supply Chain

Warehouse Inbound Receiving

How a warehouse receives goods: appointment, unloading, checking against the ASN, quality check, putaway and stock update.

Data FlowLogistics & Supply Chain

Fleet Route Optimisation Data Flow

How a delivery company plans daily routes: orders, vehicle capacity, time windows and live traffic feed a route optimiser that assigns stops to drivers.

State MachineLogistics & Supply Chain

Freight Booking Lifecycle

The states of a freight shipment booking, from quote and booking through pickup, transit, customs and delivery.

DeploymentProLogistics & Supply Chain

Cold Chain Monitoring Deployment

Where cold chain monitoring runs for vaccines or fresh food: temperature loggers in reefers and cold rooms, gateways, and a cloud alerting platform.