SiteConfig
data class SiteConfig(val siteId: String = "", val name: String = "", val color: String = "#0ea5e9", val position: String = "right", val localeDefault: String = "auto", val greeting: Map<String, String> = emptyMap(), val awayMessage: Map<String, String> = emptyMap(), val offlineCapture: OfflineCapture = OfflineCapture.OFF, val hideWhenOffline: Boolean = false, val theme: SiteTheme = SiteTheme.AUTO, val botEnabled: Boolean = false, val agentAvatars: List<AgentAvatar> = emptyList(), val launcher: LauncherConfig = LauncherConfig(), val header: HeaderConfig? = null, val greetingOptions: GreetingOptions? = null, val contactButtons: List<ContactButton> = emptyList(), val raw: JsonObject = EmptyJsonObject)
Site settings the widget and SDK render from.
Constructors
Link copied to clipboard
constructor(siteId: String = "", name: String = "", color: String = "#0ea5e9", position: String = "right", localeDefault: String = "auto", greeting: Map<String, String> = emptyMap(), awayMessage: Map<String, String> = emptyMap(), offlineCapture: OfflineCapture = OfflineCapture.OFF, hideWhenOffline: Boolean = false, theme: SiteTheme = SiteTheme.AUTO, botEnabled: Boolean = false, agentAvatars: List<AgentAvatar> = emptyList(), launcher: LauncherConfig = LauncherConfig(), header: HeaderConfig? = null, greetingOptions: GreetingOptions? = null, contactButtons: List<ContactButton> = emptyList(), raw: JsonObject = EmptyJsonObject)
Properties
Link copied to clipboard
Online team members for the header (and the greeting's signature).
Link copied to clipboard
Away message per locale, shown while nobody is online.
Link copied to clipboard
The AI assistant answers first.
Link copied to clipboard
Other ways to reach the shop (Zalo, Messenger, phone, email).
Link copied to clipboard
Greeting display options (older gateways: null, the greeting always shows).
Link copied to clipboard
Header subtitle, logo and profile (older gateways: null, the agents' initials and no subtitle).
Link copied to clipboard
Hide the launcher while offline (web).
Link copied to clipboard
How the launcher button looks (older gateways: the default chat bubble).
Link copied to clipboard
vi, en or auto.
Link copied to clipboard
Pre-chat form policy.