<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Yalla Digital</title>
    <description>The latest articles on DEV Community by Yalla Digital (@yalla_digital).</description>
    <link>https://dev.to/yalla_digital</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4102152%2F3d6fba82-6af7-46ed-9348-6433a862c9cf.png</url>
      <title>DEV Community: Yalla Digital</title>
      <link>https://dev.to/yalla_digital</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/yalla_digital"/>
    <language>en</language>
    <item>
      <title>How I Automated Booking and Dispatch for a Small Transport Business with Google Sheets + Apps Script</title>
      <dc:creator>Yalla Digital</dc:creator>
      <pubDate>Mon, 31 Aug 2026 07:26:47 +0000</pubDate>
      <link>https://dev.to/yalla_digital/how-i-automated-booking-and-dispatch-for-a-small-transport-business-with-google-sheets-apps-script-eg</link>
      <guid>https://dev.to/yalla_digital/how-i-automated-booking-and-dispatch-for-a-small-transport-business-with-google-sheets-apps-script-eg</guid>
      <description>&lt;p&gt;A few months ago a friend who runs a small intercity transport service asked me for help. His business takes phone and WhatsApp bookings for trips between cities, and he was tracking everything manually - one spreadsheet for bookings, a notebook for driver assignments, and constant back-and-forth on WhatsApp to confirm pickup times. Nothing was connected, so double-bookings and missed pickups happened more often than he'd like to admit.&lt;/p&gt;

&lt;p&gt;Since he didn't want to pay for a full booking platform yet, I built him a lightweight system using Google Sheets and Apps Script. Here's how it works, in case you're facing a similar problem for a client or your own side project.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Setup
&lt;/h2&gt;

&lt;p&gt;The core of the system is a single Google Sheet with three tabs:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Bookings - every incoming trip request, with columns for customer name, phone, pickup location, drop-off location, date, time, and status&lt;/li&gt;
&lt;li&gt;Drivers - a list of available drivers with their vehicle type and current status (available, on trip, off duty)&lt;/li&gt;
&lt;li&gt;Dispatch Log - an automatically generated log of which driver was assigned to which booking, and when&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The Automation Logic
&lt;/h2&gt;

&lt;p&gt;I wrote an Apps Script bound to the sheet that runs on form submission (bookings come in through a Google Form linked to the sheet, which the business owner shares as a link in WhatsApp replies). When a new row is added:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The script checks the Drivers tab for anyone marked "available"&lt;/li&gt;
&lt;li&gt;It assigns the first available driver to the booking and updates their status to "on trip"&lt;/li&gt;
&lt;li&gt;It sends an automatic confirmation email to both the driver and the customer&lt;/li&gt;
&lt;li&gt;It logs the assignment with a timestamp in the Dispatch Log tab&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Here's a simplified version of the assignment function:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;assignDriver&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;row&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;sheet&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;SpreadsheetApp&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getActiveSpreadsheet&lt;/span&gt;&lt;span class="p"&gt;().&lt;/span&gt;&lt;span class="nf"&gt;getSheetByName&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Drivers&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;data&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;sheet&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getDataRange&lt;/span&gt;&lt;span class="p"&gt;().&lt;/span&gt;&lt;span class="nf"&gt;getValues&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;

  &lt;span class="k"&gt;for &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="nx"&gt;i&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="nx"&gt;i&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="nx"&gt;data&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;length&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="nx"&gt;i&lt;/span&gt;&lt;span class="o"&gt;++&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;data&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nx"&gt;i&lt;/span&gt;&lt;span class="p"&gt;][&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;available&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nx"&gt;sheet&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getRange&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;i&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nf"&gt;setValue&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;on trip&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
      &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nx"&gt;data&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nx"&gt;i&lt;/span&gt;&lt;span class="p"&gt;][&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;];&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Why This Matters for Small Transport Businesses
&lt;/h2&gt;

&lt;p&gt;Most small operators running intercity routes don't need, or can't yet justify the cost of, an enterprise dispatch platform. A well-structured spreadsheet with a bit of scripting can handle a genuinely useful volume of bookings, enough to remove the manual back-and-forth and the double-booking risk, without adding a monthly software bill.&lt;/p&gt;

&lt;p&gt;For reference, when I was researching how established operators handle pricing and booking transparency for exactly this kind of route, this breakdown of &lt;a href="https://carliftservices.com/how-much-is-car-lift-dubai-to-abu-dhabi" rel="noopener noreferrer"&gt;car lift dubai to abu dhabi&lt;/a&gt; options was a useful example of how the customer-facing side, clear pricing and pickup/drop-off terms, pairs with the operational side I was building.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I'd Add Next
&lt;/h2&gt;

&lt;p&gt;If I were to extend this system, the next steps would be:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A simple dashboard tab with charts for bookings per day and per week&lt;/li&gt;
&lt;li&gt;Automated reminders sent a set number of hours before pickup&lt;/li&gt;
&lt;li&gt;A basic driver rating field to track service quality over time&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;None of this requires a "real" backend. Apps Script triggers, a Google Form, and a bit of planning go a long way for a business that's still validating its processes before investing in dedicated software.&lt;/p&gt;

&lt;p&gt;If you've built something similar for a small operations-heavy business, I'd be curious to hear how you structured it.&lt;/p&gt;

</description>
      <category>automation</category>
      <category>productivity</category>
      <category>smallbusiness</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
