Close transaction
End a transaction opened with Open transaction and record its values, outcome and duration for dashboards.
Command in the Insights toolkit · id ooa.insights/close_transaction · 5 inputs (1 required), 1 output
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Transaction | String | Yes | Name used in Open transaction. | |
| Values | Dictionary | No | Business values to record, e.g. {"amount": 120, "supplier": "Acme"}; leave out sensitive fields. Credentials are refused. | |
| Outcome | String | No | success | How the transaction ended. |
| Status | String | No | G1 (AA parity): a status in your own words (or from a variable), recorded instead of the outcome when given. | |
| Include variables | Boolean | No | false | G1 (AA parity): also record every variable of the agent (credentials never), after the values listed. |
Outputs
| Output | Type | What it is |
|---|---|---|
| duration_seconds | Number | Seconds between Open and Close. |