WA-AKG Trigger icon

WA-AKG Trigger

Starts the workflow when WA-AKG Webhook is triggered

WA-AKG Trigger

AI-generated

Summary

Receives WA-AKG webhook POST events and routes execution data to one of ten outputs matching the event type.

Inputs

None.

Output shape

main

The node returns workflowData as an array of 10 arrays; the inner array at the index matching the received event type contains { json: body }, or index 0 if the event is unrecognized. All 10 event types are explicitly listed per the source code's eventTypes array and index mapping logic. The first output (index 0) also serves as the fallback for any event not in the defined list, still returning { json: body } at that position. Although each output is typed as 'main' in the node definition, the practical distinction is the event-type index that workflow authors can check to branch logic.

Examples

Example 1: Message received event

When WA-AKG sends a 'message.received' event, returnData[0] = [{ json: body }], and workflowData[0] contains the payload at execution time.

Example 2: Unrecognized event

If body.event does not match any of the 10 types, returnData[0] = [{ json: body }]; the execution still proceeds with the full body at index 0.

Links

Discussion