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
The event type, always “action_log.completed”
actionLog
object
The completed action log object
occurredAt
string
ISO 8601 timestamp when the event occurred
workspaceId
string
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": []
      }
    ],
    "completedAt": "2025-10-30T20:07:17.553Z"
  },
  "occurredAt": "2025-10-30T20:07:17.567Z",
  "workspaceId": "6048d78a-584a-4f1e-9e39-e011ca4cc48c"
}