Reset AIP Generated Content Widget using object table event?

I think the answer is “No” but is this possible?

I have an AIP Generated Content widget containing a logic function that is fed properties of the selected item in an object table. Click an object table item, run the widget, content is generated based on that selection.

I’d like to reset the widget when the user clicks a different item in the object table.

I’ve tried adding an event to reset the widgets output variable - doesn’t reset the widget

I’ve tried creating a blank static string variable and adding an event to apply this variable to the widgets output variable - doesn’t reset the widget.

Is there any other way to reset/clear the widgets output that don’t involve clicking the “Clear output” button in the widget itself?

I solved this using “LLM via Prompt Function” and writing a typescript function to generate the prompt to feed the LLM and flicking this switch in the widget config

image

It works for my use case, but it’s a shame that there are only 4 LLMs available for the widget.