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

πŸš— Automotive Β· Sequence

Ride-Hailing Booking Sequence

What happens when a rider books a cab: fare estimate, driver matching, pickup, the trip and payment.

More Automotive templates

Drawing diagram…

What this diagram shows

  • Fare is estimated before booking, including surge
  • Nearest suitable driver gets the request first
  • Payment happens automatically at trip end

Prompt used

Ride-hailing sequence: the rider enters pickup and drop, the pricing service returns a fare estimate with surge, the rider confirms, the matching service finds nearby drivers and offers the ride to the best one, the driver accepts, the rider sees driver details and live location, the driver arrives and starts the trip with the rider's OTP, ends the trip at the drop point, the final fare is calculated and charged to the rider's saved payment method, and both rate each other.

Mermaid code
sequenceDiagram
  actor R as Rider
  participant App as Rider App
  participant Pr as Pricing Service
  participant M as Matching Service
  actor D as Driver
  participant Pay as Payments
  R->>App: Pickup and drop
  App->>Pr: Estimate fare
  Pr-->>App: Rs 320 (surge 1.2x)
  R->>App: Confirm booking
  App->>M: Find driver
  M->>D: Ride offer
  D-->>M: Accept
  M-->>App: Driver details, ETA 4 min
  D->>App: Arrived
  R-->>D: Share OTP
  D->>M: Start trip
  D->>M: End trip
  M->>Pr: Final fare Rs 338
  Pr->>Pay: Charge saved method
  Pay-->>R: Receipt

Related templates

State MachineAutomotive

EV Charging Session State Machine

Every state of an electric vehicle charging session at a public charger, from plug-in to payment, including faults and idle fees.

C4 ArchitectureProAutomotive

Connected Car Platform Architecture

A connected vehicle platform: the telematics unit in the car, the cloud services that collect data and send commands, and the owner's mobile app.

SequenceAutomotive

Vehicle Software OTA Update

How a carmaker updates vehicle software over the air: campaign targeting, owner consent, download, safe installation and reporting.

C4 ArchitectureProAutomotive

EV Charging Network Architecture

A charge point operator's platform: chargers speaking OCPP, a central management system, driver app, payments and roaming.

DeploymentProAutomotive

Fleet Management Deployment

Where each part of a fleet management system runs: GPS devices in trucks, cloud services for tracking and analytics, and apps for managers and drivers.

Database ERDAutomotive

Car Dealer Management Schema

A database schema for a car dealership: vehicles in stock, customers, test drives, bookings, sales and service jobs.