LiraX Trigger icon

LiraX Trigger

Handle incoming calls, SMS, and status changes

LiraX Trigger

AI-generated

Summary

Processes selected LiraX webhook events and returns corresponding payloads, simplified or raw based on configuration.

Inputs

None.

Output shape

array

Returns an array containing one element with a json property set to the processed event data. If the incoming event is not in the selected events list (and * is not selected), workflowData is empty and webhookResponse.status is 'ignored'.

Examples

Example 1: Incoming SMS with simple output

Events: [new_sms]; simple: true (default); credentials: liraXApi with valid webhook token and region configured; webhook receives POST from LiraX with body { event: 'new_sms', from: '+1234567890', to: '+0987654321', text: 'Hello' }.

Example 2: Call hangup with simplified output

Events: [hangup_call]; simple: true; webhook receives event 'hangup_call' with data including duration, disposition, recording_url.

Example 3: Unselected event

Events: [answer_call]; webhook receives event 'call_start'. Since 'call_start' is not in the events list and '*' is not selected, the node returns workflowData: [] and webhookResponse: { status: 'ignored' }.

Links

Discussion