StyloDocs
Workflow blocks

Write Audit Log

Persist an audit record for automated ticket actions

View as Markdown

automation/write-audit-log — Persist an audit record for automated ticket actions.

Where it appears

The Write Audit Log block lives in the Logic & control group of the Workflow Builder.

Fields

FieldTypeRequiredDefaultDescription
actionTypeselectYesauto_responseCategory of automated action being recorded in the audit log (e.g. an auto-response was sent, a tag was added, the ticket was updated, or it was escalated). Options: auto_response, tag_added, ticket_updated, escalated.
ticketIdtext (supports references)YesID of the ticket the audited action applies to. Use a literal ID or <StepName.field> to reference an ID from a previous step.
ticketSubjecttext (supports references)NoOptional ticket subject stored with the audit record for context. Accepts literal text or <StepName.field>.
responseTexttext (multi-line, supports references)NoOptional response text to record with the audit entry (e.g. the message that was sent). Accepts literal text or <StepName.field>.

Inputs and outputs

Inputs are the configurable fields above. The block produces these outputs:

Outputs

Reference an output downstream with <Write Audit Log.field>.

NameTypeDescription
successbooleanSuccess status
auditLogIdstringAudit log ID
errorstringError message if failed

Example

A minimal configuration for this block:

{
  "type": "automation/write-audit-log",
  "config": {
    "actionType": "auto_response",
    "ticketId": "<PreviousStep.field>"
  }
}

Limits and failure modes

  • Required fields (actionType, ticketId) must be set, or the block fails validation before it runs.
  • On failure the error output is populated; downstream blocks that reference other outputs may not receive values.

On this page