@cognigy/rest-api-client 0.14.0 → 0.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (274) hide show
  1. package/build/RestAPIClient.js +4 -0
  2. package/build/apigroups/AdministrationAPIGroup_2_1.js +13 -0
  3. package/build/apigroups/ResourcesAPIGroup_2_0.js +69 -9
  4. package/build/apigroups/index.js +3 -1
  5. package/build/connector/AxiosAdapter.js +1 -1
  6. package/build/shared/api/eightByEight/eightByEightInterfaces.js +3 -0
  7. package/build/shared/charts/descriptors/agentAssist/index.js +10 -0
  8. package/build/shared/charts/descriptors/agentAssist/setAdaptiveCardTile.js +74 -0
  9. package/build/shared/charts/descriptors/agentAssist/setHtmlTile.js +98 -0
  10. package/build/shared/charts/descriptors/agentAssist/setIframeTile.js +86 -0
  11. package/build/shared/charts/descriptors/analytics/activateProfile.js +1 -1
  12. package/build/shared/charts/descriptors/analytics/blindMode.js +5 -5
  13. package/build/shared/charts/descriptors/analytics/completeGoal.js +2 -2
  14. package/build/shared/charts/descriptors/analytics/deactivateProfile.js +2 -2
  15. package/build/shared/charts/descriptors/analytics/deleteProfile.js +1 -1
  16. package/build/shared/charts/descriptors/analytics/mergeProfile.js +2 -2
  17. package/build/shared/charts/descriptors/analytics/overwriteAnalytics.js +34 -27
  18. package/build/shared/charts/descriptors/analytics/requestRating.js +5 -5
  19. package/build/shared/charts/descriptors/analytics/setRating.js +4 -4
  20. package/build/shared/charts/descriptors/analytics/updateProfile.js +3 -3
  21. package/build/shared/charts/descriptors/apps/getAppSessionPin.js +7 -14
  22. package/build/shared/charts/descriptors/apps/initAppSession.js +99 -87
  23. package/build/shared/charts/descriptors/apps/setAdaptiveCardAppState.js +101 -19
  24. package/build/shared/charts/descriptors/apps/setAppState.js +7 -7
  25. package/build/shared/charts/descriptors/apps/setHtmlAppState.js +141 -99
  26. package/build/shared/charts/descriptors/apps/utils/buildAppUrl.js +2 -6
  27. package/build/shared/charts/descriptors/connectionNodes/generativeAIProviders/anthropicProviderConnection.js +11 -0
  28. package/build/shared/charts/descriptors/connectionNodes/generativeAIProviders/azureOpenAIProviderConnection.js +4 -1
  29. package/build/shared/charts/descriptors/connectionNodes/generativeAIProviders/azureOpenAIProviderConnectionV2.js +11 -0
  30. package/build/shared/charts/descriptors/connectionNodes/generativeAIProviders/googleVertexAIProviderConnection.js +16 -0
  31. package/build/shared/charts/descriptors/connectionNodes/generativeAIProviders/index.js +14 -2
  32. package/build/shared/charts/descriptors/connectionNodes/generativeAIProviders/openAIProviderConnection.js +1 -1
  33. package/build/shared/charts/descriptors/connectionNodes/internalStorageProviders/amazonStorageProviderConnection.js +1 -1
  34. package/build/shared/charts/descriptors/connectionNodes/internalStorageProviders/azureBlobStorageProviderConnection.js +1 -1
  35. package/build/shared/charts/descriptors/connectionNodes/internalStorageProviders/googleCloudStorageProviderConnection.js +1 -1
  36. package/build/shared/charts/descriptors/connectionNodes/mongoDB/aggregate.js +13 -13
  37. package/build/shared/charts/descriptors/connectionNodes/mongoDB/find.js +18 -18
  38. package/build/shared/charts/descriptors/connectionNodes/mongoDB/findOne.js +17 -17
  39. package/build/shared/charts/descriptors/connectionNodes/mongoDB/insert.js +13 -13
  40. package/build/shared/charts/descriptors/connectionNodes/mongoDB/mongoDBConnection.js +1 -1
  41. package/build/shared/charts/descriptors/connectionNodes/mongoDB/remove.js +13 -13
  42. package/build/shared/charts/descriptors/connectionNodes/mongoDB/updateMany.js +15 -15
  43. package/build/shared/charts/descriptors/connectionNodes/mongoDB/updateOne.js +15 -15
  44. package/build/shared/charts/descriptors/connectionNodes/smtp/emailNotification.js +28 -28
  45. package/build/shared/charts/descriptors/connectionNodes/smtp/index.js +3 -1
  46. package/build/shared/charts/descriptors/connectionNodes/smtp/oAuth2Connection.js +18 -0
  47. package/build/shared/charts/descriptors/connectionNodes/smtp/sendEmail.js +102 -70
  48. package/build/shared/charts/descriptors/connectionNodes/smtp/serviceConnection.js +1 -1
  49. package/build/shared/charts/descriptors/connectionNodes/smtp/smtpConnection.js +1 -1
  50. package/build/shared/charts/descriptors/connectionNodes/speechProviders/awsSpeechProviderConnection.js +14 -0
  51. package/build/shared/charts/descriptors/connectionNodes/speechProviders/googleSpeechProviderConnection.js +16 -0
  52. package/build/shared/charts/descriptors/connectionNodes/speechProviders/index.js +23 -0
  53. package/build/shared/charts/descriptors/connectionNodes/speechProviders/microsoftSpeechProviderConnection.js +12 -0
  54. package/build/shared/charts/descriptors/connectionNodes/sql/runQuery.js +11 -11
  55. package/build/shared/charts/descriptors/connectionNodes/sql/runStoredProcedure.js +13 -13
  56. package/build/shared/charts/descriptors/connectionNodes/sql/runTransaction.js +11 -11
  57. package/build/shared/charts/descriptors/connectionNodes/sql/sqlConnection.js +1 -1
  58. package/build/shared/charts/descriptors/data/addToContext.js +7 -7
  59. package/build/shared/charts/descriptors/data/code.js +3 -3
  60. package/build/shared/charts/descriptors/data/copyDataToContext.js +1 -1
  61. package/build/shared/charts/descriptors/data/copySlotsToContext.js +9 -9
  62. package/build/shared/charts/descriptors/data/log.js +7 -7
  63. package/build/shared/charts/descriptors/data/removeFromContext.js +7 -7
  64. package/build/shared/charts/descriptors/data/resetContext.js +2 -2
  65. package/build/shared/charts/descriptors/index.js +36 -12
  66. package/build/shared/charts/descriptors/knowledgeSearch/index.js +6 -0
  67. package/build/shared/charts/descriptors/knowledgeSearch/knowledgeSearch.js +149 -0
  68. package/build/shared/charts/descriptors/liveAgent/assistInfo.js +25 -25
  69. package/build/shared/charts/descriptors/logic/disableSlotFillers.js +4 -4
  70. package/build/shared/charts/descriptors/logic/enableSlotFillers.js +3 -3
  71. package/build/shared/charts/descriptors/logic/executeFlow.js +9 -9
  72. package/build/shared/charts/descriptors/logic/goTo.js +17 -17
  73. package/build/shared/charts/descriptors/logic/if/if.js +3 -3
  74. package/build/shared/charts/descriptors/logic/interval/interval.js +3 -3
  75. package/build/shared/charts/descriptors/logic/once/once.js +1 -1
  76. package/build/shared/charts/descriptors/logic/resetState.js +1 -1
  77. package/build/shared/charts/descriptors/logic/setState.js +4 -4
  78. package/build/shared/charts/descriptors/logic/setTranslation.js +15 -15
  79. package/build/shared/charts/descriptors/logic/sleep.js +2 -2
  80. package/build/shared/charts/descriptors/logic/stop.js +1 -1
  81. package/build/shared/charts/descriptors/logic/switch/case.js +1 -1
  82. package/build/shared/charts/descriptors/logic/switch/default.js +1 -1
  83. package/build/shared/charts/descriptors/logic/switch/switch.js +28 -19
  84. package/build/shared/charts/descriptors/logic/switchLocale.js +5 -5
  85. package/build/shared/charts/descriptors/logic/think.js +11 -11
  86. package/build/shared/charts/descriptors/logic/thinkV2.js +11 -11
  87. package/build/shared/charts/descriptors/logic/wait.js +1 -1
  88. package/build/shared/charts/descriptors/message/checkChannelChange/checkChannelChange.js +4 -4
  89. package/build/shared/charts/descriptors/message/datePicker.js +1 -1
  90. package/build/shared/charts/descriptors/message/question/optionalQuestion.js +66 -34
  91. package/build/shared/charts/descriptors/message/question/question.js +583 -204
  92. package/build/shared/charts/descriptors/message/question/utils/cleanTextUtils.js +191 -0
  93. package/build/shared/charts/descriptors/message/question/utils/datepickerUtils.js +40 -40
  94. package/build/shared/charts/descriptors/message/question/utils/evaluateQuestionAnswer.js +37 -27
  95. package/build/shared/charts/descriptors/message/say.js +37 -4
  96. package/build/shared/charts/descriptors/message/sendImage.js +1 -1
  97. package/build/shared/charts/descriptors/message/sendText.js +2 -2
  98. package/build/shared/charts/descriptors/microsoft/getToken.js +1 -1
  99. package/build/shared/charts/descriptors/microsoft/invalidateToken.js +1 -1
  100. package/build/shared/charts/descriptors/microsoft/tokenStatus/index.js +1 -1
  101. package/build/shared/charts/descriptors/nlu/addLexiconKeyphrase.js +5 -5
  102. package/build/shared/charts/descriptors/nlu/cleanText.js +103 -0
  103. package/build/shared/charts/descriptors/nlu/executeCognigyNLU.js +15 -15
  104. package/build/shared/charts/descriptors/nlu/extractAnswer.js +11 -11
  105. package/build/shared/charts/descriptors/nlu/fuzzySearch.js +33 -33
  106. package/build/shared/charts/descriptors/nlu/generativeSlotFiller/generativeSlotFiller.js +270 -0
  107. package/build/shared/charts/descriptors/nlu/generativeSlotFiller/generativeSlotFillerFallback.js +27 -0
  108. package/build/shared/charts/descriptors/nlu/generativeSlotFiller/generativeSlotFillerSuccess.js +27 -0
  109. package/build/shared/charts/descriptors/nlu/generativeSlotFiller/prompt.js +76 -0
  110. package/build/shared/charts/descriptors/nlu/index.js +9 -1
  111. package/build/shared/charts/descriptors/nlu/matchPattern.js +16 -16
  112. package/build/shared/charts/descriptors/nlu/regexSlotFiller.js +5 -5
  113. package/build/shared/charts/descriptors/placeholder.js +3 -3
  114. package/build/shared/charts/descriptors/service/GPTConversation.js +678 -0
  115. package/build/shared/charts/descriptors/service/GPTPrompt.js +258 -0
  116. package/build/shared/charts/descriptors/service/checkAgentAvailability.js +34 -33
  117. package/build/shared/charts/descriptors/service/closeHandover.js +34 -0
  118. package/build/shared/charts/descriptors/service/conversationSummary.js +148 -0
  119. package/build/shared/charts/descriptors/service/handover.js +18 -17
  120. package/build/shared/charts/descriptors/service/handoverInactivityTimer.js +37 -0
  121. package/build/shared/charts/descriptors/service/handoverV2.js +134 -51
  122. package/build/shared/charts/descriptors/service/httpRequest.js +52 -52
  123. package/build/shared/charts/descriptors/service/index.js +11 -3
  124. package/build/shared/charts/descriptors/service/triggerFunction/triggerFunction.js +3 -3
  125. package/build/shared/charts/descriptors/voice/index.js +5 -1
  126. package/build/shared/charts/descriptors/voice/mappers/base.mapper.js +83 -0
  127. package/build/shared/charts/descriptors/voice/mappers/hangup.mapper.js +6 -9
  128. package/build/shared/charts/descriptors/voice/mappers/muteSpeechInput.mapper.js +52 -0
  129. package/build/shared/charts/descriptors/voice/mappers/play.mapper.js +19 -19
  130. package/build/shared/charts/descriptors/voice/mappers/record.mapper.js +96 -0
  131. package/build/shared/charts/descriptors/voice/mappers/sendMetadata.mapper.js +53 -0
  132. package/build/shared/charts/descriptors/voice/mappers/setSessionConfig.mapper.js +127 -65
  133. package/build/shared/charts/descriptors/voice/mappers/transfer.mapper.js +41 -11
  134. package/build/shared/charts/descriptors/voice/nodes/bargeIn.js +14 -20
  135. package/build/shared/charts/descriptors/voice/nodes/continuousAsr.js +7 -7
  136. package/build/shared/charts/descriptors/voice/nodes/dtmf.js +10 -18
  137. package/build/shared/charts/descriptors/voice/nodes/hangup.js +2 -2
  138. package/build/shared/charts/descriptors/voice/nodes/muteSpeechInput.js +52 -0
  139. package/build/shared/charts/descriptors/voice/nodes/noUserInput.js +15 -14
  140. package/build/shared/charts/descriptors/voice/nodes/play.js +12 -8
  141. package/build/shared/charts/descriptors/voice/nodes/sendMetadata.js +51 -0
  142. package/build/shared/charts/descriptors/voice/nodes/sessionSpeechParameters.js +84 -20
  143. package/build/shared/charts/descriptors/voice/nodes/transfer.js +10 -10
  144. package/build/shared/charts/descriptors/voicegateway/nodes/agentAssist.js +10 -10
  145. package/build/shared/charts/descriptors/voicegateway/nodes/callRecording.js +64 -62
  146. package/build/shared/charts/descriptors/voicegateway/nodes/handover.js +14 -14
  147. package/build/shared/charts/descriptors/voicegateway/nodes/hangup.js +2 -2
  148. package/build/shared/charts/descriptors/voicegateway/nodes/playURL.js +18 -15
  149. package/build/shared/charts/descriptors/voicegateway/nodes/sendMessage.js +41 -41
  150. package/build/shared/charts/descriptors/voicegateway/nodes/sendMetaData.js +15 -19
  151. package/build/shared/charts/descriptors/voicegateway/nodes/setSessionParams.js +3 -3
  152. package/build/shared/charts/descriptors/voicegateway/utils/paramUtils.js +117 -97
  153. package/build/shared/charts/descriptors/voicegateway2/index.js +5 -1
  154. package/build/shared/charts/descriptors/voicegateway2/nodes/dtmf.js +5 -5
  155. package/build/shared/charts/descriptors/voicegateway2/nodes/hangup.js +3 -4
  156. package/build/shared/charts/descriptors/voicegateway2/nodes/muteSpeechInput.js +49 -0
  157. package/build/shared/charts/descriptors/voicegateway2/nodes/play.js +36 -18
  158. package/build/shared/charts/descriptors/voicegateway2/nodes/record.js +108 -0
  159. package/build/shared/charts/descriptors/voicegateway2/nodes/refer.js +9 -10
  160. package/build/shared/charts/descriptors/voicegateway2/nodes/sendMetadata.js +14 -29
  161. package/build/shared/charts/descriptors/voicegateway2/nodes/setSessionConfig.js +276 -74
  162. package/build/shared/charts/descriptors/voicegateway2/nodes/transfer.js +139 -27
  163. package/build/shared/charts/descriptors/voicegateway2/utils/helper.js +3 -3
  164. package/build/shared/charts/descriptors/voicegateway2/utils/strip-nulls.js +4 -0
  165. package/build/shared/charts/helpers/generativeAI/getRephraseWithAIFields.js +8 -8
  166. package/build/shared/constants.js +14 -1
  167. package/build/shared/errors/ErrorCode.js +1 -0
  168. package/build/shared/errors/TooManyRequestsError.js +59 -0
  169. package/build/shared/errors/baseError.js +6 -2
  170. package/build/shared/errors/codes.js +2 -1
  171. package/build/shared/errors/index.js +3 -1
  172. package/build/shared/helper/BaseContext.js +56 -3
  173. package/build/shared/helper/nlu/dicts/dicts.js +691 -0
  174. package/build/shared/helper/nlu/textCleaner.js +391 -0
  175. package/build/shared/interfaces/IApiKey.js +2 -7
  176. package/build/shared/interfaces/IOrganisation.js +2 -7
  177. package/build/shared/interfaces/IProfileSchema.js +1 -7
  178. package/build/shared/interfaces/agentAssist/ISendTileUpdateParams.js +3 -0
  179. package/build/shared/interfaces/agentAssist/ISendTileUpdateReferenceParams.js +3 -0
  180. package/build/shared/interfaces/agentAssist/index.js +3 -0
  181. package/build/shared/interfaces/ai.js +0 -16
  182. package/build/shared/interfaces/amqpInterface.js +7 -1
  183. package/build/shared/interfaces/generativeAI/IGenerativeAIModels.js +72 -0
  184. package/build/shared/interfaces/generativeAI/IGenerativeAIPrompts.js +3 -0
  185. package/build/shared/interfaces/generativeAI/IRunGenerativeAIPromptOptions.js +3 -0
  186. package/build/shared/interfaces/handover.js +14 -2
  187. package/build/shared/interfaces/knowledgesearch/search.js +3 -0
  188. package/build/shared/interfaces/messageAPI/ai.js +2 -1
  189. package/build/shared/interfaces/messageAPI/endpoints.js +91 -2
  190. package/build/shared/interfaces/messageAPI/handover.js +4 -1
  191. package/build/shared/interfaces/resources/IAgentAssistConfig.js +26 -20
  192. package/build/shared/interfaces/resources/IAuditEvent.js +8 -1
  193. package/build/shared/interfaces/resources/IChart.js +1 -10
  194. package/build/shared/interfaces/resources/IConnection.js +7 -1
  195. package/build/shared/interfaces/resources/IEndpoint.js +2 -14
  196. package/build/shared/interfaces/resources/IFlow.js +15 -10
  197. package/build/shared/interfaces/resources/IFunction.js +1 -7
  198. package/build/shared/interfaces/resources/IGenerateNodeOutput.js +3 -0
  199. package/build/shared/interfaces/resources/ILargeLanguageModel.js +54 -0
  200. package/build/shared/interfaces/resources/ILexicon.js +2 -7
  201. package/build/shared/interfaces/resources/INodeDescriptorSet.js +32 -29
  202. package/build/shared/interfaces/resources/IPackage.js +1 -7
  203. package/build/shared/interfaces/resources/IPlaybookRun.js +2 -1
  204. package/build/shared/interfaces/resources/IProject.js +1 -7
  205. package/build/shared/interfaces/resources/ISnapshot.js +2 -14
  206. package/build/shared/interfaces/resources/TNLUConnectorType.js +2 -1
  207. package/build/shared/interfaces/resources/TResourceType.js +16 -5
  208. package/build/shared/interfaces/resources/chart/IChartExecutable.js +1 -7
  209. package/build/shared/interfaces/resources/knowledgeStore/IKnowledgeChunk.js +32 -0
  210. package/build/shared/interfaces/resources/knowledgeStore/IKnowledgeSource.js +31 -0
  211. package/build/shared/interfaces/resources/knowledgeStore/IKnowledgeStore.js +26 -0
  212. package/build/shared/interfaces/resources/settings/IAgentSettings.js +4 -47
  213. package/build/shared/interfaces/resources/settings/IAudioPreviewSettings.js +36 -0
  214. package/build/shared/interfaces/resources/settings/IGenerativeAISettings.js +23 -90
  215. package/build/shared/interfaces/resources/settings/IGenerativeAIUseCase.js +3 -0
  216. package/build/shared/interfaces/resources/settings/ISharedSettings.js +2 -2
  217. package/build/shared/interfaces/resources/settings/index.js +4 -5
  218. package/build/shared/interfaces/restAPI/administration/user/v2.1/IApiKeyIndexItem_2_1.js +3 -0
  219. package/build/shared/interfaces/restAPI/administration/user/v2.1/IApiKey_2_1.js +3 -0
  220. package/build/shared/interfaces/restAPI/administration/user/v2.1/ICreateApiKeyRest_2_1.js +3 -0
  221. package/build/shared/interfaces/restAPI/administration/user/v2.1/IIndexApiKeysMeRest_2_1.js +3 -0
  222. package/build/shared/interfaces/restAPI/administration/user/v2.1/index.js +3 -0
  223. package/build/shared/interfaces/restAPI/insights/reports/IGenerateReportRest_2_0.js +0 -2
  224. package/build/shared/interfaces/restAPI/resources/agentAssist/v2.0/IReadAgentAssistSessionDataRest_2_0.js +3 -0
  225. package/build/shared/interfaces/restAPI/resources/chart/v2.0/IGenerateNodeOutputRest_2_0.js +3 -0
  226. package/build/shared/interfaces/restAPI/resources/knowledgeSearchIndex/v2.0/ICreateKnowledgeSearchIndexRest_2_0.js +3 -0
  227. package/build/shared/interfaces/restAPI/resources/knowledgeSearchIndex/v2.0/IDeleteKnowledgeSearchIndexRest_2_0.js +3 -0
  228. package/build/shared/interfaces/restAPI/resources/knowledgeSearchIndex/v2.0/index.js +3 -0
  229. package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/ICreateKnowledgeStoreRest_2_0.js +3 -0
  230. package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/IDeleteKnowledgeStoreRest_2_0.js +3 -0
  231. package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/IIndexKnowledgeStoresRest_2_0.js +3 -0
  232. package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/IIngestKnowledgeStoreRest_2_0.js +3 -0
  233. package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/IKnowledgeStore_2_0.js +3 -0
  234. package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/IReadKnowledgeStoreRest_2_0.js +3 -0
  235. package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/IUpdateKnowledgeStoreRest_2_0.js +3 -0
  236. package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/index.js +3 -0
  237. package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/source/ICreateKnowledgeSourceRest_2_0.js +3 -0
  238. package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/source/IDeleteKnowledgeSourceRest_2_0.js +3 -0
  239. package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/source/IIndexKnowledgeSourcesRest_2_0.js +3 -0
  240. package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/source/IKnowledgeSource_2_0.js +3 -0
  241. package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/source/IReadKnowledgeSourceRest_2_0.js +3 -0
  242. package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/source/IUpdateKnowledgeSourceRest_2_0.js +3 -0
  243. package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/source/IUploadKnowledgeSourceFileRest_2_0.js +4 -0
  244. package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/source/chunk/ICreateKnowledgeChunkRest_2_0.js +3 -0
  245. package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/source/chunk/IDeleteKnowledgeChunkRest_2_0.js +3 -0
  246. package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/source/chunk/IIndexKnowledgeChunksRest_2_0.js +3 -0
  247. package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/source/chunk/IKnowledgeChunk_2_0.js +3 -0
  248. package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/source/chunk/IReadKnowledgeChunkRest_2_0.js +3 -0
  249. package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/source/chunk/IUpdateKnowledgeChunkRest_2_0.js +3 -0
  250. package/build/shared/interfaces/restAPI/resources/largeLanguageModel/v2.0/ICloneLargeLanguageModelRest_2_0.js +4 -0
  251. package/build/shared/interfaces/restAPI/resources/largeLanguageModel/v2.0/ICreateLargeLanguageModelRest_2_0.js +3 -0
  252. package/build/shared/interfaces/restAPI/resources/largeLanguageModel/v2.0/IDeleteLargeLanguageModelRest_2_0.js +3 -0
  253. package/build/shared/interfaces/restAPI/resources/largeLanguageModel/v2.0/IIndexLargeLanguageModelsRest_2_0.js +3 -0
  254. package/build/shared/interfaces/restAPI/resources/largeLanguageModel/v2.0/ILargeLanguageModelIndexItem_2_0.js +3 -0
  255. package/build/shared/interfaces/restAPI/resources/largeLanguageModel/v2.0/ILargeLanguageModel_2_0.js +3 -0
  256. package/build/shared/interfaces/restAPI/resources/largeLanguageModel/v2.0/IReadLargeLanguageModelRest_2_0.js +3 -0
  257. package/build/shared/interfaces/restAPI/resources/largeLanguageModel/v2.0/ITestLargeLanguageModelRest_2_0.js +3 -0
  258. package/build/shared/interfaces/restAPI/resources/largeLanguageModel/v2.0/IUpdateLargeLanguageModelRest_2_0.js +3 -0
  259. package/build/shared/interfaces/restAPI/resources/largeLanguageModel/v2.0/index.js +3 -0
  260. package/build/shared/interfaces/restAPI/resources/nluconnector/v2.0/TNLUConnectorType_2_0.js +3 -1
  261. package/build/shared/interfaces/restAPI/resources/project/v2.0/settings/ISetupCognigyGenerativeAIRest_2_0.js +4 -0
  262. package/build/shared/interfaces/security/IACL.js +1 -7
  263. package/build/shared/interfaces/security/IIdentityProvider.js +1 -7
  264. package/build/shared/interfaces/security/IPermission.js +6 -2
  265. package/build/shared/interfaces/security/IRole.js +3 -1
  266. package/build/shared/interfaces/security/index.js +1 -2
  267. package/build/shared/interfaces/taskmanager/ITask.js +1 -0
  268. package/build/shared/interfaces/trainer/ITrainerRecord.js +1 -1
  269. package/build/shared/interfaces/user.js +1 -9
  270. package/package.json +1 -1
  271. package/types/index.d.ts +10043 -8554
  272. package/build/shared/charts/descriptors/service/completeText.js +0 -316
  273. package/build/shared/charts/descriptors/voice/utils/constants.js +0 -8
  274. package/build/shared/charts/descriptors/voicegateway2/utils/constants.js +0 -7
@@ -49,6 +49,9 @@ const datepickerUtils_1 = require("./utils/datepickerUtils");
49
49
  const resetNodeState_1 = require("./utils/resetNodeState");
50
50
  const questionHandover_1 = require("./utils/questionHandover");
51
51
  const getRephraseWithAIFields_1 = require("../../../helpers/generativeAI/getRephraseWithAIFields");
52
+ const cleanTextUtils_1 = require("./utils/cleanTextUtils");
53
+ const textCleaner_1 = require("../../../../helper/nlu/textCleaner");
54
+ const constants_1 = require("../../../../constants");
52
55
  var QuestionTypes;
53
56
  (function (QuestionTypes) {
54
57
  QuestionTypes[QuestionTypes["date"] = 0] = "date";
@@ -67,13 +70,20 @@ var QuestionTypes;
67
70
  QuestionTypes[QuestionTypes["data"] = 13] = "data";
68
71
  QuestionTypes[QuestionTypes["url"] = 14] = "url";
69
72
  QuestionTypes[QuestionTypes["custom"] = 15] = "custom";
73
+ QuestionTypes[QuestionTypes["de_lp"] = 16] = "de_lp";
74
+ QuestionTypes[QuestionTypes["iban"] = 17] = "iban";
75
+ QuestionTypes[QuestionTypes["us_ssn"] = 18] = "us_ssn";
76
+ QuestionTypes[QuestionTypes["bic"] = 19] = "bic";
77
+ QuestionTypes[QuestionTypes["ipv4"] = 20] = "ipv4";
78
+ QuestionTypes[QuestionTypes["creditcard"] = 21] = "creditcard";
79
+ QuestionTypes[QuestionTypes["phonenumber"] = 22] = "phonenumber";
70
80
  })(QuestionTypes = exports.QuestionTypes || (exports.QuestionTypes = {}));
71
81
  //#endregion Interfaces
72
82
  exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
73
83
  //#region DescriptorFields
74
84
  type: "question",
75
85
  defaultLabel: "Question",
76
- summary: "Ask a question and waits for a valid answer",
86
+ summary: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__DEFAULT__SUMMARY",
77
87
  behavior: {
78
88
  stopping: false,
79
89
  entrypoint: true
@@ -85,78 +95,106 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
85
95
  {
86
96
  key: "type",
87
97
  type: "select",
88
- label: "Question Type",
98
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS_TYPE__LABEL",
89
99
  params: {
90
100
  required: true,
91
101
  options: [
92
102
  {
93
- label: "Text",
103
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS_TYPE_OPTIONS__TEXT__LABEL",
94
104
  value: "text"
95
105
  },
96
106
  {
97
- label: "Yes / No",
107
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS_TYPE_OPTIONS__YES_NO__LABEL",
98
108
  value: "yesNo"
99
109
  },
100
110
  {
101
- label: "Intent",
111
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS_TYPE_OPTIONS__INTENT__LABEL",
102
112
  value: "intent",
103
113
  },
104
114
  {
105
- label: "Slot",
115
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS_TYPE_OPTIONS__SLOT__LABEL",
106
116
  value: "keyphrase",
107
117
  },
108
118
  {
109
- label: "Date",
119
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS_TYPE_OPTIONS__DATE__LABEL",
110
120
  value: "date",
111
121
  },
112
122
  {
113
- label: "Number",
123
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS_TYPE_OPTIONS__NUMBER__LABEL",
114
124
  value: "number",
115
125
  },
116
126
  {
117
- label: "Temperature",
127
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS_TYPE_OPTIONS__TEMPERATURE__LABEL",
118
128
  value: "temperature",
119
129
  },
120
130
  {
121
- label: "Age",
131
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS_TYPE_OPTIONS__AGE__LABEL",
122
132
  value: "age",
123
133
  },
124
134
  {
125
- label: "Duration",
135
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS_TYPE_OPTIONS__DURATION__LABEL",
126
136
  value: "duration",
127
137
  },
128
138
  {
129
- label: "Email",
139
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS_TYPE_OPTIONS__EMAIL__LABEL",
130
140
  value: "email",
131
141
  },
132
142
  {
133
- label: "Money",
143
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS_TYPE_OPTIONS__MONEY__LABEL",
134
144
  value: "money"
135
145
  },
136
146
  {
137
- label: "URL",
147
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS_TYPE_OPTIONS__URL__LABEL",
138
148
  value: "url"
139
149
  },
140
150
  {
141
- label: "Percentage",
151
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS_TYPE_OPTIONS__PERCENTAGE__LABEL",
142
152
  value: "percentage"
143
153
  },
144
154
  {
145
- label: "Regex",
155
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS_TYPE_OPTIONS__REGEX__LABEL",
146
156
  value: "regex",
147
157
  },
148
158
  {
149
- label: "Data",
159
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS_TYPE_OPTIONS__DATA__LABEL",
150
160
  value: "data",
151
161
  },
152
- process.env.FEATURE_USE_COGNIGY_APPS && {
153
- label: "xApp",
162
+ {
163
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS_TYPE_OPTIONS__XAPP__LABEL",
154
164
  value: "app",
155
165
  },
156
166
  {
157
- label: "Custom",
167
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS_TYPE_OPTIONS__CUSTOM__LABEL",
158
168
  value: "custom",
159
169
  },
170
+ {
171
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS_TYPE_OPTIONS__DE_LP__LABEL",
172
+ value: "de_lp"
173
+ },
174
+ {
175
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS_TYPE_OPTIONS__IBAN__LABEL",
176
+ value: "iban",
177
+ },
178
+ {
179
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS_TYPE_OPTIONS__BIC__LABEL",
180
+ value: "bic"
181
+ },
182
+ {
183
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS_TYPE_OPTIONS__US_SSN__LABEL",
184
+ value: "us_ssn",
185
+ },
186
+ {
187
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS_TYPE_OPTIONS__IPV4__LABEL",
188
+ value: "ipv4"
189
+ },
190
+ {
191
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS_TYPE_OPTIONS__PHONENUMBER__LABEL",
192
+ value: "phonenumber"
193
+ },
194
+ {
195
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS_TYPE_OPTIONS__CREDITCARD__LABEL",
196
+ value: "creditcard"
197
+ }
160
198
  ].filter(option => !!option),
161
199
  },
162
200
  defaultValue: 'yesNo'
@@ -164,7 +202,7 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
164
202
  {
165
203
  key: "say",
166
204
  type: "say",
167
- label: "Question",
205
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__SAY__LABEL",
168
206
  defaultValue: {
169
207
  data: "{}",
170
208
  type: "text",
@@ -177,8 +215,8 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
177
215
  {
178
216
  key: "validationMessage",
179
217
  type: "cognigyText",
180
- label: "Reprompt Message",
181
- description: "Message to output if the given answer is invalid",
218
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__VALIDATION_MESSAGE__LABEL",
219
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__VALIDATION_MESSAGE__DESCRIPTION",
182
220
  defaultValue: "Not sure I understood this correctly.",
183
221
  params: {
184
222
  multiline: true
@@ -187,28 +225,28 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
187
225
  {
188
226
  key: "repromptCondition",
189
227
  type: "cognigyText",
190
- label: "Reprompt Condition",
191
- description: "Condition to check before outputting Reprompt Message",
228
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__REPROMPT_CONDITION__LABEL",
229
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__REPROMPT_CONDITION__DESCRIPTION",
192
230
  defaultValue: ""
193
231
  },
194
232
  {
195
233
  key: "validationRepeat",
196
234
  type: "toggle",
197
- label: "Repeat Question",
198
- description: "Repeat question if given answer is invalid",
235
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__VALIDATION_REPEAT__LABEL",
236
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__VALIDATION_REPEAT__DESCRIPTION",
199
237
  defaultValue: true
200
238
  },
201
239
  {
202
240
  key: "skipRepromptOnIntent",
203
241
  type: "toggle",
204
- label: "Skip on Intent",
205
- description: "Skips the reprompt if an intent was found",
242
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__SKIP_REPROMPT_ON_INTENT__LABEL",
243
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__SKIP_REPROMPT_ON_INTENT__DESCRIPTION",
206
244
  defaultValue: false
207
245
  },
208
246
  {
209
247
  key: "keyphraseTag",
210
248
  type: "cognigyText",
211
- label: "Slot Name",
249
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__KEYPHRASE_TAG__LABEL",
212
250
  condition: {
213
251
  key: "type",
214
252
  value: "keyphrase"
@@ -217,7 +255,7 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
217
255
  {
218
256
  key: "usePositiveOnly",
219
257
  type: "toggle",
220
- label: "Use Positive Keyphrases Only",
258
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__USE_POSITIVE_ONLY__LABEL",
221
259
  condition: {
222
260
  key: "type",
223
261
  value: "keyphrase"
@@ -226,8 +264,8 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
226
264
  {
227
265
  key: "regex",
228
266
  type: "cognigyText",
229
- label: "Regular Expression",
230
- description: "Provide a regular expression (e.g. /\\d{5}/)",
267
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__REGEX__LABEL",
268
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__REGEX__DESCRIPTION",
231
269
  condition: {
232
270
  key: "type",
233
271
  value: "regex"
@@ -236,12 +274,12 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
236
274
  {
237
275
  key: "storeInContactProfile",
238
276
  type: "toggle",
239
- label: "Store Result in Contact Profile"
277
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__STORE_CONTACT_PROFILE__LABEL"
240
278
  },
241
279
  {
242
280
  key: "profileKey",
243
281
  type: "profileSchemaField",
244
- label: "Profile Key to use",
282
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__PROFILE_KEY_PROFILE__LABEL",
245
283
  condition: {
246
284
  key: "storeInContactProfile",
247
285
  value: true
@@ -250,17 +288,17 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
250
288
  {
251
289
  key: "storeDetailedResults",
252
290
  type: "toggle",
253
- label: "Store detailed Results"
291
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__STORE_DETAILED_RESULT__LABEL"
254
292
  },
255
293
  {
256
294
  key: "storeResultInContext",
257
295
  type: "toggle",
258
- label: "Store Result in Context"
296
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__STORE_RESULT_IN_CONTEXT__LABEL"
259
297
  },
260
298
  {
261
299
  key: "contextKey",
262
300
  type: "cognigyText",
263
- label: "Context Key to use",
301
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__CONTEXT_KEY__LABEL",
264
302
  defaultValue: "result",
265
303
  condition: {
266
304
  key: "storeResultInContext",
@@ -270,7 +308,7 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
270
308
  {
271
309
  key: "skipIfResultInContext",
272
310
  type: "toggle",
273
- label: "Skip if Answer exists in Context",
311
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__SKIP_IF_RESULT_IN_CONTEXT__LABEL",
274
312
  condition: {
275
313
  key: "storeResultInContext",
276
314
  value: true
@@ -279,8 +317,8 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
279
317
  {
280
318
  key: "onlyAcceptEscalationIntents",
281
319
  type: "toggle",
282
- label: "Only Accept Escalation Intents",
283
- description: "Ignore all Intents on Answer, except Escalation Intents",
320
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ONLY_ACCEPT_ESCALATION_INTENTS__LABEL",
321
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ONLY_ACCEPT_ESCALATION_INTENTS__DESCRIPTION",
284
322
  condition: {
285
323
  key: "type",
286
324
  value: "intent",
@@ -290,15 +328,15 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
290
328
  {
291
329
  key: "parseResultOnEntry",
292
330
  type: "toggle",
293
- label: "Skip if Answer in Input",
294
- description: "Skips the question if it was already answered when the Node is hit"
331
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__PARSE_RESULT_ON_ENTRY__LABEL",
332
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__PARSE_RESULT_ON_ENTRY__DESCRIPTION"
295
333
  },
296
334
  {
297
335
  key: "datepickerExplanation",
298
336
  type: "description",
299
337
  label: " ",
300
338
  params: {
301
- text: "Date questions can prompt the user with an interactive datepicker which is configured in the sections below"
339
+ text: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__DATE_PICKER_EXPLANATION__PARAMS__TEXT"
302
340
  },
303
341
  condition: {
304
342
  key: "type",
@@ -308,53 +346,53 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
308
346
  {
309
347
  key: "additionalValidation",
310
348
  type: "cognigyText",
311
- label: "Additional Validation",
312
- description: "User Input must pass this validation in addition to the inbuilt field-validation (e.g. Email) to be considered valid",
349
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ADDITIONAL_VALIDATION__LABEL",
350
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ADDITIONAL_VALIDATION__DESCRIPTION",
313
351
  defaultValue: ""
314
352
  },
315
353
  {
316
354
  key: "resultLocation",
317
355
  type: "cognigyText",
318
- label: "Result Location",
319
- description: "The location to retrieve the result from (e.g. input.text)",
356
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__RESULT_LOCATION__LABEL",
357
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__RESULT_LOCATION__DESCRIPTION",
320
358
  defaultValue: ""
321
359
  },
322
360
  {
323
361
  key: "maxExecutionDiff",
324
362
  type: "number",
325
- label: "Forget Question Threshold",
326
- description: "The max number of inputs between hitting the Node the first time and now where we still validate the answer. Otherwise we ask the question again.",
363
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__MAX_EXECUTION_DIFF__LABEL",
364
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__MAX_EXECUTION_DIFF__DESCRIPTION",
327
365
  defaultValue: 1
328
366
  },
329
367
  {
330
368
  key: "escalateAnswersAction",
331
369
  type: "select",
332
- label: "Escalation Action",
333
- description: "What should happen after the threshold of wrong answers is reached?",
370
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWER_ACTION__LABEL",
371
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWER_ACTION__DESCRIPTION",
334
372
  params: {
335
373
  options: [
336
374
  {
337
- label: "No Escalation",
375
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWER_ACTION__OPTIONS__NONE__LABEL",
338
376
  value: "none"
339
377
  },
340
378
  {
341
- label: "Output Message",
379
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWER_ACTION__OPTIONS__TEXT__LABEL",
342
380
  value: "text",
343
381
  },
344
382
  {
345
- label: "Skip Question",
383
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWER_ACTION__OPTIONS__SKIP__LABEL",
346
384
  value: "skip",
347
385
  },
348
386
  {
349
- label: "Go to Node",
387
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWER_ACTION__OPTIONS__GOTO__LABEL",
350
388
  value: "goto"
351
389
  },
352
390
  {
353
- label: "Execute Flow and return",
391
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWER_ACTION__OPTIONS__EXECUTE__LABEL",
354
392
  value: "execute"
355
393
  },
356
394
  {
357
- label: "Handover to Human Agent",
395
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWER_ACTION__OPTIONS__HANDOVER__LABEL",
358
396
  value: "handover"
359
397
  }
360
398
  ],
@@ -364,8 +402,8 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
364
402
  {
365
403
  key: "escalateAnswersThreshold",
366
404
  type: "slider",
367
- label: "Wrong Answer Count Trigger",
368
- description: "Number of incorrect answers on which escalation will be triggered.",
405
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATION_ANSWER_THRESHOLD__LABEL",
406
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATION_ANSWER_THRESHOLD__DESCRIPTION",
369
407
  params: {
370
408
  min: 1,
371
409
  max: 10,
@@ -381,7 +419,7 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
381
419
  {
382
420
  key: "escalateAnswersGotoTarget",
383
421
  type: "flowNode",
384
- label: "GoTo Target",
422
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATION_ANSWERS_GOTO_TARGET__LABEL",
385
423
  condition: {
386
424
  key: "escalateAnswersAction",
387
425
  value: "goto"
@@ -390,7 +428,7 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
390
428
  {
391
429
  key: "escalateAnswersExecuteTarget",
392
430
  type: "flowNode",
393
- label: "Execute Target",
431
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_EXECUTE_TARGET__LABEL",
394
432
  condition: {
395
433
  key: "escalateAnswersAction",
396
434
  value: "execute"
@@ -399,17 +437,17 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
399
437
  {
400
438
  key: "escalateAnswersGotoExecutionMode",
401
439
  type: "select",
402
- description: "Go to new Node and continue execution or wait for input",
403
- label: "GoTo Execution Mode",
440
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_GOTO_EXECUTION_MODE__DESCRIPTION",
441
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_GOTO_EXECUTION_MODE__LABEL",
404
442
  defaultValue: "continue",
405
443
  params: {
406
444
  options: [
407
445
  {
408
- label: "Go to Node and continue",
446
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_GOTO_EXECUTION_MODE__OPTIONS__CONTINUE__LABEL",
409
447
  value: "continue"
410
448
  },
411
449
  {
412
- label: "Go to Node and wait for Input",
450
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_GOTO_EXECUTION_MODE__OPTIONS__WAIT__LABEL",
413
451
  value: "wait"
414
452
  },
415
453
  ]
@@ -421,9 +459,9 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
421
459
  },
422
460
  {
423
461
  key: "escalateAnswersInjectedText",
424
- label: "Optional Injected Text",
462
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_INJECTED_TEXT__LABEL",
425
463
  type: "cognigyText",
426
- description: "Text to use when continuing the execution. If no text is provided, input.text is used.",
464
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_INJECTED_TEXT__DESCRIPTION",
427
465
  defaultValue: "",
428
466
  condition: {
429
467
  key: "escalateAnswersAction",
@@ -432,9 +470,9 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
432
470
  },
433
471
  {
434
472
  key: "escalateAnswersInjectedData",
435
- label: "Optional Injected Data",
473
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_INJECTED_DATA__LABEL",
436
474
  type: "json",
437
- description: "Data to use when continuing the execution. If no data is provided, input.data is used.",
475
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_INJECTED_DATA__DESCRIPTION",
438
476
  defaultValue: "{}",
439
477
  condition: {
440
478
  key: "escalateAnswersAction",
@@ -444,7 +482,7 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
444
482
  {
445
483
  key: "escalateAnswersMessage",
446
484
  type: "say",
447
- label: "Escalation Message",
485
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_MESSAGE__LABEL",
448
486
  defaultValue: {
449
487
  data: "{}",
450
488
  type: "text",
@@ -461,7 +499,7 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
461
499
  {
462
500
  key: "escalateAnswersRepromptPrevention",
463
501
  type: "toggle",
464
- label: "Prevent Reprompt on Escalation",
502
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_PROMPT_PREVENTION__LABEL",
465
503
  defaultValue: true,
466
504
  condition: {
467
505
  key: "escalateAnswersAction",
@@ -471,8 +509,8 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
471
509
  {
472
510
  key: "escalateAnswersHandoverText",
473
511
  type: "cognigyText",
474
- label: "Handover Accepted Message",
475
- description: "The message to display to the user once the handover request was accepted by the live chat provider",
512
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_HANDOVERTEXT__LABEL",
513
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_HANDOVERTEXT__DESCRIPTION",
476
514
  condition: {
477
515
  key: "escalateAnswersAction",
478
516
  value: "handover"
@@ -481,7 +519,7 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
481
519
  {
482
520
  key: "escalateAnswersHandoverResolveBehavior",
483
521
  type: "select",
484
- label: "On Resolve Behavior",
522
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_HANDOVER_RESOLVE_BEHAVIOR__LABEL",
485
523
  condition: {
486
524
  key: "escalateAnswersAction",
487
525
  value: "handover"
@@ -490,11 +528,11 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
490
528
  params: {
491
529
  options: [
492
530
  {
493
- label: "Continue Flow below this Node",
531
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_HANDOVER_RESOLVE_BEHAVIOR__OPTIONS__RESET_ENTRYPOINT__LABEL",
494
532
  value: "resetEntrypoint"
495
533
  },
496
534
  {
497
- label: "Continue Flow at current Entrypoint",
535
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_HANDOVER_RESOLVE_BEHAVIOR__OPTIONS__CONTINUE_ENTRYPOINT__LABEL",
498
536
  value: "continueEntrypoint",
499
537
  },
500
538
  ],
@@ -503,7 +541,7 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
503
541
  {
504
542
  key: "escalateAnswersHandoverSendResolveEvent",
505
543
  type: "toggle",
506
- label: "Send resolve event to Virtual Agent",
544
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_HANDOVER_SEND_RESOLVE_EVENT__LABEL",
507
545
  condition: {
508
546
  key: "escalateAnswersAction",
509
547
  value: "handover"
@@ -511,10 +549,10 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
511
549
  defaultValue: false,
512
550
  },
513
551
  process.env.FEATURE_USE_COGNIGY_LIVE_AGENT && {
514
- key: "escalateAnswersAllowAgentInject",
552
+ key: constants_1.COGNIGY_LIVE_AGENT_DESCRIPTOR_FIELDS.ESCALATE_ANSWERS_ALLOW_AGENT_INJECT,
515
553
  type: "toggle",
516
- label: "Live Agent - Allow to reply as user via UI",
517
- description: "Display a button allowing human agents to reply as end user",
554
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_ALLOW_AGENT_INJECT__LABEL",
555
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_ALLOW_AGENT_INJECT__DESCRIPTION",
518
556
  condition: {
519
557
  key: "escalateAnswersAction",
520
558
  value: "handover"
@@ -522,10 +560,10 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
522
560
  defaultValue: true,
523
561
  },
524
562
  process.env.FEATURE_USE_COGNIGY_LIVE_AGENT && {
525
- key: "escalateAnswersAgentAssistInitMessage",
563
+ key: constants_1.COGNIGY_LIVE_AGENT_DESCRIPTOR_FIELDS.ESCALATE_ANSWERS_AGENT_ASSIST_INIT_MESSAGE,
526
564
  type: "cognigyText",
527
- label: "Live Agent - Initial Agent Assist Trigger",
528
- description: "If an Assist Flow is configured, this trigger message is sent to it as an input upon Live Agent handover",
565
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_AGENT_ASSIST_INIT_MESSAGE__LABEL",
566
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_AGENT_ASSIST_INIT_MESSAGE__DESCRIPTION",
529
567
  condition: {
530
568
  key: "escalateAnswersAction",
531
569
  value: "handover"
@@ -534,8 +572,8 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
534
572
  {
535
573
  key: "escalateAnswersRepeatHandoverMessage",
536
574
  type: "toggle",
537
- label: "Repeat Handover Accepted Message",
538
- description: "Repeatedly respond with Handover Accepted Message for each user input until human agent responds",
575
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_REPEAT_HANDOVER_MESSAGE__LABEL",
576
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_REPEAT_HANDOVER_MESSAGE__DESCRIPTION",
539
577
  defaultValue: false,
540
578
  condition: {
541
579
  key: "escalateAnswersAction",
@@ -545,8 +583,8 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
545
583
  {
546
584
  key: "escalateAnswersHandoverCancelIntent",
547
585
  type: "cognigyText",
548
- label: "Cancel Intent",
549
- description: "Name of the intent which will cancel the handover",
586
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_HANDOVER_CANCEL_INTENT__LABEL",
587
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_HANDOVER_CANCEL_INTENT__DESCRIPTION",
550
588
  condition: {
551
589
  key: "escalateAnswersAction",
552
590
  value: "handover"
@@ -555,18 +593,18 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
555
593
  {
556
594
  key: "escalateAnswersHandoverQuickReply",
557
595
  type: "cognigyText",
558
- label: "Cancel Button Text",
559
- description: "Text of the Quick Reply Button which sends the user back to the Virtual Agent",
596
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_HANDOVER_QUICK_REPLY__LABEL",
597
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_HANDOVER_QUICK_REPLY__DESCRIPTION",
560
598
  condition: {
561
599
  key: "escalateAnswersAction",
562
600
  value: "handover"
563
601
  }
564
602
  },
565
603
  process.env.FEATURE_USE_COGNIGY_LIVE_AGENT && {
566
- key: "escalateAnswersHandoverLiveAgentInboxId",
604
+ key: constants_1.COGNIGY_LIVE_AGENT_DESCRIPTOR_FIELDS.ESCALATE_ANSWERS_HANDOVER_LIVE_AGENT_INBOX_ID,
567
605
  type: "cognigyText",
568
- label: "Live Agent Inbox Id",
569
- description: "Inbox Id in Live Agent",
606
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_HANDOVER_LIVE_AGENT_INBOX_ID__LABEL",
607
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_HANDOVER_LIVE_AGENT_INBOX_ID__DESCRIPTION",
570
608
  condition: {
571
609
  key: "escalateAnswersAction",
572
610
  value: "handover"
@@ -575,8 +613,8 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
575
613
  {
576
614
  key: "escalateAnswersHandoverChatwootInboxId",
577
615
  type: "cognigyText",
578
- label: "Chatwoot Inbox Id",
579
- description: "Inbox Id in Chatwoot",
616
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_HANDOVER_CHATWOOT_INBOX_ID__LABEL",
617
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_HANDOVER_CHATWOOT_INBOX_ID__DESCRIPTION",
580
618
  condition: {
581
619
  key: "escalateAnswersAction",
582
620
  value: "handover"
@@ -585,8 +623,8 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
585
623
  {
586
624
  key: "escalateAnswersHandoverSendTranscriptAsFirstMessage",
587
625
  type: "toggle",
588
- label: "Salesforce Send Trascript As First Message",
589
- description: "The Salesforce receives conversation transcript as a first message.",
626
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_HANDOVER_SEND_TRANSCRIPT_AS_FIRST_MESSAGE__LABEL",
627
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_HANDOVER_SEND_TRANSCRIPT_AS_FIRST_MESSAGE__DESCRIPTION",
590
628
  defaultValue: false,
591
629
  condition: {
592
630
  key: "escalateAnswersAction",
@@ -596,8 +634,8 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
596
634
  {
597
635
  key: "escalateAnswersHandoverSalesforcePrechatEntities",
598
636
  type: "json",
599
- label: "Salesforce Prechat Entities",
600
- description: "The Salesforce entity that should be used.",
637
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_HANDOVER_SALES_FORCE_PERCHAT_ENTITIES__LABEL",
638
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_HANDOVER_SALES_FORCE_PERCHAT_ENTITIES__DESCRIPTION",
601
639
  defaultValue: "[]",
602
640
  condition: {
603
641
  key: "escalateAnswersAction",
@@ -607,8 +645,8 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
607
645
  {
608
646
  key: "escalateAnswersHandoverSalesforcePrechatDetails",
609
647
  type: "json",
610
- label: "Salesforce Prechat Details",
611
- description: "The details that should be displayed to the Live Chat Agent.",
648
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_HANDOVER_SALES_FORCE_PERCHAT_DETAILS__LABEL",
649
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_HANDOVER_SALES_FORCE_PERCHAT_DETAILS__DESCRIPTION",
612
650
  defaultValue: "[]",
613
651
  condition: {
614
652
  key: "escalateAnswersAction",
@@ -616,10 +654,51 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
616
654
  }
617
655
  },
618
656
  {
619
- key: "escaleAnswersHandoverEightByEightChannelId",
657
+ key: "escalateAnswersHandoverGenesysLanguage",
620
658
  type: "cognigyText",
621
- label: "8x8 Channel Id",
622
- description: "The 8x8 Channel Id",
659
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_HANDOVER__GENESYS_LANGUAGE__LABEL",
660
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_HANDOVER__GENESYS_LANGUAGE__DESCRIPTION",
661
+ condition: {
662
+ key: "escalateAnswersAction",
663
+ value: "handover"
664
+ }
665
+ },
666
+ {
667
+ key: "escalateAnswersHandoverGenesysSkills",
668
+ type: "cognigyTextArray",
669
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_HANDOVER__GENESYS_SKILLS__LABEL",
670
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_HANDOVER__GENESYS_SKILLS__DESCRIPTION",
671
+ condition: {
672
+ key: "escalateAnswersAction",
673
+ value: "handover"
674
+ }
675
+ },
676
+ {
677
+ key: "escalateAnswersHandoverGenesysPriority",
678
+ type: "cognigyText",
679
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_HANDOVER__GENESYS_PRIORITY__LABEL",
680
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_HANDOVER__GENESYS_PRIORITY__DESCRIPTION",
681
+ condition: {
682
+ key: "escalateAnswersAction",
683
+ value: "handover"
684
+ }
685
+ },
686
+ {
687
+ key: "escalateAnswersHandoverGenesysCustomAttributes",
688
+ type: "json",
689
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_HANDOVER_GENESYS_CUSTOM_ATTRIBUTES__LABEL",
690
+ defaultValue: {},
691
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_HANDOVER_GENESYS_CUSTOM_ATTRIBUTES__DESCRIPTION",
692
+ condition: {
693
+ key: "escalateAnswersAction",
694
+ value: "handover"
695
+ }
696
+ },
697
+ {
698
+ key: "escalateAnswersHandoverEightByEightChannelId",
699
+ type: "cognigyText",
700
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_HANDOVER_EIGHT_BY_EIGHT_CHANNELID__LABEL",
701
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_HANDOVER_EIGHT_BY_EIGHT_CHANNELID__DESCRIPTION",
623
702
  condition: {
624
703
  key: "escalateAnswersAction",
625
704
  value: "handover"
@@ -628,8 +707,8 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
628
707
  {
629
708
  key: "escalateAnswersHandoverEightByEightQueueId",
630
709
  type: "cognigyText",
631
- label: "8x8 Queue Id",
632
- description: "The 8x8 Queue Id",
710
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_HANDOVER_EIGHT_BY_EIGHT_QUEUEID__LABEL",
711
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_HANDOVER_EIGHT_BY_EIGHT_QUEUEID__DESCRIPTION",
633
712
  condition: {
634
713
  key: "escalateAnswersAction",
635
714
  value: "handover"
@@ -638,9 +717,20 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
638
717
  {
639
718
  key: "escalateAnswersHandoverEightByEightJSONProps",
640
719
  type: "json",
641
- label: "8x8 JSON Properties",
642
- description: "The 8x8 JSON Properties",
643
- defaultValue: [],
720
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_HANDOVER_EIGHT_BY_EIGHT_JSONPROPS__LABEL",
721
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_HANDOVER_EIGHT_BY_EIGHT_JSONPROPS__DESCRIPTION",
722
+ defaultValue: {
723
+ "name": null,
724
+ "userId": null,
725
+ "email": null,
726
+ "phone": null,
727
+ "company": null,
728
+ "caseId": null,
729
+ "language": null,
730
+ "additionalProperties": [
731
+ { "key": "Key name", "value": "Value from Cognigy" }
732
+ ]
733
+ },
644
734
  condition: {
645
735
  key: "escalateAnswersAction",
646
736
  value: "handover"
@@ -649,8 +739,8 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
649
739
  {
650
740
  key: "escalateAnswersHandoverAdditionalCategoryIds",
651
741
  type: "cognigyTextArray",
652
- label: "Additional Category Ids",
653
- description: "Additional Category Ids to be passed to Ring Central Engage handover provider",
742
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_HANDOVER_ADDITIONAL_CATEGORRY_IDS__LABEL",
743
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_HANDOVER_ADDITIONAL_CATEGORRY_IDS__DESCRIPTION",
654
744
  defaultValue: [],
655
745
  condition: {
656
746
  key: "escalateAnswersAction",
@@ -660,8 +750,8 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
660
750
  {
661
751
  key: "escalateAnswersOnce",
662
752
  type: "toggle",
663
- label: "Only escalate once",
664
- description: "Only escalate exactly at the threshold but not after",
753
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_ONCE__LABEL",
754
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_ONCE__DESCRIPTION",
665
755
  defaultValue: true,
666
756
  condition: {
667
757
  key: "escalateAnswersAction",
@@ -669,35 +759,49 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
669
759
  negate: true
670
760
  }
671
761
  },
762
+ {
763
+ key: "escalateAnswersSendOnQueueEvent",
764
+ type: "toggle",
765
+ defaultValue: false,
766
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_SEND_ON_QUEUE_EVENT__LABEL",
767
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_SEND_ON_QUEUE_EVENT__DESCRIPTION",
768
+ },
769
+ {
770
+ key: "escalateAnswersSendOnActiveEvent",
771
+ type: "toggle",
772
+ defaultValue: false,
773
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_SEND_ON_ACTIVE_EVENT__LABEL",
774
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_SEND_ON_ACTIVE_EVENT__DESCRIPTION",
775
+ },
672
776
  {
673
777
  key: "escalateIntentsAction",
674
778
  type: "select",
675
- label: "Escalation Action",
676
- description: "What shall happen after an intent was found?",
779
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_ACTION__LABEL",
780
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_ACTION__DESCRIPTION",
677
781
  params: {
678
782
  options: [
679
783
  {
680
- label: "No Escalation",
784
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_ACTION__OPTIONS__NONE__LABEL",
681
785
  value: "none"
682
786
  },
683
787
  {
684
- label: "Output Message",
788
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_ACTION__OPTIONS__TEXT__LABEL",
685
789
  value: "text",
686
790
  },
687
791
  {
688
- label: "Skip Question",
792
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_ACTION__OPTIONS__SKIP__LABEL",
689
793
  value: "skip",
690
794
  },
691
795
  {
692
- label: "Go to Node",
796
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_ACTION__OPTIONS__GOTO__LABEL",
693
797
  value: "goto"
694
798
  },
695
799
  {
696
- label: "Execute Flow and return",
800
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_ACTION__OPTIONS__EXECUTE__LABEL",
697
801
  value: "execute"
698
802
  },
699
803
  {
700
- label: "Handover to Human Agent",
804
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_ACTION__OPTIONS__HANDOVER__LABEL",
701
805
  value: "handover"
702
806
  }
703
807
  ],
@@ -707,8 +811,8 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
707
811
  {
708
812
  key: "escalateIntentsValidIntents",
709
813
  type: "chipInput",
710
- label: "Valid Intents",
711
- description: "List of intents which trigger escalation. Hit Enter to add each intent.",
814
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_VALID_INTENTS__LABEL",
815
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_VALID_INTENTS__DESCRIPTION",
712
816
  condition: {
713
817
  key: "escalateIntentsAction",
714
818
  value: "none",
@@ -718,8 +822,8 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
718
822
  {
719
823
  key: "escalateIntentsThreshold",
720
824
  type: "slider",
721
- label: "Intent Score Threshold",
722
- description: "The minimum score the hit intent must have to trigger an escalation.",
825
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_THRESHOLD__LABEL",
826
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_THRESHOLD__DESCRIPTION",
723
827
  params: {
724
828
  min: 0,
725
829
  max: 1,
@@ -735,7 +839,7 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
735
839
  {
736
840
  key: "escalateIntentsGotoTarget",
737
841
  type: "flowNode",
738
- label: "GoTo Target",
842
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_GOTO_TARGET__LABEL",
739
843
  condition: {
740
844
  key: "escalateIntentsAction",
741
845
  value: "goto"
@@ -744,7 +848,7 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
744
848
  {
745
849
  key: "escalateIntentsExecuteTarget",
746
850
  type: "flowNode",
747
- label: "Execute Target",
851
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_EXECUTE_TARGET__LABEL",
748
852
  condition: {
749
853
  key: "escalateIntentsAction",
750
854
  value: "execute"
@@ -753,17 +857,17 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
753
857
  {
754
858
  key: "escalateIntentsGotoExecutionMode",
755
859
  type: "select",
756
- description: "Go to new Node and continue execution or wait for input",
757
- label: "GoTo Execution Mode",
860
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_GOTO_EXECUTION_MODE__DESCRIPTION",
861
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_GOTO_EXECUTION_MODE__LABEL",
758
862
  defaultValue: "continue",
759
863
  params: {
760
864
  options: [
761
865
  {
762
- label: "Go to Node and continue",
866
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_GOTO_EXECUTION_MODE__OPTIONS__CONTINUE__LABEL",
763
867
  value: "continue"
764
868
  },
765
869
  {
766
- label: "Go to Node and wait for Input",
870
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_GOTO_EXECUTION_MODE__OPTIONS__WAIT__LABEL",
767
871
  value: "wait"
768
872
  },
769
873
  ]
@@ -775,9 +879,9 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
775
879
  },
776
880
  {
777
881
  key: "escalateIntentsInjectedText",
778
- label: "Optional Injected Text",
882
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_INJECT_TEXT__LABEL",
779
883
  type: "cognigyText",
780
- description: "Text to use when continuing the execution. If no text provided, input.text is used.",
884
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_INJECT_TEXT__DESCRIPTION",
781
885
  defaultValue: "",
782
886
  condition: {
783
887
  key: "escalateIntentsAction",
@@ -786,9 +890,9 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
786
890
  },
787
891
  {
788
892
  key: "escalateIntentsInjectedData",
789
- label: "Optional Injected Data",
893
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_INJECT_DATA__LABEL",
790
894
  type: "json",
791
- description: "Data to use when continuing the execution. If no data provided, input.data is used.",
895
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_INJECT_DATA__DESCRIPTION",
792
896
  defaultValue: "{}",
793
897
  condition: {
794
898
  key: "escalateIntentsAction",
@@ -798,7 +902,7 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
798
902
  {
799
903
  key: "escalateIntentsMessage",
800
904
  type: "say",
801
- label: "Escalation Message",
905
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_MESSAGE__LABEL",
802
906
  defaultValue: {
803
907
  data: "{}",
804
908
  type: "text",
@@ -815,8 +919,8 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
815
919
  {
816
920
  key: "escalateIntentsHandoverText",
817
921
  type: "cognigyText",
818
- label: "Handover Accepted Message",
819
- description: "The message to display to the user once the handover request was accepted by the live chat provider",
922
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_TEXT__LABEL",
923
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_TEXT__DESCRIPTION",
820
924
  condition: {
821
925
  key: "escalateIntentsAction",
822
926
  value: "handover"
@@ -825,8 +929,8 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
825
929
  {
826
930
  key: "escalateIntentsRepeatHandoverMessage",
827
931
  type: "toggle",
828
- label: "Repeat Handover Accepted Message",
829
- description: "Repeatedly respond with Handover Accepted Message for each user input until human agent responds",
932
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_REPEAT_HANDOVER_MESSAGE__LABEL",
933
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_REPEAT_HANDOVER_MESSAGE__DESCRIPTION",
830
934
  defaultValue: false,
831
935
  condition: {
832
936
  key: "escalateIntentsAction",
@@ -836,8 +940,8 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
836
940
  {
837
941
  key: "escalateIntentsHandoverCancelIntent",
838
942
  type: "cognigyText",
839
- label: "Cancel Intent",
840
- description: "Name of the intent which will cancel the handover",
943
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_CANCEL_INTENT__LABEL",
944
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_CANCEL_INTENT__DESCRIPTION",
841
945
  condition: {
842
946
  key: "escalateIntentsAction",
843
947
  value: "handover"
@@ -846,8 +950,8 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
846
950
  {
847
951
  key: "escalateIntentsHandoverQuickReply",
848
952
  type: "cognigyText",
849
- label: "Cancel Button Text",
850
- description: "Text of the Quick Reply Button which sends the user back to the Virtual Agent",
953
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_QUICK_REPLY__LABEL",
954
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_QUICK_REPLY__DESCRIPTION",
851
955
  condition: {
852
956
  key: "escalateIntentsAction",
853
957
  value: "handover"
@@ -856,7 +960,7 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
856
960
  {
857
961
  key: "escalateIntentsHandoverResolveBehavior",
858
962
  type: "select",
859
- label: "On Resolve Behavior",
963
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_RESOLVE_BEHAVIOR__LABEL",
860
964
  condition: {
861
965
  key: "escalateIntentsAction",
862
966
  value: "handover"
@@ -865,11 +969,11 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
865
969
  params: {
866
970
  options: [
867
971
  {
868
- label: "Continue Flow below this Node",
972
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_RESOLVE_BEHAVIOR__OPTIONS__RESET_ENTRYPOINT__LABEL",
869
973
  value: "resetEntrypoint"
870
974
  },
871
975
  {
872
- label: "Continue Flow at current Entrypoint",
976
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_RESOLVE_BEHAVIOR__OPTIONS__CONTINUE_ENTRYPOINT__LABEL",
873
977
  value: "continueEntrypoint",
874
978
  },
875
979
  ],
@@ -878,18 +982,32 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
878
982
  {
879
983
  key: "escalateIntentsHandoverSendResolveEvent",
880
984
  type: "toggle",
881
- label: "Send resolve event to Virtual Agent",
985
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_SEND_RESOLVE_EVENT__LABEL",
882
986
  condition: {
883
987
  key: "escalateIntentsAction",
884
988
  value: "handover"
885
989
  },
886
990
  defaultValue: false,
887
991
  },
992
+ {
993
+ key: "escalateIntentsSendOnQueueEvent",
994
+ type: "toggle",
995
+ defaultValue: false,
996
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_SEND_ON_QUEUE_EVENT__LABEL",
997
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_SEND_ON_QUEUE_EVENT__DESCRIPTION",
998
+ },
999
+ {
1000
+ key: "escalateIntentsSendOnActiveEvent",
1001
+ type: "toggle",
1002
+ defaultValue: false,
1003
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_SEND_ON_ACTIVE_EVENT__LABEL",
1004
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_SEND_ON_ACTIVE_EVENT__DESCRIPTION",
1005
+ },
888
1006
  process.env.FEATURE_USE_COGNIGY_LIVE_AGENT && {
889
- key: "escalateIntentsAllowAgentInject",
1007
+ key: constants_1.COGNIGY_LIVE_AGENT_DESCRIPTOR_FIELDS.ESCALATE_INTENTS_ALLOW_AGENT_INJECT,
890
1008
  type: "toggle",
891
- label: "Live Agent - Allow to reply as user via UI",
892
- description: "Display a button allowing human agents to reply as end user",
1009
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_ALLOW_AGENT_INJECT__LABEL",
1010
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_ALLOW_AGENT_INJECT__DESCRIPTION",
893
1011
  condition: {
894
1012
  key: "escalateIntentsAction",
895
1013
  value: "handover"
@@ -897,20 +1015,20 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
897
1015
  defaultValue: true,
898
1016
  },
899
1017
  process.env.FEATURE_USE_COGNIGY_LIVE_AGENT && {
900
- key: "escalateIntentsHandoverLiveAgentInboxId",
1018
+ key: constants_1.COGNIGY_LIVE_AGENT_DESCRIPTOR_FIELDS.ESCALATE_INTENTS_HANDOVER_LIVE_AGENT_INBOX_ID,
901
1019
  type: "cognigyText",
902
- label: "Live Agent Inbox Id",
903
- description: "Inbox Id in Live Agent",
1020
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_LIVE_AGENT_INBOX_ID__LABEL",
1021
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_LIVE_AGENT_INBOX_ID__DESCRIPTION",
904
1022
  condition: {
905
1023
  key: "escalateIntentsAction",
906
1024
  value: "handover"
907
1025
  }
908
1026
  },
909
1027
  process.env.FEATURE_USE_COGNIGY_LIVE_AGENT && {
910
- key: "escalateIntentsAgentAssistInitMessage",
1028
+ key: constants_1.COGNIGY_LIVE_AGENT_DESCRIPTOR_FIELDS.ESCALATE_INTENTS_AGENT_ASSIST_INIT_MESSAGE,
911
1029
  type: "cognigyText",
912
- label: "Live Agent - Initial Agent Assist Trigger",
913
- description: "If an Assist Flow is configured, this trigger message is sent to it as an input upon Live Agent handover",
1030
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_AGENT_ASSIST_INIT_MESSAGE__LABEL",
1031
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_AGENT_ASSIST_INIT_MESSAGE__DESCRIPTION",
914
1032
  condition: {
915
1033
  key: "escalateIntentsAction",
916
1034
  value: "handover"
@@ -919,8 +1037,8 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
919
1037
  {
920
1038
  key: "escalateIntentsHandoverChatwootInboxId",
921
1039
  type: "cognigyText",
922
- label: "Chatwoot Inbox Id",
923
- description: "Inbox Id in Chatwoot",
1040
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_CHATWOOT_INBOX_ID__LABEL",
1041
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_CHATWOOT_INBOX_ID__DESCRIPTION",
924
1042
  condition: {
925
1043
  key: "escalateIntentsAction",
926
1044
  value: "handover"
@@ -929,8 +1047,8 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
929
1047
  {
930
1048
  key: "escalateIntentHandoverSendTranscriptAsFirstMessage",
931
1049
  type: "toggle",
932
- label: "Salesforce Send Trascript As First Message",
933
- description: "The Salesforce receives conversation transcript as a first message.",
1050
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_SEND_TRANSCRIPT_AS_FIRST_MESSAGE__LABEL",
1051
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_SEND_TRANSCRIPT_AS_FIRST_MESSAGE__DESCRIPTION",
934
1052
  defaultValue: false,
935
1053
  condition: {
936
1054
  key: "escalateIntentsAction",
@@ -940,8 +1058,8 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
940
1058
  {
941
1059
  key: "escalateIntentsHandoverSalesforcePrechatEntities",
942
1060
  type: "json",
943
- label: "Salesforce Prechat Entities",
944
- description: "The Salesforce entity that should be used.",
1061
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_SALES_FORCE_PRECHAT_ENTITIES__LABEL",
1062
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_SALES_FORCE_PRECHAT_ENTITIES__DESCRIPTION",
945
1063
  defaultValue: "[]",
946
1064
  condition: {
947
1065
  key: "escalateIntentsAction",
@@ -951,19 +1069,61 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
951
1069
  {
952
1070
  key: "escalateIntentsHandoverSalesforcePrechatDetails",
953
1071
  type: "json",
954
- label: "Salesforce Prechat Details",
955
- description: "The details that should be displayed to the Live Chat Agent.",
1072
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_SALES_FORCE_PRECHAT_DETAILS__LABEL",
1073
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_SALES_FORCE_PRECHAT_DETAILS__DESCRIPTION",
956
1074
  defaultValue: "[]",
957
1075
  condition: {
958
1076
  key: "escalateIntentsAction",
959
1077
  value: "handover"
960
1078
  }
961
1079
  },
1080
+ {
1081
+ key: "escalateIntentsHandoverGenesysLanguage",
1082
+ type: "cognigyText",
1083
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_GENESYSY_LANGUAGE__LABEL",
1084
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_GENESYSY_LANGUAGE__DESCRIPTION",
1085
+ condition: {
1086
+ key: "escalateIntentsAction",
1087
+ value: "handover"
1088
+ }
1089
+ },
1090
+ {
1091
+ key: "escalateIntentsHandoverGenesysSkills",
1092
+ type: "cognigyTextArray",
1093
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_GENESYSY_SKILLS__LABEL",
1094
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_GENESYSY_SKILLS__DESCRIPTION",
1095
+ defaultValue: [],
1096
+ condition: {
1097
+ key: "escalateIntentsAction",
1098
+ value: "handover"
1099
+ }
1100
+ },
1101
+ {
1102
+ key: "escalateIntentsHandoverGenesysPriority",
1103
+ type: "cognigyText",
1104
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_GENESYSY_PRIORITY__LABEL",
1105
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_GENESYSY_PRIORITY__DESCRIPTION",
1106
+ condition: {
1107
+ key: "escalateIntentsAction",
1108
+ value: "handover"
1109
+ }
1110
+ },
1111
+ {
1112
+ key: "escalateIntentsHandoverGenesysCustomAttributes",
1113
+ type: "json",
1114
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_GENESYSY_CUSTOM_ATTRIBUTES__LABEL",
1115
+ defaultValue: {},
1116
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_GENESYSY_CUSTOM_ATTRIBUTES__DESCRIPTION",
1117
+ condition: {
1118
+ key: "escalateIntentsAction",
1119
+ value: "handover"
1120
+ }
1121
+ },
962
1122
  {
963
1123
  key: "escalateIntentsHandoverEightByEightChannelId",
964
1124
  type: "cognigyText",
965
- label: "8x8 Channel Id",
966
- description: "Channel Id in 8x8",
1125
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_EIGHT_BY_EIGHT_CHANNELID__LABEL",
1126
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_EIGHT_BY_EIGHT_CHANNELID__DESCRIPTION",
967
1127
  condition: {
968
1128
  key: "escalateIntentsAction",
969
1129
  value: "handover"
@@ -972,8 +1132,8 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
972
1132
  {
973
1133
  key: "escalateIntentsHandoverEightByEightQueueId",
974
1134
  type: "cognigyText",
975
- label: "8x8 Queue Id",
976
- description: "Queue Id in 8x8",
1135
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_EIGHT_BY_EIGHT_QUEUEID__LABEL",
1136
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_EIGHT_BY_EIGHT_QUEUEID__DESCRIPTION",
977
1137
  condition: {
978
1138
  key: "escalateIntentsAction",
979
1139
  value: "handover"
@@ -982,9 +1142,20 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
982
1142
  {
983
1143
  key: "escalateIntentsHandoverEightByEightJSONProps",
984
1144
  type: "json",
985
- label: "8x8 JSON Properties",
986
- description: "JSON Properties in 8x8",
987
- defaultValue: [],
1145
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_EIGHT_BY_EIGHT_JSONPROPS__LABEL",
1146
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_EIGHT_BY_EIGHT_JSONPROPS__DESCRIPTION",
1147
+ defaultValue: {
1148
+ "name": null,
1149
+ "userId": null,
1150
+ "email": null,
1151
+ "phone": null,
1152
+ "company": null,
1153
+ "caseId": null,
1154
+ "language": null,
1155
+ "additionalProperties": [
1156
+ { "key": "Key name", "value": "Value from Cognigy" }
1157
+ ]
1158
+ },
988
1159
  condition: {
989
1160
  key: "escalateIntentsAction",
990
1161
  value: "handover"
@@ -993,8 +1164,8 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
993
1164
  {
994
1165
  key: "escalateIntentsHandoverAdditionalCategoryIds",
995
1166
  type: "cognigyTextArray",
996
- label: "Additional Category Ids",
997
- description: "Additional Category Ids to be passed to Ring Central Engage handover provider",
1167
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_ADDITIONAL_CATEGORY_IDS__LABEL",
1168
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_ADDITIONAL_CATEGORY_IDS__DESCRIPTION",
998
1169
  defaultValue: [],
999
1170
  condition: {
1000
1171
  key: "escalateIntentsAction",
@@ -1004,7 +1175,7 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
1004
1175
  {
1005
1176
  key: "escalateIntentsRepromptPrevention",
1006
1177
  type: "toggle",
1007
- label: "Prevent Reprompt Message Once",
1178
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_REPROPMT_PREVENTION__LABEL",
1008
1179
  defaultValue: true,
1009
1180
  condition: {
1010
1181
  key: "escalateIntentsAction",
@@ -1014,8 +1185,8 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
1014
1185
  {
1015
1186
  key: "reconfirmationBehaviour",
1016
1187
  type: "select",
1017
- description: "How and if to reconfirm question answers",
1018
- label: "Reconfirmation Behaviour",
1188
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__RECONFIRMATION_BEHAVIOUR__DESCRIPTION",
1189
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__RECONFIRMATION_BEHAVIOUR__LABEL",
1019
1190
  defaultValue: "none",
1020
1191
  params: {
1021
1192
  options: [
@@ -1033,8 +1204,8 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
1033
1204
  {
1034
1205
  key: "reconfirmationQuestion",
1035
1206
  type: "cognigyText",
1036
- label: "Reconfirmation Question",
1037
- description: "The question to ask to reconfirm the answer",
1207
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__RECONFIRMATION_QUESTION__LABEL",
1208
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__RECONFIRMATION_QUESTION__DESCRIPTION",
1038
1209
  defaultValue: "I heard you say [ANSWER]. Is that correct?",
1039
1210
  condition: {
1040
1211
  key: "reconfirmationBehaviour",
@@ -1044,8 +1215,8 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
1044
1215
  {
1045
1216
  key: "reconfirmationQuestionReprompt",
1046
1217
  type: "cognigyText",
1047
- label: "Reconfirmation Reprompt",
1048
- description: "What to say if the reconfirmation question wasn't answered with yes or no",
1218
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__RECONFIRMATION_QUESTION_REPROPMT__LABEL",
1219
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__RECONFIRMATION_QUESTION_REPROPMT__DESCRIPTION",
1049
1220
  defaultValue: "I'm not sure I got that right.",
1050
1221
  condition: {
1051
1222
  key: "reconfirmationBehaviour",
@@ -1057,11 +1228,120 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
1057
1228
  "value": "date"
1058
1229
  }),
1059
1230
  ...(0, getRephraseWithAIFields_1.getRephraseWithAIFields)(),
1231
+ {
1232
+ key: "cleanTextDescription",
1233
+ type: "description",
1234
+ label: " ",
1235
+ params: {
1236
+ text: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__CLEAN_TEXT_DESCRIPTION__TEXT"
1237
+ }
1238
+ },
1239
+ ...(0, cleanTextUtils_1.getCleanTextFields)(),
1240
+ {
1241
+ key: "runNLUAfterCleaning",
1242
+ type: "toggle",
1243
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__RUN_NLU_AFTER_CLEANING__LABEL",
1244
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__RUN_NLU_AFTER_CLEANING__DESCRIPTION",
1245
+ defaultValue: false
1246
+ },
1247
+ {
1248
+ key: "overwrittenBaseAnswer",
1249
+ type: "cognigyText",
1250
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__OVERWRITTEN_BASE_ANSWER__LABEL",
1251
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__OVERWRITTEN_BASE_ANSWER__DESCRIPTION",
1252
+ },
1253
+ // TODO: clean solution for legacy nodes in service-resources/service-ui
1254
+ {
1255
+ // legacy - only for backwards compatibility when updating old nodes
1256
+ key: "escalateAnswersExecuteRepromptPrevention",
1257
+ type: "toggle",
1258
+ condition: {
1259
+ key: "671cc071-dd6a-4a79-b794-b2a955557fa1",
1260
+ value: "legacy"
1261
+ }
1262
+ },
1263
+ {
1264
+ // legacy - only for backwards compatibility when updating old nodes
1265
+ key: "escalateIntentsExecuteRepromptPrevention",
1266
+ type: "toggle",
1267
+ condition: {
1268
+ key: "671cc071-dd6a-4a79-b794-b2a955557fa1",
1269
+ value: "legacy"
1270
+ }
1271
+ },
1272
+ {
1273
+ // legacy - only for backwards compatibility when updating old nodes
1274
+ key: "escalateAnswersHandoverUnavailable",
1275
+ type: "toggle",
1276
+ condition: {
1277
+ key: "671cc071-dd6a-4a79-b794-b2a955557fa1",
1278
+ value: "legacy"
1279
+ },
1280
+ },
1281
+ {
1282
+ // legacy - only for backwards compatibility when updating old nodes
1283
+ key: "escalateAnswersHandoverUnsupportedChannel",
1284
+ type: "toggle",
1285
+ condition: {
1286
+ key: "671cc071-dd6a-4a79-b794-b2a955557fa1",
1287
+ value: "legacy"
1288
+ },
1289
+ },
1290
+ {
1291
+ // legacy - only for backwards compatibility when updating old nodes
1292
+ key: "escalateIntentsHandoverUnavailable",
1293
+ type: "toggle",
1294
+ condition: {
1295
+ key: "671cc071-dd6a-4a79-b794-b2a955557fa1",
1296
+ value: "legacy"
1297
+ },
1298
+ },
1299
+ {
1300
+ // legacy - only for backwards compatibility when updating old nodes
1301
+ key: "escalateIntentsHandoverUnsupportedChannel",
1302
+ type: "toggle",
1303
+ condition: {
1304
+ key: "671cc071-dd6a-4a79-b794-b2a955557fa1",
1305
+ value: "legacy"
1306
+ },
1307
+ },
1308
+ {
1309
+ // legacy - only for backwards compatibility when updating old nodes
1310
+ key: "escaleAnswersHandoverEightByEightChannelId",
1311
+ type: "cognigyText",
1312
+ condition: {
1313
+ key: "671cc071-dd6a-4a79-b794-b2a955557fa1",
1314
+ value: "legacy"
1315
+ }
1316
+ },
1317
+ {
1318
+ key: "handoverOutput",
1319
+ type: "select",
1320
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__HANDOVER_OUTPUT__LABEL",
1321
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__HANDOVER_OUTPUT__DESCRIPTION",
1322
+ defaultValue: "userAndAgent",
1323
+ params: {
1324
+ options: [
1325
+ {
1326
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__HANDOVER_OUTPUT__OPTIONS__USER_AGENT__LABEL",
1327
+ value: "userAndAgent"
1328
+ },
1329
+ {
1330
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__HANDOVER_OUTPUT__OPTIONS__USER_ONLY__LABEL",
1331
+ value: "userOnly"
1332
+ },
1333
+ {
1334
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__HANDOVER_OUTPUT__OPTIONS__AGENT_ONLY__LABEL",
1335
+ value: "agentOnly"
1336
+ },
1337
+ ],
1338
+ },
1339
+ },
1060
1340
  ].filter(field => !!field),
1061
1341
  sections: [
1062
1342
  {
1063
1343
  key: "context",
1064
- label: "Result Storage",
1344
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__SECTIONS__CONTEXT__LABEL",
1065
1345
  defaultCollapsed: true,
1066
1346
  fields: [
1067
1347
  "storeResultInContext",
@@ -1073,7 +1353,7 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
1073
1353
  },
1074
1354
  {
1075
1355
  key: "reprompt",
1076
- label: "Reprompt Options",
1356
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__SECTIONS__REPROMPT__LABEL",
1077
1357
  defaultCollapsed: true,
1078
1358
  fields: [
1079
1359
  "validationMessage",
@@ -1084,7 +1364,7 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
1084
1364
  },
1085
1365
  {
1086
1366
  key: "reconfirmation",
1087
- label: "Reconfirmation Options",
1367
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__SECTIONS__RECONFIRMATION__LABEL",
1088
1368
  defaultCollapsed: true,
1089
1369
  fields: [
1090
1370
  "reconfirmationBehaviour",
@@ -1094,7 +1374,7 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
1094
1374
  },
1095
1375
  {
1096
1376
  key: "escalateIntents",
1097
- label: "Escalation - Intents",
1377
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__SECTIONS__ESCALATE_INTENTS__LABEL",
1098
1378
  defaultCollapsed: true,
1099
1379
  fields: [
1100
1380
  "escalateIntentsAction",
@@ -1113,22 +1393,28 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
1113
1393
  "escalateIntentsHandoverResolveBehavior",
1114
1394
  "escalateIntentsHandoverSendResolveEvent",
1115
1395
  "escalateIntentsHandoverAdditionalCategoryIds",
1116
- process.env.FEATURE_USE_COGNIGY_LIVE_AGENT && "escalateIntentsHandoverLiveAgentInboxId",
1117
- process.env.FEATURE_USE_COGNIGY_LIVE_AGENT && "escalateIntentsAgentAssistInitMessage",
1118
- process.env.FEATURE_USE_COGNIGY_LIVE_AGENT && "escalateIntentsAllowAgentInject",
1396
+ process.env.FEATURE_USE_COGNIGY_LIVE_AGENT && constants_1.COGNIGY_LIVE_AGENT_DESCRIPTOR_FIELDS.ESCALATE_INTENTS_HANDOVER_LIVE_AGENT_INBOX_ID,
1397
+ process.env.FEATURE_USE_COGNIGY_LIVE_AGENT && constants_1.COGNIGY_LIVE_AGENT_DESCRIPTOR_FIELDS.ESCALATE_INTENTS_AGENT_ASSIST_INIT_MESSAGE,
1398
+ process.env.FEATURE_USE_COGNIGY_LIVE_AGENT && constants_1.COGNIGY_LIVE_AGENT_DESCRIPTOR_FIELDS.ESCALATE_INTENTS_ALLOW_AGENT_INJECT,
1119
1399
  "escalateIntentsHandoverChatwootInboxId",
1120
1400
  "escalateIntentHandoverSendTranscriptAsFirstMessage",
1121
1401
  "escalateIntentsHandoverSalesforcePrechatEntities",
1122
1402
  "escalateIntentsHandoverSalesforcePrechatDetails",
1403
+ "escalateIntentsHandoverGenesysLanguage",
1404
+ "escalateIntentsHandoverGenesysSkills",
1405
+ "escalateIntentsHandoverGenesysPriority",
1406
+ "escalateIntentsHandoverGenesysCustomAttributes",
1123
1407
  "escalateIntentsHandoverEightByEightChannelId",
1124
1408
  "escalateIntentsHandoverEightByEightQueueId",
1125
1409
  "escalateIntentsHandoverEightByEightJSONProps",
1126
- "escalateIntentsRepromptPrevention"
1410
+ "escalateIntentsRepromptPrevention",
1411
+ "escalateIntentsSendOnActiveEvent",
1412
+ "escalateIntentsSendOnQueueEvent",
1127
1413
  ].filter(field => !!field)
1128
1414
  },
1129
1415
  {
1130
1416
  key: "escalateAnswers",
1131
- label: "Escalation - Wrong Answers",
1417
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__SECTIONS__ESCALATE_ANSWERS__LABEL",
1132
1418
  defaultCollapsed: true,
1133
1419
  fields: [
1134
1420
  "escalateAnswersAction",
@@ -1146,23 +1432,29 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
1146
1432
  "escalateAnswersHandoverResolveBehavior",
1147
1433
  "escalateAnswersHandoverSendResolveEvent",
1148
1434
  "escalateAnswersHandoverAdditionalCategoryIds",
1149
- process.env.FEATURE_USE_COGNIGY_LIVE_AGENT && "escalateAnswersHandoverLiveAgentInboxId",
1150
- process.env.FEATURE_USE_COGNIGY_LIVE_AGENT && "escalateAnswersAgentAssistInitMessage",
1151
- process.env.FEATURE_USE_COGNIGY_LIVE_AGENT && "escalateAnswersAllowAgentInject",
1435
+ process.env.FEATURE_USE_COGNIGY_LIVE_AGENT && constants_1.COGNIGY_LIVE_AGENT_DESCRIPTOR_FIELDS.ESCALATE_ANSWERS_HANDOVER_LIVE_AGENT_INBOX_ID,
1436
+ process.env.FEATURE_USE_COGNIGY_LIVE_AGENT && constants_1.COGNIGY_LIVE_AGENT_DESCRIPTOR_FIELDS.ESCALATE_ANSWERS_AGENT_ASSIST_INIT_MESSAGE,
1437
+ process.env.FEATURE_USE_COGNIGY_LIVE_AGENT && constants_1.COGNIGY_LIVE_AGENT_DESCRIPTOR_FIELDS.ESCALATE_ANSWERS_ALLOW_AGENT_INJECT,
1152
1438
  "escalateAnswersHandoverChatwootInboxId",
1153
1439
  "escalateAnswersHandoverSendTranscriptAsFirstMessage",
1154
1440
  "escalateAnswersHandoverSalesforcePrechatEntities",
1155
1441
  "escalateAnswersHandoverSalesforcePrechatDetails",
1442
+ "escalateAnswersHandoverGenesysLanguage",
1443
+ "escalateAnswersHandoverGenesysSkills",
1444
+ "escalateAnswersHandoverGenesysPriority",
1445
+ "escalateAnswersHandoverGenesysCustomAttributes",
1156
1446
  "escalateAnswersHandoverEightByEightChannelId",
1157
1447
  "escalateAnswersHandoverEightByEightQueueId",
1158
1448
  "escalateAnswersHandoverEightByEightJSONProps",
1159
1449
  "escalateAnswersRepromptPrevention",
1160
1450
  "escalateAnswersOnce",
1451
+ "escalateAnswersSendOnActiveEvent",
1452
+ "escalateAnswersSendOnQueueEvent",
1161
1453
  ].filter(field => !!field)
1162
1454
  },
1163
1455
  {
1164
1456
  key: "advanced",
1165
- label: "Advanced",
1457
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__SECTIONS__ADVANCED__LABEL",
1166
1458
  defaultCollapsed: true,
1167
1459
  fields: [
1168
1460
  "storeDetailedResults",
@@ -1170,9 +1462,41 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
1170
1462
  "onlyAcceptEscalationIntents",
1171
1463
  "additionalValidation",
1172
1464
  "resultLocation",
1173
- "maxExecutionDiff",
1465
+ "maxExecutionDiff"
1174
1466
  ]
1175
1467
  },
1468
+ {
1469
+ key: "handoverSettings",
1470
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__SECTIONS__HANDOVER_SETTINGS__LABEL",
1471
+ defaultCollapsed: true,
1472
+ fields: [
1473
+ "handoverOutput"
1474
+ ]
1475
+ },
1476
+ {
1477
+ key: "preProcessAnswerText",
1478
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__SECTIONS__PREPROCESS_ANSWER_TEXT__LABEL",
1479
+ defaultCollapsed: true,
1480
+ fields: [
1481
+ "overwrittenBaseAnswer",
1482
+ "cleanTextDescription",
1483
+ "cleanDisallowedSymbols",
1484
+ "additionalAllowedCharacters",
1485
+ "additionalMappedSymbols",
1486
+ "resolveSpelledOutNumbers",
1487
+ "resolvePhoneticAlphabet",
1488
+ "additionalPhoneticAlphabet",
1489
+ "replaceSpecialWords",
1490
+ "additionalSpecialPhrases",
1491
+ "resolveSpelledOutAlphabet",
1492
+ "resolvePhoneticCounters",
1493
+ "contractSingleCharacters",
1494
+ "contractNumberGroups",
1495
+ "trimResult",
1496
+ "runNLUAfterCleaning",
1497
+ "cleanTextLocale"
1498
+ ],
1499
+ },
1176
1500
  ...(0, datepickerUtils_1.getDatePickerSections)("Datepicker - ", {
1177
1501
  "key": "type",
1178
1502
  "value": "date"
@@ -1199,6 +1523,8 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
1199
1523
  { type: "section", key: "datepicker_enableDisable" },
1200
1524
  { type: "section", key: "datepicker_advanced" },
1201
1525
  { type: "section", key: "aiEnhancedOutput" },
1526
+ { type: "section", key: "handoverSettings" },
1527
+ { type: "section", key: "preProcessAnswerText" }
1202
1528
  ],
1203
1529
  preview: {
1204
1530
  key: "say",
@@ -1207,8 +1533,8 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
1207
1533
  tags: ["basic", "message", "nlu"],
1208
1534
  //#endregion DescriptorFields
1209
1535
  function: async ({ cognigy, nodeId, organisationId, config, inputOptions }) => {
1210
- var _a;
1211
- const { say, type, validationMessage, validationRepeat, storeResultInContext, contextKey, storeInContactProfile, profileKey, storeDetailedResults, parseResultOnEntry, repromptCondition, maxExecutionDiff, resultLocation, skipRepromptOnIntent, onlyAcceptEscalationIntents, escalateAnswersAction, escalateAnswersThreshold, escalateAnswersGotoTarget, escalateAnswersExecuteTarget, escalateAnswersGotoExecutionMode, escalateAnswersInjectedText, escalateAnswersInjectedData, escalateAnswersMessage, escalateAnswersRepromptPrevention, escalateAnswersOnce, escalateAnswersHandoverText, escalateAnswersRepeatHandoverMessage, escalateAnswersHandoverCancelIntent, escalateAnswersHandoverQuickReply, escalateAnswersHandoverChatwootInboxId, escalateAnswersHandoverLiveAgentInboxId, escalateAnswersHandoverAdditionalCategoryIds, escalateAnswersHandoverSendTranscriptAsFirstMessage, escalateAnswersHandoverSalesforcePrechatEntities, escalateAnswersHandoverSalesforcePrechatDetails, escalateAnswersHandoverEightByEightChannelId, escalateAnswersHandoverEightByEightQueueId, escalateAnswersHandoverEightByEightJSONProps, escalateAnswersHandoverSendResolveEvent, escalateAnswersHandoverResolveBehavior, escalateAnswersAgentAssistInitMessage, escalateAnswersAllowAgentInject, escalateIntentsAction, escalateIntentsValidIntents, escalateIntentsThreshold, escalateIntentsGotoTarget, escalateIntentsExecuteTarget, escalateIntentsGotoExecutionMode, escalateIntentsInjectedText, escalateIntentsInjectedData, escalateIntentsMessage, escalateIntentsHandoverText, escalateIntentsRepeatHandoverMessage, escalateIntentsHandoverCancelIntent, escalateIntentsHandoverQuickReply, escalateIntentsHandoverChatwootInboxId, escalateIntentsHandoverLiveAgentInboxId, escalateIntentsHandoverAdditionalCategoryIds, escalateIntentHandoverSendTranscriptAsFirstMessage, escalateIntentsHandoverSalesforcePrechatEntities, escalateIntentsHandoverSalesforcePrechatDetails, escalateIntentsHandoverEightByEightChannelId, escalateIntentsHandoverEightByEightQueueId, escalateIntentsHandoverEightByEightJSONProps, escalateIntentsRepromptPrevention, escalateIntentsHandoverSendResolveEvent, escalateIntentsHandoverResolveBehavior, escalateIntentsAgentAssistInitMessage, escalateIntentsAllowAgentInject, reconfirmationBehaviour, reconfirmationQuestion, reconfirmationQuestionReprompt } = config;
1536
+ var _a, _b, _c;
1537
+ const { say, type, validationMessage, validationRepeat, storeResultInContext, contextKey, storeInContactProfile, profileKey, storeDetailedResults, parseResultOnEntry, repromptCondition, maxExecutionDiff, resultLocation, skipRepromptOnIntent, onlyAcceptEscalationIntents, escalateAnswersAction, escalateAnswersThreshold, escalateAnswersGotoTarget, escalateAnswersExecuteTarget, escalateAnswersGotoExecutionMode, escalateAnswersInjectedText, escalateAnswersInjectedData, escalateAnswersMessage, escalateAnswersRepromptPrevention, escalateAnswersOnce, escalateAnswersHandoverText, escalateAnswersRepeatHandoverMessage, escalateAnswersHandoverCancelIntent, escalateAnswersHandoverQuickReply, escalateAnswersHandoverChatwootInboxId, escalateAnswersHandoverLiveAgentInboxId, escalateAnswersHandoverAdditionalCategoryIds, escalateAnswersHandoverSendTranscriptAsFirstMessage, escalateAnswersHandoverSalesforcePrechatEntities, escalateAnswersHandoverSalesforcePrechatDetails, escalateAnswersHandoverGenesysLanguage, escalateAnswersHandoverGenesysSkills, escalateAnswersHandoverGenesysPriority, escalateAnswersHandoverGenesysCustomAttributes, escalateAnswersHandoverEightByEightChannelId, escalateAnswersHandoverEightByEightQueueId, escalateAnswersHandoverEightByEightJSONProps, escalateAnswersHandoverSendResolveEvent, escalateAnswersHandoverResolveBehavior, escalateAnswersAgentAssistInitMessage, escalateAnswersAllowAgentInject, escalateAnswersSendOnActiveEvent, escalateAnswersSendOnQueueEvent, escalateIntentsAction, escalateIntentsValidIntents, escalateIntentsThreshold, escalateIntentsGotoTarget, escalateIntentsExecuteTarget, escalateIntentsGotoExecutionMode, escalateIntentsInjectedText, escalateIntentsInjectedData, escalateIntentsMessage, escalateIntentsHandoverText, escalateIntentsRepeatHandoverMessage, escalateIntentsHandoverCancelIntent, escalateIntentsHandoverQuickReply, escalateIntentsHandoverChatwootInboxId, escalateIntentsHandoverLiveAgentInboxId, escalateIntentsHandoverAdditionalCategoryIds, escalateIntentHandoverSendTranscriptAsFirstMessage, escalateIntentsHandoverSalesforcePrechatEntities, escalateIntentsHandoverSalesforcePrechatDetails, escalateIntentsHandoverGenesysLanguage, escalateIntentsHandoverGenesysSkills, escalateIntentsHandoverGenesysPriority, escalateIntentsHandoverGenesysCustomAttributes, escalateIntentsHandoverEightByEightChannelId, escalateIntentsHandoverEightByEightQueueId, escalateIntentsHandoverEightByEightJSONProps, escalateIntentsRepromptPrevention, escalateIntentsHandoverSendResolveEvent, escalateIntentsHandoverResolveBehavior, escalateIntentsAgentAssistInitMessage, escalateIntentsAllowAgentInject, escalateIntentsSendOnActiveEvent, escalateIntentsSendOnQueueEvent, reconfirmationBehaviour, reconfirmationQuestion, reconfirmationQuestionReprompt, handoverOutput, cleanTextLocale, cleanDisallowedSymbols, additionalAllowedCharacters, additionalSpecialPhrases, resolveSpelledOutNumbers, resolvePhoneticAlphabet, additionalPhoneticAlphabet, replaceSpecialWords, additionalMappedSymbols, resolveSpelledOutAlphabet, resolvePhoneticCounters, contractSingleCharacters, contractNumberGroups, trimResult, runNLUAfterCleaning, overwrittenBaseAnswer } = config;
1212
1538
  const { input, context, profile, api } = cognigy;
1213
1539
  const rephraseWithAIParams = {
1214
1540
  generativeAI_rephraseOutputMode: config.generativeAI_rephraseOutputMode,
@@ -1227,9 +1553,50 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
1227
1553
  (0, resetNodeState_1.resetNodeState)(api, nodeId);
1228
1554
  return;
1229
1555
  }
1556
+ // check if any text cleaning option was activated
1557
+ const textCleaningActive = cleanDisallowedSymbols || resolveSpelledOutNumbers || resolvePhoneticAlphabet || replaceSpecialWords || resolveSpelledOutAlphabet || resolvePhoneticCounters || contractSingleCharacters || contractNumberGroups || trimResult;
1558
+ let overwriteAnswer;
1559
+ if (textCleaningActive && (input.text || overwrittenBaseAnswer)) {
1560
+ const options = {
1561
+ cleanDisallowedSymbols,
1562
+ contractSingleCharacters,
1563
+ replaceSpecialWords,
1564
+ resolveSpelledOutNumbers,
1565
+ resolvePhoneticAlphabet,
1566
+ resolvePhoneticCounters,
1567
+ resolveSpelledOutAlphabet,
1568
+ contractNumberGroups,
1569
+ trimResult
1570
+ };
1571
+ // set locale for CleanText class
1572
+ // Fallback is always "en"
1573
+ let localeToUse = "en";
1574
+ if (!cleanTextLocale || cleanTextLocale === "infer") {
1575
+ const flowLocale = (_b = input === null || input === void 0 ? void 0 : input.language) === null || _b === void 0 ? void 0 : _b.substring(0, 2);
1576
+ if (flowLocale === "en" || flowLocale === "de") {
1577
+ localeToUse = flowLocale;
1578
+ }
1579
+ }
1580
+ else {
1581
+ localeToUse = cleanTextLocale;
1582
+ }
1583
+ overwriteAnswer = {
1584
+ "text": new textCleaner_1.TextCleaner(localeToUse, additionalAllowedCharacters, additionalMappedSymbols, additionalSpecialPhrases, additionalPhoneticAlphabet).cleanAll(overwrittenBaseAnswer || input.text, options, (_c = input === null || input === void 0 ? void 0 : input.nlu) === null || _c === void 0 ? void 0 : _c.detailedSlots)
1585
+ };
1586
+ if (runNLUAfterCleaning) {
1587
+ const cleanedAnswer = overwriteAnswer.text;
1588
+ overwriteAnswer = await api.executeCognigyNLU(overwriteAnswer.text, input.data, input.inputId, { parseIntents: true, parseSlots: true, parseSystemSlots: true, findType: true });
1589
+ overwriteAnswer.text = cleanedAnswer;
1590
+ }
1591
+ }
1592
+ else if (overwrittenBaseAnswer) {
1593
+ // if only overwrittenBaseAnswer was specified, copy the input and overwrite the text property only
1594
+ overwriteAnswer = JSON.parse(JSON.stringify(input));
1595
+ overwriteAnswer.text = overwrittenBaseAnswer;
1596
+ }
1230
1597
  // if we're in a subsequent execution or we want to parse results
1231
1598
  // immediately on entry, continue with evaluation
1232
- let result = (0, evaluateQuestionAnswer_1.evaluateQuestionAnswer)({ cognigy, config });
1599
+ let result = (0, evaluateQuestionAnswer_1.evaluateQuestionAnswer)({ cognigy, config }, overwriteAnswer);
1233
1600
  // Verify that answer is valid based on some other conditions defined in the function
1234
1601
  const isValid = (0, validateQuestionAnswer_1.validateQuestionAnswer)(cognigy, config);
1235
1602
  // compute how often this node was hit
@@ -1301,11 +1668,11 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
1301
1668
  }
1302
1669
  // output reconfirmation reprompt
1303
1670
  if (reconfirmationQuestionReprompt) {
1304
- await say_1.SAY.function({ cognigy, childConfigs: [], nodeId, organisationId, config: { say: { type: "text", text: [reconfirmationQuestionReprompt] } } });
1671
+ await say_1.SAY.function({ cognigy, childConfigs: [], nodeId, organisationId, config: { handoverOutput, say: { type: "text", text: [reconfirmationQuestionReprompt] } } });
1305
1672
  }
1306
1673
  // output reconfirmationQuestion
1307
1674
  const tentativeAnswerShortform = (activeQuestion === null || activeQuestion === void 0 ? void 0 : activeQuestion.tentativeAnswerShortform) || "";
1308
- await say_1.SAY.function({ cognigy, childConfigs: [], nodeId, organisationId, config: { say: { type: "text", text: [reconfirmationQuestion.replace("[ANSWER]", tentativeAnswerShortform)] } } });
1675
+ await say_1.SAY.function({ cognigy, childConfigs: [], nodeId, organisationId, config: { handoverOutput, say: { type: "text", text: [reconfirmationQuestion.replace("[ANSWER]", tentativeAnswerShortform)] } } });
1309
1676
  // set myself as next node and stop
1310
1677
  api.setNextNode(nodeId);
1311
1678
  api.stopExecution();
@@ -1408,7 +1775,7 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
1408
1775
  // remember a shortform of the given answer in the activeQuestion object
1409
1776
  activeQuestion.tentativeAnswerShortform = (0, generateAnswerShortForm_1.generateAnswerShortForm)(type, result, cognigy.input.text);
1410
1777
  // Output reconfirmationQuestion
1411
- await say_1.SAY.function({ cognigy, childConfigs: [], nodeId, organisationId, config: { say: { type: "text", text: [reconfirmationQuestion.replace("[ANSWER]", activeQuestion.tentativeAnswerShortform)] } } });
1778
+ await say_1.SAY.function({ cognigy, childConfigs: [], nodeId, organisationId, config: { handoverOutput, say: { type: "text", text: [reconfirmationQuestion.replace("[ANSWER]", activeQuestion.tentativeAnswerShortform)] } } });
1412
1779
  // remember that we are in reconfirmation mode and stop
1413
1780
  api.setSystemContext("reconfirmationQuestionInProgress", true);
1414
1781
  // we need to store the input, to be able to restore it afterwards
@@ -1531,7 +1898,7 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
1531
1898
  childConfigs: [],
1532
1899
  nodeId,
1533
1900
  organisationId,
1534
- config: { say: escalateIntentsMessage }
1901
+ config: { handoverOutput, say: escalateIntentsMessage }
1535
1902
  });
1536
1903
  if (escalateIntentsRepromptPrevention) {
1537
1904
  sayReprompt = false;
@@ -1563,6 +1930,10 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
1563
1930
  sendTranscriptAsFirstMessage: escalateIntentHandoverSendTranscriptAsFirstMessage,
1564
1931
  salesforcePrechatEntities: escalateIntentsHandoverSalesforcePrechatEntities,
1565
1932
  salesforcePrechatDetails: escalateIntentsHandoverSalesforcePrechatDetails,
1933
+ genesysLanguage: escalateIntentsHandoverGenesysLanguage,
1934
+ genesysSkills: escalateIntentsHandoverGenesysSkills,
1935
+ genesysPriority: escalateIntentsHandoverGenesysPriority,
1936
+ genesysCustomAttributes: escalateIntentsHandoverGenesysCustomAttributes || [],
1566
1937
  eightByEightChannelId: escalateIntentsHandoverEightByEightChannelId,
1567
1938
  eightByEightQueueId: escalateIntentsHandoverEightByEightQueueId,
1568
1939
  eightByEightJSONProps: escalateIntentsHandoverEightByEightJSONProps || [],
@@ -1570,6 +1941,8 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
1570
1941
  resolveBehavior: escalateIntentsHandoverResolveBehavior,
1571
1942
  agentAssistInitMessage: escalateIntentsAgentAssistInitMessage,
1572
1943
  allowAgentInject: escalateIntentsAllowAgentInject,
1944
+ sendOnActiveEvent: escalateIntentsSendOnActiveEvent,
1945
+ sendOnQueueEvent: escalateIntentsSendOnQueueEvent,
1573
1946
  },
1574
1947
  nodeType: "question",
1575
1948
  });
@@ -1674,7 +2047,7 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
1674
2047
  childConfigs: [],
1675
2048
  nodeId,
1676
2049
  organisationId,
1677
- config: { say: escalateAnswersMessage }
2050
+ config: { handoverOutput, say: escalateAnswersMessage }
1678
2051
  });
1679
2052
  if (escalateAnswersRepromptPrevention) {
1680
2053
  sayReprompt = false;
@@ -1706,6 +2079,10 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
1706
2079
  sendTranscriptAsFirstMessage: escalateAnswersHandoverSendTranscriptAsFirstMessage,
1707
2080
  salesforcePrechatEntities: escalateAnswersHandoverSalesforcePrechatEntities,
1708
2081
  salesforcePrechatDetails: escalateAnswersHandoverSalesforcePrechatDetails,
2082
+ genesysLanguage: escalateAnswersHandoverGenesysLanguage,
2083
+ genesysSkills: escalateAnswersHandoverGenesysSkills,
2084
+ genesysPriority: escalateAnswersHandoverGenesysPriority,
2085
+ genesysCustomAttributes: escalateAnswersHandoverGenesysCustomAttributes,
1709
2086
  eightByEightChannelId: escalateAnswersHandoverEightByEightChannelId,
1710
2087
  eightByEightQueueId: escalateAnswersHandoverEightByEightQueueId,
1711
2088
  eightByEightJSONProps: escalateAnswersHandoverEightByEightJSONProps || [],
@@ -1713,6 +2090,8 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
1713
2090
  resolveBehavior: escalateAnswersHandoverResolveBehavior,
1714
2091
  agentAssistInitMessage: escalateAnswersAgentAssistInitMessage,
1715
2092
  allowAgentInject: escalateAnswersAllowAgentInject,
2093
+ sendOnActiveEvent: escalateAnswersSendOnActiveEvent,
2094
+ sendOnQueueEvent: escalateAnswersSendOnQueueEvent,
1716
2095
  },
1717
2096
  nodeType: "question",
1718
2097
  });
@@ -1738,7 +2117,7 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
1738
2117
  rephraseWithAIParams.questionType = config.type;
1739
2118
  rephraseWithAIParams.question = say.text[0];
1740
2119
  rephraseWithAIParams.answer = input.text;
1741
- await say_1.SAY.function({ cognigy, childConfigs: [], nodeId, organisationId, config: Object.assign({ say: { type: "text", text: [validationMessage] } }, rephraseWithAIParams) });
2120
+ await say_1.SAY.function({ cognigy, childConfigs: [], nodeId, organisationId, config: Object.assign({ handoverOutput, say: { type: "text", text: [validationMessage] } }, rephraseWithAIParams) });
1742
2121
  /* If repeat toggle is on, also output question (and maybe datepicker) again */
1743
2122
  if (validationRepeat) {
1744
2123
  rephraseWithAIParams.promtType = "question";