Momen Docs
Go to Momen
  • Get Started
    • Introduction
    • Quick Start
    • Software Development Process
    • Editor Overview
  • Changelog
    • Latest Product Update
  • Build UI
    • Pages
    • Components
    • Canvas
    • Layout
    • Component - Display
    • Component - Input
    • Component - View
    • Component - List
    • Component - Tab View
    • Component - Select View
    • Component - Conditional View
    • Component - Others
    • Component - Map
    • Custom Component
  • Data
    • Overview
    • Data Model and Database
    • API
    • Variable
    • Parameter
    • Formula and Conditions
  • Actions
    • Overview
    • Request
    • Navigation
    • Actionflow
      • Custom Code
      • Database Trigger
    • AI
      • AI Data Model
      • AI Point
      • Vector Data Storage and Sorting
    • User Actions
    • Component Management
    • App and Page Management
    • Toast Notifications & Modal
    • Payment
    • SSO
    • Share
    • Location
    • File Management
    • QR Code
    • Clipboard
    • Conditional
    • Loop
  • Release and Growth
    • Publish Application
    • Upgrade Project
    • Multiple Clients
    • Permission
    • Log Service
    • SEO
    • Hosting Files
  • My Account and Community
    • My Wallet
    • Promoting Momen
    • Code Component
    • Collaboration
  • Debugging
    • How to Debug in Momen
    • Request Error Reference
  • Tutorial
    • How to Build an AI Needs Analysis Project?
    • How to Set Up Payment with Stripe Plugin?
    • How to Embed an Iframe Component into Your Momen Project?
    • How to Build Your Login Page?
    • How to Convert Momen App to Native Mobile App?
    • How to Build a CMS (MVP Version) in Hours?
    • How to Set a Countdown Timer When Sending a Verification Code
  • Template
    • AI Mental Health Assistant
    • Angry Dietitian
    • AI Help Center
    • AI Knowledge Base
    • SaaS Corporate Site
    • Blog
    • AI Feedback Tool
    • Feedback Tool, a Nod to Canny
    • Portfolio
    • Online Courses, a Nod to Udemy
    • Mobile Auto Repair AI Scheduler
Powered by GitBook
On this page
  • Overview
  • Data Model
  • Business Logic
  • Configuration Guide
  • Usage Guide
  • About Momen
  1. Template

Mobile Auto Repair AI Scheduler

The Mobile Auto Repair AI Scheduler is a template powered by Momen AI 2.0. It enables your AI agent to assist customers in identifying car issues and seamlessly scheduling repair appointments.

PreviousOnline Courses, a Nod to Udemy

Last updated 1 day ago

Overview

This template follows a simple process. When a customer starts a conversation, the assistant AI helps identify the car issue and provides a cost estimate. After that, the scheduler AI books the repair appointment in the vendor’s calendar.

To enable the AI to schedule appointments in your calendar, you’ll need to add your own API key. Detailed instructions for configuring the API are provided below.

Only staff members can access and log in to the dashboard. You’ll need to assign the necessary permissions in your project settings. Details are provided below.


Data Model

Below is the basic data model setting in this template.

The relation between car maker and car model is 1:N, because one brand could have multiple car models. The relation between repair category and repair item is 1:N because one category could have different issues. Based on the car model and repair issues, a cost estimate is generated.


Business Logic

Here’s the business logic behind the template, which you can also view as its workflow. This template includes two AI agents: a customer service agent to record user car issues and a scheduling assistant to book appointments in the vendor's calendar.

Customer Service

This is the logic of the customer service AI. It primarily operates during the conversation. As the conversation progresses, the data table updates in real-time. Car models and locations are recorded as the user selects them, while the AI assesses and updates the car’s issues.

Scheduling Assistant

This agent operates after an order is created, handling the task of scheduling the event in the vendor's calendar.

The following is the explanation of different work order statuses. You can customize the names when using this template:

  1. Pending – Conversation starts, gathering information.

  2. Chat to Issue – User inputs the information, and the AI assesses the issue.

  3. To Be Confirmed – The issue has been confirmed, waiting for staff to confirm the appointment.

  4. Confirmed – Appointment scheduled successfully.


Configuration Guide

This section explains how to configure the AI.

  1. Customer Service AI

Purpose:

Gathers detailed descriptions of car issues from the user, organizes information for the mechanic, and estimates repair time and cost.

Tools:

  • Find repair items based on user input.

  • Retrieve quotes using car model and repair item details.

  • Modify and query user work orders.

Input:

User messages, car_model_id, work_order_id.

Steps:

  1. Set up tools for the AI:

  • Search repair items.

  • Retrieve quotes based on car model and repair items.

  • Query and update work orders.

  1. Configure a knowledge base for car repair categories and specific issues for the AI to query.

Unlike hardcoding data directly into the prompt, a knowledge base is ideal for dynamic, frequently changing information. This approach prevents the need to update the prompt constantly, as the issues may vary each time.

  1. Adjust the AI prompts as needed.


  1. Scheduler AI

Purpose: Schedules appointments for mechanics.

Data: Google Calendar token.

Tools:

  • Time zone conversion.

  • Calculate distances between locations.

  • Query and create Google Calendar events.

Input: Location, preferences, date, time zone, duration.

Steps:

  • Set up tools for the AI:

    • Retrieve Google Calendar info.

    • Calculate distances and travel time.

    • Create calendar events.

  • Adjust the prompts as needed.


Usage Guide

Before using this template, you'll need to configure your own API so the AI can schedule events in your calendar. Additionally, you’ll need to adjust the permission settings to ensure that only you and your staff can manage the dashboard, while users only have access to the conversation page.

1. Google Calendar Setup

  1. Create a new project.

  1. Enable the Google Calendar API.

  1. Download the credentials JSON file to get your client_id and client_secret.

  1. Add your Google account as a test user.

  1. Get the refresh token:

    1. Set up the client_id and client_secret.

  1. Click "Authorize APIs" and log in with your Google account.

  1. Obtain the refresh_token.

  1. In Momen’s API module, set the client_id, refresh_token, and client_secret as default values.

2. Google Maps Platform Setup

  1. Enable the Distance Matrix API in Google Cloud Console.

  1. Follow the instructions to get your API key.

  1. Add the API key to the AI's description in Momen.

3. Permission Setup

  1. Register a new account.

  1. Edit account permissions in the editor.

4. Google Auth Refresh Token Setup

The refresh token expires every 24 hours. You'll need to set up an automated process to renew it.

About Momen

Log in to Google Cloud Console:

Create credentials (redirect URI: ).

Visit:

is a no-code web app builder that allows users to build fully customizable web apps, marketplaces, social networks, AI apps, enterprise SaaS, and much more. You can iterate and refine your projects in real-time, ensuring a seamless creation process. Meanwhile, Momen offers powerful API integration capabilities, allowing you to connect your projects to any service you need. With Momen, you can bring your ideas to life and build remarkable digital solutions, getting your web app products to market faster than ever before.

https://console.cloud.google.com/
https://developers.google.com/oauthplayground
https://developers.google.com/oauthplayground/
Momen