Skip to main content
Skip table of contents

Extract Data

Node

Extract Data

Description

The Extract Data node image-20250813-114630.png is used to extract/normalize key fields from the incoming payload into top-level msg.payload properties for downstream nodes.

Execution & Payload Details:

  • Reads from:

    • msg.payload.slots.cimEvent.data → source data block.

    • msg.payload.conversation → to derive session and identifiers.

  • Logic:

    • data = slots.cimEvent?.data || {}.

    • session = conversation.metadata.lastUsedChannelSession (throws error if missing).

    • customer_id = conversation.customer?._id || null.

    • channel_type = session.channel?.channelType?.name || null.

    • direction = conversation.conversationDirection || null.

    • fallback_queue_id = session.channel?.channelConfig?.routingPolicy?.routingObjectId || null.

  • Writes to:

    • msg.payload.data (object)

    • msg.payload.session (object)

    • msg.payload.customer_id (string/number or null)

    • msg.payload.channel_type (string or null)

    • msg.payload.direction (string or null)

    • msg.payload.fallback_queue_id (string/number or null)

  • Behavior:

    • On success: logs and forwards the message with the above fields set.

    • On error (e.g., missing last used channel session): logs and raises a node error.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.