Mobile Auto Repair AI Scheduler
Overview
This template provides an end-to-end solution for mobile auto repair scheduling. When a customer initiates a conversation, the assistant AI helps identify the car issue and provides a cost estimate. Subsequently, the scheduler AI books a repair appointment in the vendor’s calendar.
To enable AI-powered scheduling, you must add your own API key . Detailed configuration instructions are provided below.
Note: Only staff members can access and log in to the dashboard. Assign the necessary permissions in your project settings as described later in this guide.
Data Model
The following diagram illustrates the basic data model used in this template:
- Car Maker to Car Model: One car maker can have multiple car models (1:N).
- Repair Category to Repair Item: One repair category can include multiple repair items (1:N).
- Cost Estimate: Generated based on the selected car model and repair items.
Business Logic
This template includes two AI agents: a customer service agent for recording car issues and a scheduling assistant for booking appointments in the vendor’s calendar.
Customer Service Agent
- Operates during the customer conversation.
- Updates the data table in real time as the conversation progresses.
- Records car models and locations as selected by the user.
- Assesses and updates car issues.
Scheduling Assistant
- Activated after an order is created.
- Schedules the repair event in the vendor’s calendar.
Work Order Statuses
You can customize these status names as needed:
- Pending – Conversation started; gathering information.
- Chat to Issue – User provides information; AI assesses the issue.
- To Be Confirmed – Issue confirmed; awaiting staff approval for the appointment.
- Confirmed – Appointment successfully scheduled.
Configuration Guide
This section explains how to configure the AI agents.
Customer Service AI
Purpose:
Collects detailed descriptions of car issues from users, organizes information for mechanics, and estimates repair time and cost.
Tools:
- Search for repair items based on user input.
- Retrieve quotes using car model and repair item details.
- Modify and query user work orders.
Inputs:
User messages, car_model_id
, work_order_id
.
Configuration Steps:
-
Set up AI tools:
- Search repair items.
- Retrieve quotes based on car model and repair items.
- Query and update work orders.
-
Configure a knowledge base for car repair categories and specific issues for the AI to reference.
Tip:
Use a knowledge base for dynamic, frequently changing information instead of hardcoding data into prompts. This approach eliminates the need to update prompts whenever issues change. -
Adjust AI prompts as needed to refine responses.
Scheduler AI
Purpose:
Schedules appointments for mechanics.
Required Data:
Google Calendar token.
Tools:
- Time zone conversion.
- Distance calculation between locations.
- Query and create Google Calendar events.
Inputs:
Location, preferences, date, time zone, duration.
Configuration Steps:
-
Set up tools for the AI:
- Retrieve Google Calendar information.
- Calculate distances and travel time.
- Create calendar events.
-
Adjust prompts as needed for your workflow.
Usage Guide
Before you begin:
Configure your own API so the AI can schedule events in your calendar. Adjust permission settings to ensure only staff can manage the dashboard, while users have access only to the conversation page.
Google Calendar Setup
-
Log in to Google Cloud Console .
-
Create a new project.
-
Enable the Google Calendar API.
-
Create credentials (set redirect URI to https://developers.google.com/oauthplayground ).
-
Download the credentials JSON file to obtain your
client_id
andclient_secret
. -
Add your Google account as a test user.
-
Obtain the refresh token:
-
Visit Google OAuth Playground
-
Enter your
client_id
andclient_secret
. -
Click Authorize APIs and log in with your Google account.
-
Obtain the
refresh_token
. -
In Momen’s API module, set the
client_id
,refresh_token
, andclient_secret
as default values.
-
Google Maps Platform Setup
-
Enable the Distance Matrix API in Google Cloud Console.
-
Follow the instructions to obtain your API key.
-
Add the API key to the AI’s configuration in Momen.
Permission Setup
-
Register a new account.
-
Edit account permissions in the editor.
Google Auth Refresh Token Automation
The refresh token expires every 24 hours. Set up an automated process to renew it and ensure uninterrupted calendar integration.