~/docs/webhooks / events / message.completed

message.completed

Fired when an AI message finishes generating successfully.


This event indicates that the orchestrator AI has completed its execution for the current turn. The payload contains the final generated text content, any reasoning steps taken, and all tool calls and results gathered during the process.

Payload

json
{
  "event": "message.completed",
  "timestamp": "2026-06-13T17:37:55.102Z",
  "data": {
    "id": "msg_123abc",
    "chatId": "5620d1c6-b394-405c-9608-6ade631f98f2",
    "role": "assistant",
    "status": "complete",
    "content": "I have retrieved the records you requested.",
    "reasoning": "The user wants a list of records. I will call the list tool.",
    "toolCalls": [
      {
        "toolCallId": "call_a83b0714fa984267bb20128b",
        "toolName": "manage_brain",
        "input": { "action": "list" }
      }
    ],
    "toolResults": [
      {
        "toolCallId": "call_a83b0714fa984267bb20128b",
        "result": { "status": "success", "items": [] }
      }
    ],
    "attachments": [],
    "createdAt": "2026-06-13T17:37:50.539Z",
    "updatedAt": "2026-06-13T17:37:55.102Z"
  }
}