Skip to main content

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:

  1. The event object which in this case is the SystemTriggeredEventEvent object. 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.
  2. A Context object.

note

This is a non-blocking chat function.