Skip to main content

Message Length

Runs on: Frontend (Chatbox) — only available in the Chatbox Flow Editor; runs inside the OBS browser source.

The Message Length node reads the message text field on the incoming chat message and outputs its character count as a number. It counts the raw text length of the message string — spaces and punctuation included.

Connect the count output to a Math check node to branch on message length: for example, routing very short messages (under 5 characters) to a compact variant and longer messages to a full-width layout.

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". Route Pass (very short messages like "lol" or "gg") to a compact single-line variant. Route Fail to the default full-height layout.