Solutions to “Just KNIME It!” Challenge 11 - Season 2

Hi Everyone :slight_smile:

Great solutions this week! Thanks for sharing the -Data App Header- component, so I was able to include it in my solution too :slight_smile:

I have made a simple GPT-3 prompt that allows you to insert your API key, model, max tokens and temperature using -String Widget- and -Integer Widget- nodes. I’ve converted the variables to columns and then to JSON using the -Columns to JSON- node.

The -POST Request- node sends the request and receives the response. The response is then converted to a string using -JSON Path- and -Ungroup- nodes. The Answer is finally displayed using the -Text Output Widget- node.

You can find my workflow on the hub here:

Best wishes
Heather

6 Likes