Configuration
Configuration
A configuration object has to be created, which should be passed to the initialize
API.
Below are the configuration options that we have.
Properties:
Domain (Required)
Type
: stringDefault
: string.EmptyDescription
: Specifies the domain for the widget to operate.
PlatformId (Required)
Type
: stringDefault
: string.EmptyDescription
: Unique identifier for the platform.
AppId (Required)
Type
: stringDefault
: string.EmptyDescription
: Unique identifier for the application.
WidgetType (Required)
Type
: stringDefault
:helpcenter_and_webchat
Description
: Defines the type of widget. Common options includehelpcenter_and_webchat
,helpcenter
andwebchat
.
UserId
Type
: stringDefault
: string.EmptyDescription
: Identifier for the user interacting with the widget.
UserName
Type
: stringDefault
: string.EmptyDescription
: Name of the user.
UserEmail
Type
: stringDefault
: string.EmptyDescription
: Email address of the user.
Language
Type
: stringDefault
:en
Description
: Language preference for the widget. Example:en
,fr
.
ConversationPrefillText
Type
: stringDefault
: string.EmptyDescription
: Prefill text for initiating a conversation.
InitialUserMessage
Type
: stringDefault
: string.EmptyDescription
: Initial message displayed to the user.
FullPrivacy
Type
: boolDefault
: falseDescription
: Indicates if full privacy mode is enabled.
InitiateChatOnLoad
Type
: boolDefault
: falseDescription
: Automatically initiate a chat when the widget loads.
ClearAnonymousUserOnLogin
Type
: boolDefault
: falseDescription
: Clears anonymous user data upon login.
EnableLogging
Type
: boolDefault
: falseDescription
: Enables logging for debugging purposes.
Cifs
Type
: boolDefault
: falseDescription
: Configuration identifier for specific integrations.
Tags
Type
:List<string>
Default
:new List<string>()
Description
: A list of tags to associate with the widget.
FaqId
Type
: stringDefault
: string.EmptyDescription
: Identifier for a specific FAQ.
SectionId
Type
: stringDefault
: string.EmptyDescription
: Identifier for a specific section.
ResizeMode
- Type: ResizeMode
- Default: ResizeMode.SlimRight
- Description: Determines how the widget resizes. Example values include
ResizeMode.SlimRight
,ResizeMode.SlimCenter
,ResizeMode.SlimLeft
,ResizeMode.WideCenter
andResizeMode.FullScreen
.
Usage
var config = new HelpshiftConfig
{
Domain = "mydomain",
PlatformId = "mydomain_platform_123",
AppId = "3",
WidgetType = "helpcenter_and_webchat",
////////////////////////////////////
// Configure the rest of the required options
/////////////////////////////////////
};
// Pass the configuration to the initialize API
Helpshift.Initialize(Application.streamingAssetsPath,config);
Mode Previews
SlimRight ( Default )
SlimLeft
SlimCenter
WideCenter
FullScreen