A Slack direct message with an image
Alex sent Sam a direct message in a Slack workspace, with a screenshot attached.
{
"@type": "MessageAction",
"@key": ["@type", "source", "timestamp", "agent"],
"source": "slack",
"timestamp": "2024-03-13T15:04:05.000Z",
"agent": {
"@type": "Agent",
"@key": ["@type", "source", "sourceId"],
"source": "slack",
"sourceId": "U0EXAMPLE1",
"handle": "alex",
"name": "Alex Chen",
"memberOf": [
{
"@type": "Realm",
"@key": ["@type", "source", "sourceId"],
"source": "slack",
"sourceId": "T0EXAMPLE"
}
]
},
"result": {
"@type": "Message",
"@key": ["@type", "source", "body", "author"],
"source": "slack",
"body": "Here's the new dashboard layout",
"author": [
{
"@type": "Agent",
"@key": ["@type", "source", "sourceId"],
"source": "slack",
"sourceId": "U0EXAMPLE1",
"handle": "alex",
"name": "Alex Chen"
}
],
"recipient": [
{
"@type": "Agent",
"@key": ["@type", "source", "sourceId"],
"source": "slack",
"sourceId": "U0EXAMPLE2",
"handle": "sam",
"name": "Sam Rivera"
}
],
"contains": [
{
"@type": "ImageObject",
"@key": ["@type", "source", "sourceId"],
"source": "slack",
"sourceId": "F0EXAMPLE1",
"name": "dashboard.png",
"mimeType": "image/png",
"width": 1440,
"height": 900,
"contentPath": "/Users/sam/slack-export/D0EXAMPLE/attachments/F0EXAMPLE1-dashboard.png"
}
]
}
}{
"@context": {
"@vocab": "https://schema.chronicle.app/",
"doc": "https://schema.chronicle.app/docs/"
},
"@type": "MessageAction",
"doc:key": {
"@list": ["@type", "source", "timestamp", "agent"]
},
"source": "slack",
"timestamp": {
"@value": "2024-03-13T15:04:05.000Z",
"@type": "http://www.w3.org/2001/XMLSchema#dateTime"
},
"agent": {
"@type": "Agent",
"doc:key": {
"@list": ["@type", "source", "sourceId"]
},
"source": "slack",
"sourceId": "U0EXAMPLE1",
"handle": "alex",
"name": "Alex Chen",
"memberOf": [
{
"@type": "Realm",
"doc:key": {
"@list": ["@type", "source", "sourceId"]
},
"source": "slack",
"sourceId": "T0EXAMPLE"
}
]
},
"result": {
"@type": "Message",
"doc:key": {
"@list": ["@type", "source", "body", "author"]
},
"source": "slack",
"body": "Here's the new dashboard layout",
"author": [
{
"@type": "Agent",
"doc:key": {
"@list": ["@type", "source", "sourceId"]
},
"source": "slack",
"sourceId": "U0EXAMPLE1",
"handle": "alex",
"name": "Alex Chen"
}
],
"recipient": [
{
"@type": "Agent",
"doc:key": {
"@list": ["@type", "source", "sourceId"]
},
"source": "slack",
"sourceId": "U0EXAMPLE2",
"handle": "sam",
"name": "Sam Rivera"
}
],
"contains": [
{
"@type": "ImageObject",
"doc:key": {
"@list": ["@type", "source", "sourceId"]
},
"source": "slack",
"sourceId": "F0EXAMPLE1",
"name": "dashboard.png",
"mimeType": "image/png",
"width": {
"@value": "1440",
"@type": "http://www.w3.org/2001/XMLSchema#integer"
},
"height": {
"@value": "900",
"@type": "http://www.w3.org/2001/XMLSchema#integer"
},
"contentPath": "/Users/sam/slack-export/D0EXAMPLE/attachments/F0EXAMPLE1-dashboard.png"
}
]
}
}@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" "timestamp" "agent");
:source "slack";
:timestamp "2024-03-13T15:04:05.000Z"^^xsd:dateTime;
:agent [
a :Agent;
doc:key ("@type" "source" "sourceId");
:source "slack";
:sourceId "U0EXAMPLE1";
:handle "alex";
:name "Alex Chen";
:memberOf [
a :Realm;
doc:key ("@type" "source" "sourceId");
:source "slack";
:sourceId "T0EXAMPLE"
]
];
:result [
a :Message;
doc:key ("@type" "source" "body" "author");
:source "slack";
:body "Here's the new dashboard layout";
:author [
a :Agent;
doc:key ("@type" "source" "sourceId");
:source "slack";
:sourceId "U0EXAMPLE1";
:handle "alex";
:name "Alex Chen"
];
:recipient [
a :Agent;
doc:key ("@type" "source" "sourceId");
:source "slack";
:sourceId "U0EXAMPLE2";
:handle "sam";
:name "Sam Rivera"
];
:contains [
a :ImageObject;
doc:key ("@type" "source" "sourceId");
:source "slack";
:sourceId "F0EXAMPLE1";
:name "dashboard.png";
:mimeType "image/png";
:width "1440"^^xsd:integer;
:height "900"^^xsd:integer;
:contentPath "/Users/sam/slack-export/D0EXAMPLE/attachments/F0EXAMPLE1-dashboard.png"
]
]
] .