DEV Community

Cover image for AI Taxi Dispatch Operator
Mustapha Alaba
Mustapha Alaba

Posted on

AI Taxi Dispatch Operator

This is a submission for Twilio Challenge v24.06.12

What I Built

Optimizing Business Efficiency with AI Operators
Many businesses spend hours daily taking orders over the phone from prospective clients, leading to less productive employee time and increased operational costs.

AI Operators can revolutionize this process by intuitively collecting orders from prospective clients and notifying the business through email or external APIs when an order is ready for fulfillment. This automation will enhance employee productivity and reduce business costs by streamlining the manual order collection process.

A compelling proof of concept for such AI Operators is the AI Taxi Dispatch Operator. This solution enables taxi companies to automate the booking process and dispatch drivers and vehicles using the company's dispatch system via APIs or manual assignments.

In this implementation, Twilio WhatsApp messaging is utilized to create an AI operator built with OpenAI technology. The AI operator gathers all necessary information from the user, sends out dispatch requests through the company's dispatch API, and notifies both the company and the user when a driver has been dispatched.

By integrating AI Operators, businesses can significantly improve efficiency, reduce costs, and provide better service to their clients.

Demo

Github Repo

This is a submission for Twilio Challenge v24.06.12

What I Built

Optimizing Business Efficiency with AI Operators Many businesses spend hours daily taking orders over the phone from prospective clients, leading to less productive employee time and increased operational costs.

AI Operators can revolutionize this process by intuitively collecting orders from prospective clients and notifying the business through email or external APIs when an order is ready for fulfillment. This automation will enhance employee productivity and reduce business costs by streamlining the manual order collection process.

A compelling proof of concept for such AI Operators is the AI Taxi Dispatch Operator. This solution enables taxi companies to automate the booking process and dispatch drivers and vehicles using the company's dispatch system via APIs or manual assignments.

In this implementation, Twilio WhatsApp messaging is utilized to create an AI operator built with OpenAI technology. The AI operator gathers all necessary information…

Youtube Demo and Screenshots

Demo 1

Demo 2: App and Explanation

Bookings from database

Twilio SMS Failover message

Email notifications to admin

Booking requested remain notifications

Twilio and AI

Twilio WhatsApp Messaging was used as the primary communication medium for the users. Messages sent to the WhatsApp number are processed through webhook by a web app built on Laravel. These incoming messages are sent to an AI assistant powered by the OpenAI GPT4 model. The AI assistance is tasked to handle the conversation until all required details to request a booking are provided after which the booking details is sent to the database for dispatching followed by email notification to admin and dispatch notification to the user with drivers details

Additional Prize Categories

Twilio Times Two

I used the Twilio WhatsApp Messaging feature for the interaction between the user and the operator. Twilio SMS Feature is used for failover notifications.

Impactful Innovators

This product will help companies reduce operation costs, save time, and increase lead generation.

Top comments (37)

Collapse
 
bint_obasa profile image
Bint Obasa

This is a brilliant example of innovative automation in action. Well done on creating such an impactful project! An excellent way to enhance efficiency and cut costs for businesses. If I had a taxi business I'd jump on it right away...

Collapse
 
alaba_mustapha profile image
Mustapha Alaba

Thank you Obasa

Collapse
 
anthony_adikpe_b92937ec4a profile image
Iyata Adikpe • Edited

I think this is awesome. I did some car hailing service (Bolt) for a while, I think this can help enhance the driver-passenger experience by matching trips for a future date which guarantees revenue for the driver and improves customer experience.

Suggestions:

  1. Consider adding the estimated pricing to the order confirmation pages
  2. Consider despatching the closest rider to the customer
  3. Consider ensuring that a driver accepts the trip before the confirmation is sent (possibly done already)
Collapse
 
alaba_mustapha profile image
Mustapha Alaba • Edited

Thank you Anthony for these feedback and suggestions.

All points are well noted and are part of the final version.

This submission is for proof of concept and can't handle actual dispatching.

Each taxi company has a Dispatch system that handles quotes and sends out drivers, they also have API to connect with to get this done.

So ideally to be able to show quotes and actual dispatch a real Taxi company will be required.

Collapse
 
abdulsalamamtech profile image
Abdulsalam Abdulrahman (Amtech Digital)

Great job

Collapse
 
alaba_mustapha profile image
Mustapha Alaba

Thank you Abdulsalam

Collapse
 
adekeyeemmanuel profile image
Emmanuel Adekeye • Edited

AI & Twilio a powerful weapon if properly harmonized. This project exemplifies that. Code base is easy to navigate and comprehensive, contributing to its successful outcome.
Great work.

Collapse
 
iyare profile image
Iyare Usen

This is really brilliant.

Collapse
 
jaybabson007 profile image
Joel Yahaya

This is awesome 😊

Collapse
 
alaba_mustapha profile image
Mustapha Alaba

Thanks @jaybabson007

Collapse
 
nahsc0 profile image
Yusuf Nasir Ahmad

This is truly brilliant. Another AI potential unleashed by you. Can't wait to witness and utilize the full deployment of this solution.

Collapse
 
alaba_mustapha profile image
Mustapha Alaba

Thanks Yusuf.

Collapse
 
akeemandela profile image
Akeemandela

Amazing!
Can you take orders from outside Lagos? Like anywhere around the world?

Collapse
 
alaba_mustapha profile image
Mustapha Alaba

Yes, the taxi company that will be using it will determine the zip codes they support. if the address falls within the zipcodes then it is good to go.

Collapse
 
michealabah2 profile image
Micheal Monday Abah

Wow, this will really improve business operation for taxi companies and response time for their clients. this is great.

Collapse
 
douyemiene profile image
Victor Miene

Very nice usecase. A good question would be how trustworthy is this going to be? Then I'm curious if the model being used is supplied by Twilo or OpenAI itself

Collapse
 
alaba_mustapha profile image
Mustapha Alaba • Edited

Thanks Victor.

I am not sure what you mean by trustworthy.

Twilio was used to handle communication through WhatsApp and SMS as a failover option

OpenAI was used to implement the AI Operator using the GPT4o Model through the API.

This link is helpful to understand OpenAI Assitance API

Collapse
 
solinkz profile image
Solomon Eyitene

tested it and it works amazingly. I love the idea and how it's simple to interact with, responding naturally and still have your response processed as intended.

Collapse
 
alaba_mustapha profile image
Mustapha Alaba

Thank you for the feedback and for helping to test the bot.

Collapse
 
mensaloveable profile image
Abdullahi Adedayo A.

This is nice.
Could there be a feature where company staff can book a round-trip ride for home-office trips, with the company covering the cost?

Collapse
 
alaba_mustapha profile image
Mustapha Alaba

Yes, this can be configured to this use case.

Collapse
 
debowale01 profile image
Adeshina Ibrahim

This is a no-brainer for dispatch operators.

Collapse
 
alaba_mustapha profile image
Mustapha Alaba

Thanks Ibrahim

Collapse
 
sheriffdeen_soleye_62153c profile image
Sheriffdeen Soleye

This is great, seamless order and fulfilment.

Collapse
 
sodiq_suleimon_6ed5da8354 profile image
SODIQ SULEIMON

Impressive.

Collapse
 
alaba_mustapha profile image
Mustapha Alaba

Thanks Sodiq