Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This plugin adds a new option under the Design New App page to assist with app creation using a Generative AI language model. It builds a foundational app skeleton based on user instructions or prompts. You can further enhance the app’s functionality after generation. This article demonstrates how to create a Purchase Requisition App using the plugin.

Prerequisite 

  1. If no further changes are necessary, click Create App.

The following requirements are required to use the plugin:

  1. Joget Enterprise version 8.1.0 or later.
  2. Generative AI Plugin downloaded and installed.
  3. Process Enhancement Plugin DX downloaded.
  4. An LLM Key. For example, you can obtain one from OpenAI.
  5. A backend Python container (optional if you are using a Joget-hosted container)

Image Added

Figure 1: Obtaining API keys from OpenAI

Steps Example

Step 1

Once everything is set up, select Design App and click the Create New App option located at the left sidebar in the App Center.

Image Added

Figure 2: Design App > Create New App

Step 2

Select the Generative AI option.

Image Addeda

Figure 3: Generative AI option

Step 3

Once clicked, you'll see the following. Click Launch Joget AI Designer.
Image Added

Figure 4: Configure Service

Step 4

Under the Link your API Server icon, paste an API Server URL and API Server Key into the provided fields. Click Save.

Image Added

Figure 5: API Service Configuration

Step 5

Click the Setup AI Services icon and click Configure.
Image Added 

Configure the following:

  1. For AI Service Name, provide a display name for the AI model.
  2. For Model Class, select an AI model from the drop-down list.
  3. For Model Name, select the model version from the drop-down list.
  4. Optionally, re-enter the API Key for API Key (Optional).
  5. Click Create and click Save.
  6. Optionally, click the PII Masking to configure PII Masking.

Image Added

Figure 6: Configure new AI Service

Step 6

After setup, click Design your app on the top right. Select either of the following options:

    • Text: Creates an app design based on text.

    • Image: Creates an app design based on an image.

This tutorial uses the Text option.

Image Added 

Figure 7: Text option

Input your prompt text. As an example:


"Design an expenses claim application. The process begins with the employee submitting an expense claim form detailing the expenses incurred. The claim is then reviewed by the immediate supervisor for initial approval. Once approved, it is forwarded to the finance department for verification of receipts and compliance with company policy. If the claim exceeds $500, it requires additional approval from the department head. After all approvals, the finance department processes the reimbursement and notifies the employee of the payment status."

Step 7

An Any further adjustments to your query? reply message is displayed in the chatbox with the following options available:
Image Added

Figure 8: Making further adjustments to the text prompt.

  • Enhance Query: Uses AI to improve the query presented by adding additional details to yield improved results.

    • Revert: Reverts the Enhanced Query response back to the original query.

    • Regenerate: Regenerate a new Enhanced Query response.

    • Continue: Proceed to the Process Proposal stage.

  • PII Masking: Redacts sensitive information presented in the query to improve security and anonymity.

    • Revert: Reverts the PII Masking response back to the original query.

    • Regenerate: Regenerate a new PII Masking response.

    • Continue: Proceed to the Process Proposal stage.

  • Skip: Skips any adjustments and proceeds to the Process Proposal stage.

Step 8

The process of designing an app using Joget AI Designer consists of four main stages which include Process Proposal, Forms and Participants, Process Design, and Form Design. Complete all of these steps to generate a functional app.

In the Shall we proceed to the Process Proposal stage? page, click Process Proposal.

Image Added

Figure 9: Moving to the Process Proposal stage

Step 9

A summary of the app design is displayed. The following options are available:

Image Added

Figure 10: A summary of the project proposal

  • Refine: Allows users to refine the project proposal by adding additional prompts.

  • Regenerate: Regenerate a new project proposal.

  • Form Design: Proceed to the Forms and Participants stage.

Step 10

  1. Once the process proposal is confirmed, click Form and Participants. A list of forms and participants will then be displayed.

  2. Click Process Design. A preview of the process, including all forms and processes, is displayed. The process can be displayed either in Visual view or Code view by clicking on the Image Added toggle.

  3. Click Form Design. Click the ellipses beside the form to display two optional options:Image Added
    Figure 11: The 2 optional options for Form Design

    • Replace: Replace the form by providing an option to design a new form with a prompt using AI.

    • Remove: Deletes the form.

Table of Contents

Introduction

Warning

This plugin is still in BETA.

This plugin adds a new option under the Design New App page to assist with app creation using a Generative AI language model. It builds a foundational app skeleton based on user instructions or prompts. You can further enhance the app’s functionality after generation. This article demonstrates how to create a Purchase Requisition App using the plugin.

Prerequisite 

The following requirements are required to use the plugin:

...

Figure 1: Obtaining API keys from OpenAI

Steps Example

Step 1

Once everything is set up, select Design App and click the Create New App option located at the left sidebar in the App Center.

...

Figure 2: Design App > Create New App

Step 2

Select the Generative AI option.

...

Figure 3: Generative AI option

Step 3

Once clicked, you'll see the following. Click Launch Joget AI Designer.

Figure 4: Configure Service

Step 4

Under the Link your API Server icon, paste an API Server URL and API Server Key into the provided fields. Click Save.

...

Figure 5: API Service Configuration

Step 5

Click the Setup AI Services icon and click Configure.
 

...

Figure 6: Configure new AI Service

Step 6

After setup, click Design your app on the top right. Select either of the following options:

...


"Design an expenses claim application. The process begins with the employee submitting an expense claim form detailing the expenses incurred. The claim is then reviewed by the immediate supervisor for initial approval. Once approved, it is forwarded to the finance department for verification of receipts and compliance with company policy. If the claim exceeds $500, it requires additional approval from the department head. After all approvals, the finance department processes the reimbursement and notifies the employee of the payment status."

Step 7

An Any further adjustments to your query? reply message is displayed in the chatbox with the following options available:

...

  • Enhance Query: Uses AI to improve the query presented by adding additional details to yield improved results.

    • Revert: Reverts the Enhanced Query response back to the original query.

    • Regenerate: Regenerate a new Enhanced Query response.

    • Continue: Proceed to the Process Proposal stage.

  • PII Masking: Redacts sensitive information presented in the query to improve security and anonymity.

    • Revert: Reverts the PII Masking response back to the original query.

    • Regenerate: Regenerate a new PII Masking response.

    • Continue: Proceed to the Process Proposal stage.

  • Skip: Skips any adjustments and proceeds to the Process Proposal stage.

Step 8

The process of designing an app using Joget AI Designer consists of four main stages which include Process Proposal, Forms and Participants, Process Design, and Form Design. Complete all of these steps to generate a functional app.

In the Shall we proceed to the Process Proposal stage? page, click Process Proposal.

Image Added

Figure 9: Moving to the Process Proposal stage

Step 9

A summary of the app design is displayed. The following options are available:

Image Added

Figure 10: A summary of the project proposal

  • Refine: Allows users to refine the project proposal by adding additional prompts.

  • Regenerate: Regenerate a new project proposal.

  • Form Design: Proceed to the Forms and Participants stage.

Step 10

Add a new form or additional form by clicking Add Form to input a prompt for a new form. The AI will generate a new form.

Image Added

Figure 11: Additional form generation

If no further changes are necessary, click Create App. Provide an App ID and App Name, and click Save to create the app.

Expected outcome

After completing the steps, you will be prompted to Launch App Composer and have created an Expense Claims App. It can handle approvals based on the total claim amount criteria. The app can be configured further, just like any other Joget app.

Sample Generated App:

View file
nameAPP_kb_genai_expense_claims_app.jwa
height250