@@ -78,6 +78,10 @@ public void configLaunch(ReadableMap chatSettings, ReadableMap userSettings) {
78
78
.value (chatSettings .getString ("version" )).build ("Version__c" , "Version__c" , PreChatField .STRING );
79
79
PreChatField pointOfUserJourney = new PreChatField .Builder ().hidden (true )
80
80
.value (chatSettings .getString ("pointOfUserJourney" )).build ("PointOfCustomerJourney__c" , "PointOfCustomerJourney__c" , PreChatField .STRING );
81
+ PreChatField additionalInformation = new PreChatField .Builder ().hidden (true )
82
+ .value (chatSettings .getString ("additionalInformation" )).build ("AdditionalInformation__c" , "AdditionalInformation__c" , PreChatField .STRING );
83
+ PreChatField botMessage = new PreChatField .Builder ().hidden (true )
84
+ .value (chatSettings .getString ("botMessage" )).build ("GenericBotMessage__c" , "GenericBotMessage__c" , PreChatField .STRING );
81
85
PreChatField suppliedEmail = new PreChatField .Builder ().hidden (true )
82
86
.value (userSettings .getString ("email" )).build ("SuppliedEmail" , "SuppliedEmail" , PreChatField .EMAIL );
83
87
PreChatField suppliedName = new PreChatField .Builder ().hidden (true )
@@ -104,6 +108,8 @@ public void configLaunch(ReadableMap chatSettings, ReadableMap userSettings) {
104
108
preChatFields .add (equipment );
105
109
preChatFields .add (version );
106
110
preChatFields .add (pointOfUserJourney );
111
+ preChatFields .add (additionalInformation );
112
+ preChatFields .add (botMessage );
107
113
108
114
109
115
// Create an entity field builder for Case fields
@@ -127,6 +133,8 @@ public void configLaunch(ReadableMap chatSettings, ReadableMap userSettings) {
127
133
.addPreChatEntityField (caseEntityBuilder .build ("EquipmentV2__c" , "EquipmentV2__c" ))
128
134
.addPreChatEntityField (caseEntityBuilder .build ("Version__c" , "Version__c" ))
129
135
.addPreChatEntityField (caseEntityBuilder .build ("PointOfCustomerJourney__c" , "PointOfCustomerJourney__c" ))
136
+ .addPreChatEntityField (caseEntityBuilder .build ("AdditionalInformation__c" , "AdditionalInformation__c" ))
137
+ .addPreChatEntityField (caseEntityBuilder .build ("GenericBotMessage__c" , "GenericBotMessage__c" ))
130
138
.build ("Case" );
131
139
// Add the entities to the list
132
140
preChatEntities .add (caseEntity );
0 commit comments