Set Priority

Node

Set Priority

Description

The Set Priority node image-20250813-144230.png is used to set the priority field in the payload received from the previous node.

Execution & Payload Details:

  • Purpose: Calculates a conversation priority and writes it to the message.

  • Reads from:

    • msg.payload.session.customer.labelNames: array of labels (strings or objects with name; case-insensitive).

    • msg.payload.data.additionalDetails.priority: optional initial priority (number).

  • Writes to:

    • msg.payload.priority: final computed priority (number).

  • Defaults:

    • If no initial priority is provided, starts at 1.

  • If no labels are present or not an array, the initial/default priority is kept.


  • Behavior:

    • On success, forwards the message with msg.payload.priority set.

    • On error, logs and raises a node error (no other fields are modified).