Latest Updates

Post Top Ad

15 February, 2025

Build Oracle APEX Applications Using Generative AI Service

APEX Application using GenAI

 

Using Generative AI, OCI APEX makes development easy. Users can build strong, scalable applications with little coding. Now, you can create a low-code APEX application by simply using the GenAI option.

 

In this blog post, I will illustrate, with screenshots, how to create an APEX application by simply configuring GenAI and leveraging its capabilities in just a few minutes.

 

Sample APEX Application created using GenAI:

A screenshot of a computer

Description automatically generated


 

Pre-Requisite

 

- Provision an ATP Database or APEX deployment.

- Create the APEX workspace.

- Configure Generative AI Service in the APEX application.

- Utilize the GenAI to create an APEX application.

 

 

Provision an Autonomous Database


Follow the blog link to create an ATP database: https://beingpiyush.blogspot.com/2023/04/oracle-cloud-provision-autonomous.html

 

Enable the APEX workspace

 

1.      Open the APEX ORDS URL:

- Navigate to https://<IP_or_PublicEdnpoint>/ords/apex

 


 

2.      Create Workspace

- Click on: Create Workspace

 

A screenshot of a computer

Description automatically generated

 

- Choose either a New Schema or Existing Schema.

- In this Demo we are creating a New Schema

 

A screenshot of a computer

Description automatically generated

 

 

- Click on Create Workspace.

 

A screenshot of a computer

Description automatically generated

 

3.      Workspace Created:

- Sign out of Administration Services and sign in to `GenAI_Workspace` to begin building applications.

- Login with the APEX workspace name, Username, and Password.

A screenshot of a login form

Description automatically generated

 

4.      Default Dashboard:

A screenshot of a computer

Description automatically generated

 

 

Configure Generative AI Service

To utilize the Generative AI Service first we must configure the Generative AI Service with available AI models.

 

1. Access App Builder:

- Click on App Builder.

 

A screenshot of a computer

Description automatically generated

 

- Click on Workspace Utilities.

 

A screenshot of a computer

Description automatically generated

 

- Go to Generative AI.

A screenshot of a computer

Description automatically generated

 

- Click on Create.

 

A screenshot of a computer

Description automatically generated

 

 

2. Choose the AI Provider:

 

A screenshot of a computer

Description automatically generated


- From the drop-down menu, select the AI Provider.

 

A screenshot of a computer

Description automatically generated

- For this demo, we are utilizing the OCI Generative AI.

A screenshot of a computer

Description automatically generated

 

- By default, the Model ID is cohere.command r 16k, however, this Model ID is not functional.

- Choose ‘cohere.command r plus 08 2024’.

 





 

A screenshot of a computer

Description automatically generated

 

- Click on Create.

A screenshot of a video

Description automatically generated

 

 

 Utilize Generative AI capabilities to create a low code Apex application.

 

1. Create a New App:

- Go to the home page and click on Create or Create a New App.

A screenshot of a computer

Description automatically generated

 

A screenshot of a computer

Description automatically generated

 

- Provide a name for the application and click on Create App Using Generative AI.

A screenshot of a computer

Description automatically generated

 

2. Install Sample Datasets:

- Before creating the application using AI, we need to have some tables in the workspace.

A screenshot of a computer

Description automatically generated


 

A screenshot of a computer

Description automatically generated


- Click on Browse Sample Datasets.

 

A screenshot of a computer

Description automatically generated


 

- Choose any dataset from the available options and install it.

 

A screenshot of a computer

Description automatically generated


 

A screenshot of a computer

Description automatically generated


 

- Click on Next and Install Dataset.

A screenshot of a computer

Description automatically generated


 

 




 

- Now your first application is created. Let's choose the GenAI capability to create the application using GenAI.

A screenshot of a computer

Description automatically generated


- Accept the terms.

 

 

4. APEX Assistance Page:

- The APEX Assistance page will show chatbot options.

 

A screenshot of a computer

Description automatically generated


 

- In the chat option, type your requirement.

A screenshot of a computer

Description automatically generated

 

A screenshot of a computer

Description automatically generated

 

- Manually choose additional options from the Features.

 

A screenshot of a computer

Description automatically generated

 

- Additionally, select About Page and Feedback.

A screenshot of a computer

Description automatically generated


 

- Click on Create Application.

 

A screenshot of a computer

Description automatically generated


 

- Wait for 2-3 minutes, and your application will be created.

 

A screenshot of a computer

Description automatically generated


 

- Click on Run Application to view your application.

A screenshot of a computer

Description automatically generated


 

- The login page will appear, asking for the username and password.

 

Add Schema to Workspace and Onboard a User

 

1. Add Schema:

- Go back to the APEX workspace dashboard as the ADMIN user.

 

 

A screenshot of a login form

Description automatically generated


 

A screenshot of a computer

Description automatically generated

 

A screenshot of a computer

Description automatically generated

 

A screenshot of a computer

Description automatically generated

 

A screenshot of a computer

Description automatically generated

 

- Click on Add Schema.

A screenshot of a computer

Description automatically generated

 

 

2. Create an Application User:

- Click on Manage Workspace and then Manage Developer and Users.

A screenshot of a computer

Description automatically generated

 

- Click on Create User.

A screenshot of a computer

Description automatically generated

 

- Choose the correct workspace name and workspace schema.

 

A screenshot of a computer

Description automatically generated


 

- Provide a password and create the user.

A screenshot of a computer

Description automatically generated


 

 

A screenshot of a login box

Description automatically generated

 

 

A screenshot of a computer

Description automatically generated

 

Congratulations! Your first APEX application is created using the GenAI Service. The Administrator Page allows you to add users, see feedback, and much more.

A screenshot of a computer

Description automatically generated

 

A screenshot of a computer

Description automatically generated

 

A screenshot of a computer

Description automatically generated

 

Administrator Page you can add users and see the feedback and many more.

 

A screenshot of a computer

Description automatically generated

No comments:

Post Top Ad

Your Ad Spot