Family Tree App with AI Agent and Natural Speech for IR
I showcased my family tree app during the ACE Master Series. There was some interest in this app, so I decided to upgrade this app to Oracle APEX 26.1 and enhance it to leverage 26.1 features like AI Agents and Natural Speech for IR.
Installation Instructions
You can download the packaged app here: download.
To install, just import the app in the APEX Builder. If you don't have an APEX environment, get yourself a free APEX workspace on apex.oracle.com. It only takes a few minutes and an e-mail address to get you started with Oracle APEX.
During the import, you will be asked to enter the credentials for OpenAI. These are only required when using the chatbot on the startpage or when using natural speech on the address book page. By default, the app will use gpt5.4-mini as LLM, but feel free to change this. If you have an API key for ChatGPT available, enter the key here in this way:
Client ID: Authorization
Client Secret: Bearer <OpenAI key>
If the credential already exists, you can skip this step. For those of you that want to use a different AI provider, just proceed without entering anything and change the AI provider after the installation. If you don't want to use the chatbot functionality, also proceed without entering the credentials. After installation, remove the button "Ask AI" on page 16 after installation and disable natural speech for the IR on page 12.
Tree and Network Charts
There are two nice charts in the app that show the tree data in two different styles, both accessible through the navigation menu, so try them out first.
Use natural speech when working with the address book
The address book page has Natural Speech for IR activated, so you can ask questions like "Set last name to de Bruijn" here.
Ask questions related to the family tree
After clicking on "Ask AI" on the startpage, you can start asking questions like "Who are the children of Niels?" or "How is 902 related to Niels?". After asking a question, the LLM gets a list of tools (PL/SQL functions) that it may request to be run to get an answer on the question. In the APEX Builder, have a look at the "AI Agents" section in "Shared Components" to see how this was implemented. I used AI to generate the PL/SQL package to provide basic functionality, but feel free to optimize and extend the code to suit your needs.
Have fun exploring the features of this app and let me know if you like the app.






Comments
Post a Comment