Skip to the content.

Autobot - An Auto Safety Chatbot built using RASA

Autobot is an intelligent chatbot that provides information about automotive safety complaints, recall campaigns, safety ratings and VIN decoding for vehicles in the United States. Autobot uses state-of-the-art NLU (Natural Language Understanding) based on a Transformer model using in RASA. RASA is a popular open source framework for building chatbots.

Autobot uses NHTSA APIs to query complaints, recall, ratings and vin data.

Things you can ask the bot

The bot can provide information about vehicle complaints, recalls, safety ratings, vin decoding and nhtsa. You can ask it to:

  1. Show complaints data
  2. Show recall data
  3. Show safety ratings
  4. Show VIN details
  5. Describe NHTSA

Showing complaints data

Autobot’s Webchat interface can be opened in any web-browser.

Chatbot Initial Screen

Click on the chat icon at the bottom-left corner of the screen. It will open the chat window.

Chatbot Welcome Screen

The initial chat window shows possible chatbot services. The user can either directly click on an option or type their question as English text. If the text is typed, then it need not exactly match with the option text. The RASA NLU engine can map the user-typed text to an appropriate service of the chatbot. For example, if the user asks, “show me some vehicle complaints” then the NLU engine will map the user intent to “Show complaints data”.

Show me some vehicle complaints

Based on this intent, Autobot will ask for relevant information such as model year to retrieve the complaints data.

Provide model year

Say the user types the Model Year as 2018 then Autobot will present the list of all the Makes available in the NHTSA database for the model year 2018.

Provide make

The user can either select a make option from the presented makes or the user can type it as well. Here, the user typed ‘nissan’.

Provide model

Again, the user can either select an option or type manually. Selecting model as ‘Altima’ here shows following details -

Show summary

For 2018 Nissan Altima, there exist 140 complaints in NHTSA database. All of these details are queried at run time using NHTSA Public APIs.

At this stage if the user wants to see more details, they can select YES. Once the user opts for more details, complaint counts related to crash and fire are shown. Total number of injuries and fatalities are also shown. The Autobot then lists top three components responsible for these complaints. A sample crash related and a fire related complaint text is shown.

8 complaint(s) were related to crash.

There were no fire related complaints.

Total injuries reported: 6

No fatalities reported.

Component SERVICE BRAKES reported 46 time(s) in the complaints.

Component UNKNOWN OR OTHER reported 45 time(s) in the complaints.

Component ELECTRICAL SYSTEM reported 26 time(s) in the complaints.

WHILE DRIVING HOME AND JUST ENTERING MY NEIGHBORHOOD, I NOTICED A LOW TIRE WARNING ON MY DASHBOARD. I LOOKED AT THE PRESSURE AND THERE WAS APPROXIMATELY 26 POUNDS STILL IN THE TIRE AND THE CLOSEST PLACE TO FILL UP WAS AT MY HOUSE. WHILE APPROACHING A RIGHT TURN IN THE NEIGHBORHOOD AND BECAUSE OF THE WINTER WEATHER CONDITIONS OF SNOW AND ICE ON THE ROAD, I SLOWED DOWN TO A CRAWL AND APPLIED MY BRAKE PRIOR TO AND WHILE TURNING. WHILE IN THE BEGINNING OF MY TURN, I INSTANTLY REALIZED THAT I HAD NO CONTROL OF MY CAR AND I SLID INTO A SNOW BANK ON THE SIDE OF THE ROAD…

Once the user thanks Autobot, it goes back to presenting initial options again.

Acknowledge

The above steps can also be repeated for getting recall campaign data for a vehicle. Autobot provides the total number of recalls on a vehicle and shows a sample recall campaign -

Recall Campaign Number 19V654000 issued for BACK OVER PREVENTION: SENSING SYSTEM: CAMERA -

Recall Summary: Nissan North America, Inc. (Nissan) is recalling certain 2018-2019 Nissan Altima, Armada, Frontier, Kicks, Leaf, Maxima, Murano, NV, NV200, Pathfinder, Rogue, Rogue Sport, Sentra, Titan, Titan Diesel, Versa Note and Versa Sedan vehicles, as well as Infiniti Q50, Q60, QX30 and QX80 vehicles. Additionally included are 2019 Nissan GT-R and Taxi and Infiniti QX50, QX60, Q70, Q70L vehicles. The back-up camera and display settings can be adjusted such that the rear view image is no longer visible and the system will retain that setting the next time the vehicle is placed in reverse. As such, these vehicles fail to comply with the requirements of Federal Motor Vehicle Safety Standard (FMVSS) number 111, “Rear Visibility.”

Recall Consequence: The lack of an image in the back-up camera display increases the risk of a crash.

Here are some recorded sessions with Autobot -

Complaint data for 2020 Tesla Model 3

Recorded session with Autobot

Recall data for 2020 Ford Escape

Recorded session with Autobot

Safety ratings for 2021 Acura ILX

Recorded session with Autobot

VIN (Vehicle Identification Number)Decoding

Recorded session with Autobot

The code for building Autobot is available in Autobot Github Repository.