Using Human Intelligence in making a widget

Today in #Office Hours we had a great discussion of the consequences of using AI to create widgets.

To start we acknowledged:

  1. We should know JS when making a widget, even with AI

  2. But AI makes building a widget so much easier.

We also recognized that we can build most widgets on our own, if we know some JS. AI is good for some things, but there is still some satisfaction in developing a simple widget with human intelligence (HI).

To demonstrate the use of HI, I took an idea from an attendee and created a widget for it. He needed to display related comments of a particular parent record in some form, and was interested in how a widget and a web viewer could help.

I took that idea and walked through how I would create that using JI (Jeremy Intelligence).

The result is in the images below.

Put on the spot

Without any prep time or practice beforehand, I was able to use my JS skills to create something that could work to show comments (or other related records) in a different way in the web viewer. I had to turn off the AI help while I was coding it. I think I did it for 10 minutes or so. I built the basic format of creating elements in the browser for each of the comments in the array. (I did use AI to generate an array of sample comments)

Success

Within 20 minutes, using HI or JI, I had something that really could have worked in a production app. We spent the rest of the time using AI to generate beautiful styles and themes. That was where AI really stood out and did well.


Give HI a try

It is great to use AI, but we all have HI, so we could try that. HI is quaint, I know, but it is still the most reliable and doesn’t require extra Watts of power, tokens, or money. It is just there. 😊

Review it yourself

Here is the link to the repository. Feel free, for free, to clone it to your machine, install it (npm install) and try it out. Review how the code is written in index.js, and review how the scripting is built. You can put any data you want into this widget. It does need some specific properties, but I think you can manage that.

Comment Card List Repo