AI Form Fill Element

Introduction

The AI Form Fill Element plugin is designed to automatically generate and populate data for form elements using OpenAI's GPT models. This feature can enhance your Joget forms by auto-filling fields based on the chosen AI model.

Plugin information

The AI Form Fill Element plugin uses OpenAI's GPT models to generate and populate data for form elements automatically. This plugin bundle is compatible with Joget DX 8.

Get started

Prerequisites

  1. Sign Up for OpenAI API:
  2. Obtain API Key:
    • Go to the API keys page on the OpenAI platform.
    • Generate an API key.
    • Copy the API key; you will need it for the AI Form Fill Element plugin configuration.
  3. Choose a Model:
    • Go to the OpenAI Models Documentation to understand the available models.
    • Select a model that you would like to use (e.g., gpt-3.5-turbo and gpt-4-turbo).
    • Note the model name for later use in the configuration.

Where to get the plugin

You can obtain the latest release of the plugin jar file from GitHub.

How to install

  1. Download the plugin jar file from the link above.
  2. In Joget, go to Settings > Manage Plugins and upload the jar file.
  3. You can choose to import the demo app or create the app from scratch.

How to use it

Importing the demo app
  1. Download the demo app from Download sample app (.jwa file).
  2. In Joget, go to Home or All Apps and click on Import App to import the demo app.
Creating the app from scratch
  1. Create a Form with the desired fields such as Name, Email, Contact, Status, Address, Gender, and Date of Birth.
  2. Add the AI Form Fill Element to the form.
  3. Click the FormAutoFillAI element and enter the necessary configurations:

    • Enter the model name you selected earlier.
    • Input the API key from OpenAI (you can add the API key to App variables and use a hash variable to reference the values; for more information, see App Variable).
    • Set the Proxy Domain (e.g., https://api.openai.com).
    • Define the number of rows the AI should fill in the form grid.

  4. After configuring, click on the auto-fill icon to populate the form with dummy data generated by GPT.

  5. The form grid is filled with data according to the number of rows specified during the configuration.

Configure AI form fill element properties

Below are the configurations for the AI Form Fill Configuration section.

  • Model *: Choose the AI model you want to use (e.g., gpt-3.5-turbo).
  • API Key *: Enter the API Key obtained from the OpenAI platform.
  • Proxy Domain: Define the proxy domain for accessing the OpenAI API (e.g., https://api.openai.com).
  • Number of Rows for Form Grid *: Specify the number of rows the AI should fill in the form grid.

Expected outcome

The AI Form Fill Element can generate and populate data for form elements.

Download sample app

Download the demo app for AI Form Fill Element:
Created by Julieth Last modified by Aadrian on Nov 19, 2024