BASMA Message
AI-generatedSummary
Extracts selected WhatsApp message fields from each input item, supplies defaults for missing values, and adds text emptiness and length metadata. Use it to normalize incoming message data into a consistent output shape.
Inputs
None.
Output shape
One output item per input item, each containing json fields text, messageType, messageId, from, isEmpty, length, and timestamp.
Missing text, messageId, and from become empty strings; missing messageType becomes "unknown". isEmpty checks whether text is blank after trimming, while length counts the original text characters. A missing timestamp is filled with the execution-time value from Date.now().