Skip to main content

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​

InputTypeRequiredDefaultWhat it is
TransactionStringYesName used in Open transaction.
ValuesDictionaryNoBusiness values to record, e.g. {"amount": 120, "supplier": "Acme"}; leave out sensitive fields. Credentials are refused.
OutcomeStringNosuccessHow the transaction ended.
StatusStringNoG1 (AA parity): a status in your own words (or from a variable), recorded instead of the outcome when given.
Include variablesBooleanNofalseG1 (AA parity): also record every variable of the agent (credentials never), after the values listed.

Outputs​

OutputTypeWhat it is
duration_secondsNumberSeconds between Open and Close.