Add an App Action after the agent: app PostgreSQL (or MySQL, SQL Server), operation Insert, the table name, and Fields to set such as answer = ${2.analysis} and asked = ${userQuery}. The step runs on every run with no approval, because it is a fixed step.
Every run is also stored by Sparkflows and can be read through the API, so the table is for your own reporting.