System triggered event
This function is called when an event is triggered using the Platform REST API.
async function handleEvent(event: SystemTriggeredEventEvent, context: Context) {
}
The above function takes two parameters:
-
The event object which in this case is the
SystemTriggeredEventEventobject. This object has three properties:channel: The channel in which the triggered event occured.event: The event object for the event the system has triggered.
-
A
Contextobject.
note
This is a non-blocking chat function.