Skip to main content
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
actor
object | null
Workspace user who triggered this action. Returns null for actions not initiated by a workspace user.
workspaceId
string
required
ID of the workspace this event belongs to
{
  "event": "action_log.completed",
  "actionLog": {
    "id": "59ac65a5-33fe-43a6-924b-134c582a285e",
    "type": "MESSAGE",
    "status": "COMPLETED",
    "leadId": "4cc8af99-b313-4c1f-b98b-009f38a4721a",
    "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"
}