-
public final class StartChatOptionsOptions for OrigonClient.startChat.
firstMessage is REQUIRED, and that is the whole point of the split from the old
startSession. The server runs a two-stage gate on every chat: the flow does not start until the visitor has actually said something, and a session that stays silent past the deadline is reaped. An API that opened a session and then waited for a human to type was racing that deadline; carrying the message here makes the race unreachable.Attachment-only is valid — the gate fires on ANY visitor content.
-
-
Field Summary
Fields Modifier and Type Field Description private final SendMessagePayloadfirstMessageprivate final StringsessionIdprivate final Stringdata
-
Constructor Summary
Constructors Constructor Description StartChatOptions(SendMessagePayload firstMessage, String sessionId, String data)
-
Method Summary
Modifier and Type Method Description final SendMessagePayloadgetFirstMessage()The visitor's first message. final StringgetSessionId()Existing session id to resume; null for a new session. final StringgetData()Optional consumer-defined raw JSON forwarded as dataon the wire.-
-
Constructor Detail
-
StartChatOptions
StartChatOptions(SendMessagePayload firstMessage, String sessionId, String data)
-
-
Method Detail
-
getFirstMessage
final SendMessagePayload getFirstMessage()
The visitor's first message. Required.
-
getSessionId
final String getSessionId()
Existing session id to resume; null for a new session.
-
-
-
-