Skip to main content

Message Length

Runs on: Frontend (Chatbox). Chatbox Flow Editor only.

Outputs the character count of the message text, spaces and punctuation included. Connect count to a Math check to branch on length.

Inputs​

NameTypeDescription
messagechat-messageThe chat message object from the Chat Message trigger or an upstream check node.

Outputs​

NameTypeDescription
countnumberThe number of characters in the message text.

Example​

Connect count to a Math check set to "less than 4" and route Pass (messages like "lol" or "gg") to a compact single-line variant.