Reacting to a message
Alex reacted to your direct message with a heart. The RespondAction's object is the Message and its result a Response whose body is the emoji. The response has no ID of its own, so it is keyed by the emoji and the action's message and reactor.
{
"@type": "RespondAction",
"@key": [
"@type",
"source",
"object.sourceId",
"agent.handle",
"agent.name",
"result.body"
],
"source": "instagram",
"timestamp": "2023-11-14T22:15:00.000Z",
"agent": {
"@type": "Agent",
"@key": ["@type", "source", "handle"],
"source": "instagram",
"handle": "alexchen",
"url": "https://www.instagram.com/alexchen"
},
"object": {
"@type": "Message",
"@key": ["@type", "source", "sourceId"],
"source": "instagram",
"sourceId": "alexchen_123/1700000000000",
"body": "hello"
},
"result": {
"@type": "Response",
"@key": [
"@type",
"source",
"body",
"action.object.sourceId",
"action.agent.handle",
"action.agent.name"
],
"source": "instagram",
"body": "❤️"
}
}{
"@context": {
"@vocab": "https://schema.chronicle.app/",
"doc": "https://schema.chronicle.app/docs/"
},
"@type": "RespondAction",
"doc:key": {
"@list": [
"@type",
"source",
"object.sourceId",
"agent.handle",
"agent.name",
"result.body"
]
},
"source": "instagram",
"timestamp": {
"@value": "2023-11-14T22:15:00.000Z",
"@type": "http://www.w3.org/2001/XMLSchema#dateTime"
},
"agent": {
"@type": "Agent",
"doc:key": {
"@list": ["@type", "source", "handle"]
},
"source": "instagram",
"handle": "alexchen",
"url": "https://www.instagram.com/alexchen"
},
"object": {
"@type": "Message",
"doc:key": {
"@list": ["@type", "source", "sourceId"]
},
"source": "instagram",
"sourceId": "alexchen_123/1700000000000",
"body": "hello"
},
"result": {
"@type": "Response",
"doc:key": {
"@list": [
"@type",
"source",
"body",
"action.object.sourceId",
"action.agent.handle",
"action.agent.name"
]
},
"source": "instagram",
"body": "❤️"
}
}@prefix : <https://schema.chronicle.app/> .
@prefix doc: <https://schema.chronicle.app/docs/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
[
a :RespondAction;
doc:key ("@type" "source" "object.sourceId" "agent.handle" "agent.name" "result.body");
:source "instagram";
:timestamp "2023-11-14T22:15:00.000Z"^^xsd:dateTime;
:agent [
a :Agent;
doc:key ("@type" "source" "handle");
:source "instagram";
:handle "alexchen";
:url "https://www.instagram.com/alexchen"
];
:object [
a :Message;
doc:key ("@type" "source" "sourceId");
:source "instagram";
:sourceId "alexchen_123/1700000000000";
:body "hello"
];
:result [
a :Response;
doc:key ("@type" "source" "body" "action.object.sourceId" "action.agent.handle" "action.agent.name");
:source "instagram";
:body "❤️"
]
] .