> ## Documentation Index
> Fetch the complete documentation index at: https://docs.monumint.com/llms.txt
> Use this file to discover all available pages before exploring further.

# action_log.completed

Triggered when an action log completes successfully.

## Event Type

`action_log.completed`

## Description

This event is fired whenever an action log (such as a message, tool call, or follow-up) completes successfully. Use this event to track agent activity and respond to completed actions in real-time.

## Payload Structure

**event** `string` *required*

The event type: `action_log.completed`

**actionLog** `object`

The completed action log object

**actionLog**

**id** `string` *required*

Unique identifier for the action log

**type** `string` *required*

Type of action: `SYSTEM_NOTE`, `MESSAGE`, `FOLLOW_UP_MESSAGE`, `TOOL_CALL`, `DOCUMENT_UPLOAD`, `MANUAL_UPDATE`, `PORTAL_UPDATE`, `PORTAL_SUBMISSION`

**status** `string` *required*

Status of the action: `COMPLETED`

**leadId** `string` *required*

ID of the lead associated with this action

**workflowRunId** `string | null`

ID of the workflow run this action was taken under, or `null` when it did not happen under a workflow run

**externalWorkflowRunId** `string | null`

Your own identifier for that workflow run, if you set one when creating it

**summary** `string`

Brief summary of the action

**input** `object`

Input data for the action (varies by action type)

**output** `object`

Output data from the action (if applicable)

**messages** `array`

Array of messages if the action type is `MESSAGE` or `FOLLOW_UP_MESSAGE`

**messages**

**id** `string`

Unique identifier for the message

**channel** `string`

Channel of the message

**direction** `string`

Direction of the message

**subject** `string`

Subject of the message

**body** `string`

Body of the message

**documents** `array`

Array of documents associated with the message

**documents**

**id** `string`

Unique identifier for the document

**filename** `string`

Filename of the document

**mimeType** `string`

MIME type of the document

**size** `number`

Size of the document

**completedAt** `string`

ISO 8601 timestamp when the action was completed

**actor** `object | null`

Workspace user who triggered this action. Returns `null` for actions not initiated by a workspace user.

**actor**

**type** `enum`

Type of actor

**id** `string`

Unique identifier for the user

**name** `string | null`

Name of the user

**email** `string`

Email address of the user

**workspaceId** `string` *required*

ID of the workspace this event belongs to

```json theme={null}
{
  "event": "action_log.completed",
  "actionLog": {
    "id": "59ac65a5-33fe-43a6-924b-134c582a285e",
    "type": "MESSAGE",
    "status": "COMPLETED",
    "leadId": "4cc8af99-b313-4c1f-b98b-009f38a4721a",
    "workflowRunId": "5d8c1f3a-7b2e-4c9d-8e1f-2a3b4c5d6e7f",
    "externalWorkflowRunId": "crm-run-8813",
    "summary": "Incoming email: docs",
    "input": {
      "channel": "EMAIL",
      "direction": "INBOUND",
      "metadata": {
        "agentMailData": {
          "to": ["Mark Ding <mark-local@agent.getomni.ai>"],
          "from": "Mark Ding <markdingkl@gmail.com>",
          "subject": "docs"
        }
      }
    },
    "output": null,
    "messages": [
      {
        "id": "2421bef7-95bc-4546-92a3-c7e5600fbb6a",
        "body": "<div dir=\"ltr\"><br></div>\n",
        "channel": "EMAIL",
        "subject": "docs",
        "direction": "INBOUND",
        "documents": [
          {
            "id": "2421bef7-95bc-4546-92a3-c7e5600fbb6a",
            "filename": "docs.pdf",
            "mimeType": "application/pdf",
            "size": 1000
          }
        ]
      }
    ],
    "completedAt": "2025-10-30T20:07:17.553Z"
  },
  "actor": {
    "type": "USER",
    "id": "8a1f6c2e-4b7d-4e2a-9c3f-1d5e6f7a8b9c",
    "name": "Jane Doe",
    "email": "jane@acme.com"
  },
  "workspaceId": "6048d78a-584a-4f1e-9e39-e011ca4cc48c"
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.