Mayar Trigger
AI-generatedSummary
Route Mayar webhook events to one of eight output branches based on event type.
Inputs
None.
Output shape
array of 8 bundles (workflowData), each tagged to one event from MAYAR_EVENT_OUTPUTS. Only the matching branch receives the payload array; others are empty.
Inputs: none (trigger node, webhook-initiated). Event routing uses payload.event or payload.type. Unrecognized events default to the 'unknown' output (index 7). All 8 outputs are always present in the returned workflowData.
Examples
Example 1: payment.received event
No configuration required. Send a POST to the generated webhook URL with JSON body { event: 'payment.received', ... }. The workflow activates on the 'main' output branch at index 0, receiving [{ event: 'payment.received', ... }]. Other branches remain empty.
Example 2: unknown event type
Send a POST with an event not in MAYAR_EVENT_OUTPUTS. The workflow activates on the 'main' output branch at index 7 (unknown), receiving the payload array.