A message from Alex
Alex sent you a message on iMessage. The Message is keyed by iMessage's own ID for it, its source and sourceId, and the MessageAction by the message it sent, its result.
Alex is keyed twice. The first key is a handle in the icloud source. The second, through sameAs, is Alex's email address in the email namespace. That key doesn't belong to iMessage: any source that knows Alex's email address can use the same key.
{
"@type": "MessageAction",
"@key": ["@type", "source", "result.sourceId"],
"source": "imessage",
"timestamp": "2026-05-09T18:22:07.000Z",
"agent": {
"@type": "Agent",
"@key": ["@type", "source", "handle"],
"source": "icloud",
"handle": "alex@example.com",
"name": "Alex Chen",
"sameAs": [
{
"@type": "Agent",
"@key": ["@type", "source", "handle"],
"source": "email",
"handle": "alex@example.com"
}
]
},
"result": {
"@type": "Message",
"@key": ["@type", "source", "sourceId"],
"source": "imessage",
"sourceId": "9B1C5E2A-7F43-4D8E-A6B0-3C2F9E14D7A5",
"body": "Found the trailhead!"
}
}{
"@context": {
"@vocab": "https://schema.chronicle.app/",
"doc": "https://schema.chronicle.app/docs/"
},
"@type": "MessageAction",
"doc:key": {
"@list": ["@type", "source", "result.sourceId"]
},
"source": "imessage",
"timestamp": {
"@value": "2026-05-09T18:22:07.000Z",
"@type": "http://www.w3.org/2001/XMLSchema#dateTime"
},
"agent": {
"@type": "Agent",
"doc:key": {
"@list": ["@type", "source", "handle"]
},
"source": "icloud",
"handle": "alex@example.com",
"name": "Alex Chen",
"sameAs": [
{
"@type": "Agent",
"doc:key": {
"@list": ["@type", "source", "handle"]
},
"source": "email",
"handle": "alex@example.com"
}
]
},
"result": {
"@type": "Message",
"doc:key": {
"@list": ["@type", "source", "sourceId"]
},
"source": "imessage",
"sourceId": "9B1C5E2A-7F43-4D8E-A6B0-3C2F9E14D7A5",
"body": "Found the trailhead!"
}
}@prefix : <https://schema.chronicle.app/> .
@prefix doc: <https://schema.chronicle.app/docs/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
[
a :MessageAction;
doc:key ("@type" "source" "result.sourceId");
:source "imessage";
:timestamp "2026-05-09T18:22:07.000Z"^^xsd:dateTime;
:agent [
a :Agent;
doc:key ("@type" "source" "handle");
:source "icloud";
:handle "alex@example.com";
:name "Alex Chen";
:sameAs [
a :Agent;
doc:key ("@type" "source" "handle");
:source "email";
:handle "alex@example.com"
]
];
:result [
a :Message;
doc:key ("@type" "source" "sourceId");
:source "imessage";
:sourceId "9B1C5E2A-7F43-4D8E-A6B0-3C2F9E14D7A5";
:body "Found the trailhead!"
]
] .