Hi Riccardo
As the article you referred to shows, the 'chatgpt_response' field visible in the example GUI is populated when the script updates the alert. Active Response scripts themselves don’t automatically store the ChatGPT output in alert fields.
In this case, you would need to add logic in your script to write the response to a custom field, for example, to persist this data. You can find more details on how to update alerts programmatically in the Wazuh Indexer API
documentation, and you might also explore some use cases and examples
here.
While I’m not able to work on the script itself, I hope this information points you in the right direction.