Skip to main content

Chat

Triggered by chat messages over WebSocket

Properties

PropertyValue
Typechat-trigger
FamilyTriggers
GroupGeneral

Parameters

NameLabelTypeDescriptionRequired
chatNameChat NameStringThis is the name of your chatYes
initialMessageInitial MessageStringThis is the initial message of your chatNo
showInitialMessageShow Initial MessageBoolWhether to show the initial messageYes
primaryColorPrimary ColorStringPrimary theme color for chat UI (hex format, e.g., #226326)No
secondaryColorSecondary ColorStringSecondary/accent color for chat UI (hex format, e.g., #2B7D30)No
showSuggestionsShow SuggestionsBoolWhether to show quick suggestion bubbles above chat inputNo
suggestionsSuggestionsJSONQuick suggestion bubbles - array of {title: string, message: string}No
inputPlaceholderInput PlaceholderStringPlaceholder text shown in the chat input fieldNo
enableFileUploadEnable File UploadBoolAllow users to upload files in chatNo
allowedFileTypesAllowed File TypesStringComma-separated MIME types or categories: image, document, audio, video, or specific types like image/pngNo
maxFileCountMax Files Per MessageNumberMaximum number of files that can be uploaded per message (0 = unlimited)No
maxFileSizeMBMax File Size (MB)NumberMaximum file size in megabytes per file (0 = unlimited)No

Outputs

NameLabelTypeDescription
messagemessagestringIncoming chat message
sessionIdsessionIdstringChat session identifier
chatNodeIdchatNodeIdstringID of the chat trigger node (for history lookup)
senderIdsenderIdstringMessage sender identifier
metadatametadataobjectAdditional metadata
receivedAtreceivedAtstringTimestamp when the message was received
filesfilesarrayArray of uploaded file URLs