@cognigy/rest-api-client 0.14.0 → 0.16.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 (334) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/build/GenericTusFn.js +64 -0
  3. package/build/RestAPIClient.js +7 -0
  4. package/build/apigroups/AdministrationAPIGroup_2_0.js +7 -2
  5. package/build/apigroups/AdministrationAPIGroup_2_1.js +13 -0
  6. package/build/apigroups/ResourcesAPIGroup_2_0.js +78 -13
  7. package/build/apigroups/TTusAPIOperation.js +3 -0
  8. package/build/apigroups/index.js +5 -1
  9. package/build/connector/AxiosAdapter.js +6 -5
  10. package/build/shared/api/eightByEight/eightByEightInterfaces.js +3 -0
  11. package/build/shared/charts/descriptors/agentAssist/constants/constants.js +7 -0
  12. package/build/shared/charts/descriptors/agentAssist/helpers/sentiment.helper.js +41 -0
  13. package/build/shared/charts/descriptors/agentAssist/htmlTemplates/identityAssistTemplate.js +54 -0
  14. package/build/shared/charts/descriptors/agentAssist/htmlTemplates/knowledgeAssistTemplate.js +187 -0
  15. package/build/shared/charts/descriptors/agentAssist/htmlTemplates/nextActionWidgetTemplate.js +93 -0
  16. package/build/shared/charts/descriptors/agentAssist/htmlTemplates/secureForms/stage0.js +81 -0
  17. package/build/shared/charts/descriptors/agentAssist/htmlTemplates/secureForms/stage1.js +84 -0
  18. package/build/shared/charts/descriptors/agentAssist/htmlTemplates/secureForms/stage2.js +97 -0
  19. package/build/shared/charts/descriptors/agentAssist/htmlTemplates/secureForms/stageError.js +85 -0
  20. package/build/shared/charts/descriptors/agentAssist/htmlTemplates/sentimentAnalysisTemplate.js +41 -0
  21. package/build/shared/charts/descriptors/agentAssist/htmlTemplates/stylesPartial.js +15 -0
  22. package/build/shared/charts/descriptors/agentAssist/htmlTemplates/transcriptAssistTemplate.js +53 -0
  23. package/build/shared/charts/descriptors/agentAssist/identityAssist.js +135 -0
  24. package/build/shared/charts/descriptors/agentAssist/index.js +24 -0
  25. package/build/shared/charts/descriptors/agentAssist/knowledgeAssist.js +625 -0
  26. package/build/shared/charts/descriptors/agentAssist/nextActionAssist.js +77 -0
  27. package/build/shared/charts/descriptors/agentAssist/sentimentAssist.js +86 -0
  28. package/build/shared/charts/descriptors/agentAssist/setAdaptiveCardTile.js +74 -0
  29. package/build/shared/charts/descriptors/agentAssist/setAgentAssistGrid.js +105 -0
  30. package/build/shared/charts/descriptors/agentAssist/setHtmlTile.js +98 -0
  31. package/build/shared/charts/descriptors/agentAssist/setIframeTile.js +86 -0
  32. package/build/shared/charts/descriptors/agentAssist/setSecureFormsTile.js +171 -0
  33. package/build/shared/charts/descriptors/agentAssist/transcriptAssist.js +72 -0
  34. package/build/shared/charts/descriptors/allFields.js +6 -0
  35. package/build/shared/charts/descriptors/analytics/activateProfile.js +1 -1
  36. package/build/shared/charts/descriptors/analytics/blindMode.js +5 -5
  37. package/build/shared/charts/descriptors/analytics/completeGoal.js +2 -2
  38. package/build/shared/charts/descriptors/analytics/deactivateProfile.js +2 -2
  39. package/build/shared/charts/descriptors/analytics/deleteProfile.js +1 -1
  40. package/build/shared/charts/descriptors/analytics/mergeProfile.js +2 -2
  41. package/build/shared/charts/descriptors/analytics/overwriteAnalytics.js +34 -27
  42. package/build/shared/charts/descriptors/analytics/requestRating.js +5 -5
  43. package/build/shared/charts/descriptors/analytics/setRating.js +4 -4
  44. package/build/shared/charts/descriptors/analytics/updateProfile.js +3 -3
  45. package/build/shared/charts/descriptors/apps/getAppSessionPin.js +7 -14
  46. package/build/shared/charts/descriptors/apps/initAppSession.js +99 -87
  47. package/build/shared/charts/descriptors/apps/setAdaptiveCardAppState.js +101 -19
  48. package/build/shared/charts/descriptors/apps/setAppState.js +7 -7
  49. package/build/shared/charts/descriptors/apps/setHtmlAppState.js +141 -99
  50. package/build/shared/charts/descriptors/apps/utils/buildAppUrl.js +2 -6
  51. package/build/shared/charts/descriptors/connectionNodes/generativeAIProviders/TGenerativeAIConnectionFields.js +3 -0
  52. package/build/shared/charts/descriptors/connectionNodes/generativeAIProviders/alephAlphaProviderConnection.js +11 -0
  53. package/build/shared/charts/descriptors/connectionNodes/generativeAIProviders/anthropicProviderConnection.js +11 -0
  54. package/build/shared/charts/descriptors/connectionNodes/generativeAIProviders/azureOpenAIProviderConnection.js +4 -1
  55. package/build/shared/charts/descriptors/connectionNodes/generativeAIProviders/azureOpenAIProviderConnectionV2.js +11 -0
  56. package/build/shared/charts/descriptors/connectionNodes/generativeAIProviders/googleVertexAIProviderConnection.js +16 -0
  57. package/build/shared/charts/descriptors/connectionNodes/generativeAIProviders/index.js +18 -2
  58. package/build/shared/charts/descriptors/connectionNodes/generativeAIProviders/openAIProviderConnection.js +2 -2
  59. package/build/shared/charts/descriptors/connectionNodes/internalStorageProviders/amazonStorageProviderConnection.js +5 -5
  60. package/build/shared/charts/descriptors/connectionNodes/internalStorageProviders/azureBlobStorageProviderConnection.js +4 -4
  61. package/build/shared/charts/descriptors/connectionNodes/internalStorageProviders/googleCloudStorageProviderConnection.js +4 -4
  62. package/build/shared/charts/descriptors/connectionNodes/mongoDB/aggregate.js +13 -13
  63. package/build/shared/charts/descriptors/connectionNodes/mongoDB/find.js +18 -18
  64. package/build/shared/charts/descriptors/connectionNodes/mongoDB/findOne.js +17 -17
  65. package/build/shared/charts/descriptors/connectionNodes/mongoDB/insert.js +13 -13
  66. package/build/shared/charts/descriptors/connectionNodes/mongoDB/mongoDBConnection.js +2 -2
  67. package/build/shared/charts/descriptors/connectionNodes/mongoDB/remove.js +13 -13
  68. package/build/shared/charts/descriptors/connectionNodes/mongoDB/updateMany.js +15 -15
  69. package/build/shared/charts/descriptors/connectionNodes/mongoDB/updateOne.js +15 -15
  70. package/build/shared/charts/descriptors/connectionNodes/smtp/emailNotification.js +28 -28
  71. package/build/shared/charts/descriptors/connectionNodes/smtp/index.js +3 -1
  72. package/build/shared/charts/descriptors/connectionNodes/smtp/oAuth2Connection.js +18 -0
  73. package/build/shared/charts/descriptors/connectionNodes/smtp/sendEmail.js +102 -70
  74. package/build/shared/charts/descriptors/connectionNodes/smtp/serviceConnection.js +3 -3
  75. package/build/shared/charts/descriptors/connectionNodes/smtp/smtpConnection.js +6 -6
  76. package/build/shared/charts/descriptors/connectionNodes/speechProviders/awsSpeechProviderConnection.js +14 -0
  77. package/build/shared/charts/descriptors/connectionNodes/speechProviders/googleSpeechProviderConnection.js +16 -0
  78. package/build/shared/charts/descriptors/connectionNodes/speechProviders/index.js +23 -0
  79. package/build/shared/charts/descriptors/connectionNodes/speechProviders/microsoftSpeechProviderConnection.js +12 -0
  80. package/build/shared/charts/descriptors/connectionNodes/sql/runQuery.js +11 -11
  81. package/build/shared/charts/descriptors/connectionNodes/sql/runStoredProcedure.js +13 -13
  82. package/build/shared/charts/descriptors/connectionNodes/sql/runTransaction.js +11 -11
  83. package/build/shared/charts/descriptors/connectionNodes/sql/sqlConnection.js +6 -6
  84. package/build/shared/charts/descriptors/connectionNodes/translationProviders/deeplTranslationProviderConnection.js +15 -0
  85. package/build/shared/charts/descriptors/connectionNodes/translationProviders/googleTranslationProviderConnection.js +15 -0
  86. package/build/shared/charts/descriptors/connectionNodes/translationProviders/index.js +23 -0
  87. package/build/shared/charts/descriptors/connectionNodes/translationProviders/microsoftTranslationProviderConnection.js +21 -0
  88. package/build/shared/charts/descriptors/data/addToContext.js +7 -7
  89. package/build/shared/charts/descriptors/data/code.js +3 -3
  90. package/build/shared/charts/descriptors/data/copyDataToContext.js +1 -1
  91. package/build/shared/charts/descriptors/data/copySlotsToContext.js +9 -9
  92. package/build/shared/charts/descriptors/data/log.js +7 -7
  93. package/build/shared/charts/descriptors/data/removeFromContext.js +7 -7
  94. package/build/shared/charts/descriptors/data/resetContext.js +2 -2
  95. package/build/shared/charts/descriptors/index.js +47 -12
  96. package/build/shared/charts/descriptors/knowledgeSearch/constants/constants.js +6 -0
  97. package/build/shared/charts/descriptors/knowledgeSearch/index.js +10 -0
  98. package/build/shared/charts/descriptors/knowledgeSearch/knowledgeSearch.js +154 -0
  99. package/build/shared/charts/descriptors/knowledgeSearch/knowledgeSearchV2.js +151 -0
  100. package/build/shared/charts/descriptors/knowledgeSearch/searchExtractOutput.js +985 -0
  101. package/build/shared/charts/descriptors/liveAgent/assistInfo.js +25 -25
  102. package/build/shared/charts/descriptors/logic/disableSlotFillers.js +4 -4
  103. package/build/shared/charts/descriptors/logic/enableSlotFillers.js +3 -3
  104. package/build/shared/charts/descriptors/logic/executeFlow.js +9 -9
  105. package/build/shared/charts/descriptors/logic/goTo.js +20 -18
  106. package/build/shared/charts/descriptors/logic/if/if.js +3 -3
  107. package/build/shared/charts/descriptors/logic/interval/interval.js +3 -3
  108. package/build/shared/charts/descriptors/logic/once/once.js +1 -1
  109. package/build/shared/charts/descriptors/logic/resetState.js +1 -1
  110. package/build/shared/charts/descriptors/logic/setState.js +4 -4
  111. package/build/shared/charts/descriptors/logic/setTranslation.js +15 -15
  112. package/build/shared/charts/descriptors/logic/sleep.js +2 -2
  113. package/build/shared/charts/descriptors/logic/stop.js +1 -1
  114. package/build/shared/charts/descriptors/logic/switch/case.js +1 -1
  115. package/build/shared/charts/descriptors/logic/switch/default.js +1 -1
  116. package/build/shared/charts/descriptors/logic/switch/switch.js +28 -19
  117. package/build/shared/charts/descriptors/logic/switchLocale.js +5 -5
  118. package/build/shared/charts/descriptors/logic/think.js +11 -11
  119. package/build/shared/charts/descriptors/logic/thinkV2.js +11 -11
  120. package/build/shared/charts/descriptors/logic/wait.js +1 -1
  121. package/build/shared/charts/descriptors/message/checkChannelChange/checkChannelChange.js +4 -4
  122. package/build/shared/charts/descriptors/message/datePicker.js +1 -1
  123. package/build/shared/charts/descriptors/message/question/optionalQuestion.js +68 -36
  124. package/build/shared/charts/descriptors/message/question/question.js +796 -210
  125. package/build/shared/charts/descriptors/message/question/utils/cleanTextUtils.js +191 -0
  126. package/build/shared/charts/descriptors/message/question/utils/datepickerUtils.js +40 -40
  127. package/build/shared/charts/descriptors/message/question/utils/evaluateQuestionAnswer.js +37 -27
  128. package/build/shared/charts/descriptors/message/say.js +37 -4
  129. package/build/shared/charts/descriptors/message/sendImage.js +1 -1
  130. package/build/shared/charts/descriptors/message/sendText.js +2 -2
  131. package/build/shared/charts/descriptors/microsoft/getToken.js +1 -1
  132. package/build/shared/charts/descriptors/microsoft/invalidateToken.js +1 -1
  133. package/build/shared/charts/descriptors/microsoft/tokenStatus/index.js +1 -1
  134. package/build/shared/charts/descriptors/nlu/addLexiconKeyphrase.js +5 -5
  135. package/build/shared/charts/descriptors/nlu/cleanText.js +104 -0
  136. package/build/shared/charts/descriptors/nlu/executeCognigyNLU.js +15 -15
  137. package/build/shared/charts/descriptors/nlu/extractAnswer.js +11 -11
  138. package/build/shared/charts/descriptors/nlu/fuzzySearch.js +33 -33
  139. package/build/shared/charts/descriptors/nlu/generativeSlotFiller/generativeSlotFiller.js +270 -0
  140. package/build/shared/charts/descriptors/nlu/generativeSlotFiller/generativeSlotFillerFallback.js +27 -0
  141. package/build/shared/charts/descriptors/nlu/generativeSlotFiller/generativeSlotFillerSuccess.js +27 -0
  142. package/build/shared/charts/descriptors/nlu/generativeSlotFiller/prompt.js +174 -0
  143. package/build/shared/charts/descriptors/nlu/index.js +9 -1
  144. package/build/shared/charts/descriptors/nlu/matchPattern.js +16 -16
  145. package/build/shared/charts/descriptors/nlu/regexSlotFiller.js +5 -5
  146. package/build/shared/charts/descriptors/placeholder.js +3 -3
  147. package/build/shared/charts/descriptors/service/GPTConversation.js +780 -0
  148. package/build/shared/charts/descriptors/service/GPTPrompt.js +394 -0
  149. package/build/shared/charts/descriptors/service/checkAgentAvailability.js +48 -33
  150. package/build/shared/charts/descriptors/service/closeHandover.js +34 -0
  151. package/build/shared/charts/descriptors/service/conversationSummary.js +148 -0
  152. package/build/shared/charts/descriptors/service/handover.js +18 -17
  153. package/build/shared/charts/descriptors/service/handoverInactivityTimer.js +37 -0
  154. package/build/shared/charts/descriptors/service/handoverV2.js +179 -51
  155. package/build/shared/charts/descriptors/service/httpRequest.js +52 -52
  156. package/build/shared/charts/descriptors/service/index.js +11 -3
  157. package/build/shared/charts/descriptors/service/triggerFunction/triggerFunction.js +3 -3
  158. package/build/shared/charts/descriptors/voice/index.js +5 -1
  159. package/build/shared/{interfaces/twilioInterface.js → charts/descriptors/voice/interface/IBandwidth.js} +1 -1
  160. package/build/shared/charts/descriptors/voice/mappers/base.mapper.js +97 -0
  161. package/build/shared/charts/descriptors/voice/mappers/hangup.mapper.js +32 -9
  162. package/build/shared/charts/descriptors/voice/mappers/muteSpeechInput.mapper.js +67 -0
  163. package/build/shared/charts/descriptors/voice/mappers/play.mapper.js +73 -19
  164. package/build/shared/charts/descriptors/voice/mappers/record.mapper.js +103 -0
  165. package/build/shared/charts/descriptors/voice/mappers/sendMetadata.mapper.js +68 -0
  166. package/build/shared/charts/descriptors/voice/mappers/setSessionConfig.mapper.js +158 -66
  167. package/build/shared/charts/descriptors/voice/mappers/transfer.mapper.js +68 -16
  168. package/build/shared/charts/descriptors/voice/nodes/bargeIn.js +14 -20
  169. package/build/shared/charts/descriptors/voice/nodes/continuousAsr.js +7 -7
  170. package/build/shared/charts/descriptors/voice/nodes/dtmf.js +10 -18
  171. package/build/shared/charts/descriptors/voice/nodes/hangup.js +2 -2
  172. package/build/shared/charts/descriptors/voice/nodes/muteSpeechInput.js +52 -0
  173. package/build/shared/charts/descriptors/voice/nodes/noUserInput.js +15 -14
  174. package/build/shared/charts/descriptors/voice/nodes/play.js +13 -9
  175. package/build/shared/charts/descriptors/voice/nodes/sendMetadata.js +51 -0
  176. package/build/shared/charts/descriptors/voice/nodes/sessionSpeechParameters.js +199 -21
  177. package/build/shared/charts/descriptors/voice/nodes/transfer.js +21 -13
  178. package/build/shared/charts/descriptors/voice/utils/vgConstants.js +14 -0
  179. package/build/shared/charts/descriptors/voicegateway/index.js +14 -11
  180. package/build/shared/charts/descriptors/voicegateway/nodes/agentAssist.js +10 -10
  181. package/build/shared/charts/descriptors/voicegateway/nodes/callRecording.js +64 -62
  182. package/build/shared/charts/descriptors/voicegateway/nodes/handover.js +14 -14
  183. package/build/shared/charts/descriptors/voicegateway/nodes/hangup.js +2 -2
  184. package/build/shared/charts/descriptors/voicegateway/nodes/playURL.js +18 -15
  185. package/build/shared/charts/descriptors/voicegateway/nodes/sendMessage.js +41 -41
  186. package/build/shared/charts/descriptors/voicegateway/nodes/sendMetaData.js +15 -19
  187. package/build/shared/charts/descriptors/voicegateway/nodes/setSessionParams.js +3 -3
  188. package/build/shared/charts/descriptors/voicegateway/utils/paramUtils.js +113 -97
  189. package/build/shared/charts/descriptors/voicegateway2/index.js +5 -1
  190. package/build/shared/charts/descriptors/voicegateway2/nodes/dtmf.js +5 -5
  191. package/build/shared/charts/descriptors/voicegateway2/nodes/hangup.js +3 -4
  192. package/build/shared/charts/descriptors/voicegateway2/nodes/muteSpeechInput.js +60 -0
  193. package/build/shared/charts/descriptors/voicegateway2/nodes/play.js +42 -18
  194. package/build/shared/charts/descriptors/voicegateway2/nodes/record.js +108 -0
  195. package/build/shared/charts/descriptors/voicegateway2/nodes/refer.js +9 -10
  196. package/build/shared/charts/descriptors/voicegateway2/nodes/sendMetadata.js +14 -29
  197. package/build/shared/charts/descriptors/voicegateway2/nodes/setSessionConfig.js +424 -74
  198. package/build/shared/charts/descriptors/voicegateway2/nodes/transfer.js +410 -45
  199. package/build/shared/charts/descriptors/voicegateway2/utils/helper.js +33 -7
  200. package/build/shared/charts/descriptors/voicegateway2/utils/strip-nulls.js +4 -0
  201. package/build/shared/charts/helpers/generativeAI/getRephraseWithAIFields.js +8 -8
  202. package/build/shared/charts/helpers/generativeAI/rephraseSentenceWithAi.js +1 -1
  203. package/build/shared/constants.js +18 -1
  204. package/build/shared/errors/ErrorCode.js +1 -0
  205. package/build/shared/errors/TooManyRequestsError.js +59 -0
  206. package/build/shared/errors/baseError.js +6 -2
  207. package/build/shared/errors/codes.js +2 -1
  208. package/build/shared/errors/index.js +3 -1
  209. package/build/shared/handoverClients/interfaces/THandoverEventType.js +3 -1
  210. package/build/shared/helper/BaseContext.js +43 -3
  211. package/build/shared/helper/nlu/dicts/dicts.js +691 -0
  212. package/build/shared/helper/nlu/textCleaner.js +413 -0
  213. package/build/shared/interfaces/IApiKey.js +2 -7
  214. package/build/shared/interfaces/IEndpointTranslationSettings.js +9 -0
  215. package/build/shared/interfaces/IOrganisation.js +4 -8
  216. package/build/shared/interfaces/IProfileSchema.js +1 -7
  217. package/build/shared/interfaces/agentAssist/ISendConfigUpdateParams.js +3 -0
  218. package/build/shared/interfaces/agentAssist/ISendTileUpdateParams.js +3 -0
  219. package/build/shared/interfaces/agentAssist/ISendUpdateReferenceParams.js +3 -0
  220. package/build/shared/interfaces/agentAssist/index.js +3 -0
  221. package/build/shared/interfaces/ai.js +0 -16
  222. package/build/shared/interfaces/amqpInterface.js +25 -23
  223. package/build/shared/interfaces/channels/genesysBotConnector.js +21 -0
  224. package/build/shared/interfaces/channels/niceCXOne.js +8 -0
  225. package/build/shared/interfaces/generativeAI/IGenerativeAIModels.js +80 -0
  226. package/build/shared/interfaces/generativeAI/IGenerativeAIPrompts.js +3 -0
  227. package/build/shared/interfaces/generativeAI/IRunGenerativeAIPromptOptions.js +3 -0
  228. package/build/shared/interfaces/handover.js +70 -4
  229. package/build/shared/interfaces/journeys/IJourney.js +6 -0
  230. package/build/shared/interfaces/journeys/IJourneyTrackEvent.js +2 -0
  231. package/build/shared/interfaces/knowledgesearch/search.js +3 -0
  232. package/build/shared/interfaces/messageAPI/ai.js +2 -1
  233. package/build/shared/interfaces/messageAPI/endpoints.js +177 -5
  234. package/build/shared/interfaces/messageAPI/handover.js +4 -1
  235. package/build/shared/interfaces/resources/IAgentAssistConfig.js +26 -20
  236. package/build/shared/interfaces/resources/IAuditEvent.js +9 -1
  237. package/build/shared/interfaces/resources/IChart.js +1 -10
  238. package/build/shared/interfaces/resources/IConnection.js +7 -1
  239. package/build/shared/interfaces/resources/IConnectionSchema.js +3 -0
  240. package/build/shared/interfaces/resources/IEndpoint.js +3 -14
  241. package/build/shared/interfaces/resources/IExtension.js +3 -0
  242. package/build/shared/interfaces/resources/IFlow.js +15 -10
  243. package/build/shared/interfaces/resources/IFunction.js +1 -7
  244. package/build/shared/interfaces/resources/IGenerateNodeOutput.js +3 -0
  245. package/build/shared/interfaces/resources/ILargeLanguageModel.js +73 -0
  246. package/build/shared/interfaces/resources/ILexicon.js +2 -7
  247. package/build/shared/interfaces/resources/INodeDescriptorSet.js +55 -30
  248. package/build/shared/interfaces/resources/IPackage.js +1 -7
  249. package/build/shared/interfaces/resources/IPlaybookRun.js +2 -1
  250. package/build/shared/interfaces/resources/IProject.js +1 -7
  251. package/build/shared/interfaces/resources/ISnapshot.js +2 -14
  252. package/build/shared/interfaces/resources/TNLUConnectorType.js +2 -2
  253. package/build/shared/interfaces/resources/TResourceType.js +16 -5
  254. package/build/shared/interfaces/resources/TRestChannelType.js +16 -11
  255. package/build/shared/interfaces/resources/TWebhookChannelType.js +6 -1
  256. package/build/shared/interfaces/resources/chart/IChartExecutable.js +1 -7
  257. package/build/shared/interfaces/resources/knowledgeStore/IKnowledgeChunk.js +50 -0
  258. package/build/shared/interfaces/resources/knowledgeStore/IKnowledgeSource.js +42 -0
  259. package/build/shared/interfaces/resources/knowledgeStore/IKnowledgeStore.js +26 -0
  260. package/build/shared/interfaces/resources/settings/IAgentSettings.js +7 -70
  261. package/build/shared/interfaces/resources/settings/IAudioPreviewSettings.js +36 -0
  262. package/build/shared/interfaces/resources/settings/IGenerativeAISettings.js +25 -88
  263. package/build/shared/interfaces/resources/settings/IGenerativeAIUseCase.js +3 -0
  264. package/build/shared/interfaces/resources/settings/ISharedSettings.js +2 -2
  265. package/build/shared/interfaces/resources/settings/ITranslationSettings.js +63 -0
  266. package/build/shared/interfaces/resources/settings/index.js +7 -5
  267. package/build/shared/interfaces/restAPI/administration/user/v2.1/IApiKeyIndexItem_2_1.js +3 -0
  268. package/build/shared/interfaces/restAPI/administration/user/v2.1/IApiKey_2_1.js +3 -0
  269. package/build/shared/interfaces/restAPI/administration/user/v2.1/ICreateApiKeyRest_2_1.js +3 -0
  270. package/build/shared/interfaces/restAPI/administration/user/v2.1/IIndexApiKeysMeRest_2_1.js +3 -0
  271. package/build/shared/interfaces/restAPI/administration/user/v2.1/index.js +3 -0
  272. package/build/shared/interfaces/restAPI/administration/voiceGateway/v2.0/IReadVoiceGatewayAccountRest_2_0.js +3 -0
  273. package/build/shared/interfaces/restAPI/administration/voiceGateway/v2.0/ISetupVoiceGatewayAccountRest_2_0.js +3 -0
  274. package/build/shared/interfaces/restAPI/administration/voiceGateway/v2.0/index.js +3 -0
  275. package/build/shared/interfaces/restAPI/insights/reports/IGenerateReportRest_2_0.js +0 -2
  276. package/build/shared/interfaces/restAPI/metrics/knowledgeQueryCounter/v2.0/IGetKnowledgeQueryCounterOrganisationRest_2_0.js +3 -0
  277. package/build/shared/interfaces/restAPI/metrics/knowledgeQueryCounter/v2.0/IGetKnowledgeQueryCounterRest_2_0.js +3 -0
  278. package/build/shared/interfaces/restAPI/metrics/knowledgeQueryCounter/v2.0/IKnowlegeQueryCounterAggregatedValue_2_0.js +3 -0
  279. package/build/shared/interfaces/restAPI/metrics/knowledgeQueryCounter/v2.0/index.js +3 -0
  280. package/build/shared/interfaces/restAPI/resources/agentAssist/v2.0/IReadAgentAssistSessionDataRest_2_0.js +3 -0
  281. package/build/shared/interfaces/restAPI/resources/chart/v2.0/IGenerateNodeOutputRest_2_0.js +3 -0
  282. package/build/shared/interfaces/restAPI/resources/knowledgeSearchIndex/v2.0/ICreateKnowledgeSearchIndexRest_2_0.js +3 -0
  283. package/build/shared/interfaces/restAPI/resources/knowledgeSearchIndex/v2.0/IDeleteKnowledgeSearchIndexRest_2_0.js +3 -0
  284. package/build/shared/interfaces/restAPI/resources/knowledgeSearchIndex/v2.0/index.js +3 -0
  285. package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/ICreateKnowledgeStoreRest_2_0.js +3 -0
  286. package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/IDeleteKnowledgeStoreRest_2_0.js +3 -0
  287. package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/IIndexKnowledgeStoresRest_2_0.js +3 -0
  288. package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/IIngestKnowledgeStoreRest_2_0.js +3 -0
  289. package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/IKnowledgeStore_2_0.js +3 -0
  290. package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/IReadKnowledgeStoreRest_2_0.js +3 -0
  291. package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/IUpdateKnowledgeStoreRest_2_0.js +3 -0
  292. package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/index.js +3 -0
  293. package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/source/ICreateKnowledgeSourceRest_2_0.js +3 -0
  294. package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/source/IDeleteKnowledgeSourceRest_2_0.js +3 -0
  295. package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/source/IIndexKnowledgeSourcesRest_2_0.js +3 -0
  296. package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/source/IKnowledgeSource_2_0.js +3 -0
  297. package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/source/IReadKnowledgeSourceRest_2_0.js +3 -0
  298. package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/source/IUpdateKnowledgeSourceRest_2_0.js +3 -0
  299. package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/source/IUploadKnowledgeSourceFileRest_2_0.js +4 -0
  300. package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/source/chunk/ICreateKnowledgeChunkRest_2_0.js +3 -0
  301. package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/source/chunk/IDeleteKnowledgeChunkRest_2_0.js +3 -0
  302. package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/source/chunk/IIndexKnowledgeChunksRest_2_0.js +3 -0
  303. package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/source/chunk/IKnowledgeChunk_2_0.js +3 -0
  304. package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/source/chunk/IReadKnowledgeChunkRest_2_0.js +3 -0
  305. package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/source/chunk/IUpdateKnowledgeChunkRest_2_0.js +3 -0
  306. package/build/shared/interfaces/restAPI/resources/largeLanguageModel/v2.0/ICloneLargeLanguageModelRest_2_0.js +4 -0
  307. package/build/shared/interfaces/restAPI/resources/largeLanguageModel/v2.0/ICreateLargeLanguageModelRest_2_0.js +3 -0
  308. package/build/shared/interfaces/restAPI/resources/largeLanguageModel/v2.0/IDeleteLargeLanguageModelRest_2_0.js +3 -0
  309. package/build/shared/interfaces/restAPI/resources/largeLanguageModel/v2.0/IIndexLargeLanguageModelsRest_2_0.js +3 -0
  310. package/build/shared/interfaces/restAPI/resources/largeLanguageModel/v2.0/ILargeLanguageModelIndexItem_2_0.js +3 -0
  311. package/build/shared/interfaces/restAPI/resources/largeLanguageModel/v2.0/ILargeLanguageModel_2_0.js +3 -0
  312. package/build/shared/interfaces/restAPI/resources/largeLanguageModel/v2.0/IReadLargeLanguageModelRest_2_0.js +3 -0
  313. package/build/shared/interfaces/restAPI/resources/largeLanguageModel/v2.0/ITestLargeLanguageModelRest_2_0.js +3 -0
  314. package/build/shared/interfaces/restAPI/resources/largeLanguageModel/v2.0/IUpdateLargeLanguageModelRest_2_0.js +3 -0
  315. package/build/shared/interfaces/restAPI/resources/largeLanguageModel/v2.0/index.js +3 -0
  316. package/build/shared/interfaces/restAPI/resources/nluconnector/v2.0/TNLUConnectorType_2_0.js +3 -3
  317. package/build/shared/interfaces/restAPI/resources/project/v2.0/settings/ISetupCognigyGenerativeAIRest_2_0.js +4 -0
  318. package/build/shared/interfaces/restAPI/resources/uploadResumable/v2.0/IUploadResumableRest_2_0.js +17 -0
  319. package/build/shared/interfaces/restAPI/resources/uploadResumable/v2.0/index.js +3 -0
  320. package/build/shared/interfaces/security/IACL.js +1 -7
  321. package/build/shared/interfaces/security/IIdentityProvider.js +1 -7
  322. package/build/shared/interfaces/security/IKnowledgeQueryCounterAggregatedValue.js +3 -0
  323. package/build/shared/interfaces/security/IPermission.js +8 -2
  324. package/build/shared/interfaces/security/IRole.js +6 -2
  325. package/build/shared/interfaces/security/index.js +1 -2
  326. package/build/shared/interfaces/taskmanager/ITask.js +1 -0
  327. package/build/shared/interfaces/trainer/ITrainerRecord.js +1 -1
  328. package/build/shared/interfaces/user.js +1 -9
  329. package/build/test.js +27 -0
  330. package/package.json +19 -17
  331. package/types/index.d.ts +10428 -8487
  332. package/build/shared/charts/descriptors/service/completeText.js +0 -316
  333. package/build/shared/charts/descriptors/voice/utils/constants.js +0 -8
  334. package/build/shared/charts/descriptors/voicegateway2/utils/constants.js +0 -7
@@ -49,6 +49,10 @@ 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");
55
+ const prompt_1 = require("../../nlu/generativeSlotFiller/prompt");
52
56
  var QuestionTypes;
53
57
  (function (QuestionTypes) {
54
58
  QuestionTypes[QuestionTypes["date"] = 0] = "date";
@@ -67,13 +71,20 @@ var QuestionTypes;
67
71
  QuestionTypes[QuestionTypes["data"] = 13] = "data";
68
72
  QuestionTypes[QuestionTypes["url"] = 14] = "url";
69
73
  QuestionTypes[QuestionTypes["custom"] = 15] = "custom";
74
+ QuestionTypes[QuestionTypes["de_lp"] = 16] = "de_lp";
75
+ QuestionTypes[QuestionTypes["iban"] = 17] = "iban";
76
+ QuestionTypes[QuestionTypes["us_ssn"] = 18] = "us_ssn";
77
+ QuestionTypes[QuestionTypes["bic"] = 19] = "bic";
78
+ QuestionTypes[QuestionTypes["ipv4"] = 20] = "ipv4";
79
+ QuestionTypes[QuestionTypes["creditcard"] = 21] = "creditcard";
80
+ QuestionTypes[QuestionTypes["phonenumber"] = 22] = "phonenumber";
70
81
  })(QuestionTypes = exports.QuestionTypes || (exports.QuestionTypes = {}));
71
82
  //#endregion Interfaces
72
83
  exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
73
84
  //#region DescriptorFields
74
85
  type: "question",
75
86
  defaultLabel: "Question",
76
- summary: "Ask a question and waits for a valid answer",
87
+ summary: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__DEFAULT__SUMMARY",
77
88
  behavior: {
78
89
  stopping: false,
79
90
  entrypoint: true
@@ -85,78 +96,106 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
85
96
  {
86
97
  key: "type",
87
98
  type: "select",
88
- label: "Question Type",
99
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS_TYPE__LABEL",
89
100
  params: {
90
101
  required: true,
91
102
  options: [
92
103
  {
93
- label: "Text",
104
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS_TYPE_OPTIONS__TEXT__LABEL",
94
105
  value: "text"
95
106
  },
96
107
  {
97
- label: "Yes / No",
108
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS_TYPE_OPTIONS__YES_NO__LABEL",
98
109
  value: "yesNo"
99
110
  },
100
111
  {
101
- label: "Intent",
112
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS_TYPE_OPTIONS__INTENT__LABEL",
102
113
  value: "intent",
103
114
  },
104
115
  {
105
- label: "Slot",
116
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS_TYPE_OPTIONS__SLOT__LABEL",
106
117
  value: "keyphrase",
107
118
  },
108
119
  {
109
- label: "Date",
120
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS_TYPE_OPTIONS__DATE__LABEL",
110
121
  value: "date",
111
122
  },
112
123
  {
113
- label: "Number",
124
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS_TYPE_OPTIONS__NUMBER__LABEL",
114
125
  value: "number",
115
126
  },
116
127
  {
117
- label: "Temperature",
128
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS_TYPE_OPTIONS__TEMPERATURE__LABEL",
118
129
  value: "temperature",
119
130
  },
120
131
  {
121
- label: "Age",
132
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS_TYPE_OPTIONS__AGE__LABEL",
122
133
  value: "age",
123
134
  },
124
135
  {
125
- label: "Duration",
136
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS_TYPE_OPTIONS__DURATION__LABEL",
126
137
  value: "duration",
127
138
  },
128
139
  {
129
- label: "Email",
140
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS_TYPE_OPTIONS__EMAIL__LABEL",
130
141
  value: "email",
131
142
  },
132
143
  {
133
- label: "Money",
144
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS_TYPE_OPTIONS__MONEY__LABEL",
134
145
  value: "money"
135
146
  },
136
147
  {
137
- label: "URL",
148
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS_TYPE_OPTIONS__URL__LABEL",
138
149
  value: "url"
139
150
  },
140
151
  {
141
- label: "Percentage",
152
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS_TYPE_OPTIONS__PERCENTAGE__LABEL",
142
153
  value: "percentage"
143
154
  },
144
155
  {
145
- label: "Regex",
156
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS_TYPE_OPTIONS__REGEX__LABEL",
146
157
  value: "regex",
147
158
  },
148
159
  {
149
- label: "Data",
160
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS_TYPE_OPTIONS__DATA__LABEL",
150
161
  value: "data",
151
162
  },
152
- process.env.FEATURE_USE_COGNIGY_APPS && {
153
- label: "xApp",
163
+ {
164
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS_TYPE_OPTIONS__XAPP__LABEL",
154
165
  value: "app",
155
166
  },
156
167
  {
157
- label: "Custom",
168
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS_TYPE_OPTIONS__CUSTOM__LABEL",
158
169
  value: "custom",
159
170
  },
171
+ {
172
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS_TYPE_OPTIONS__DE_LP__LABEL",
173
+ value: "de_lp"
174
+ },
175
+ {
176
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS_TYPE_OPTIONS__IBAN__LABEL",
177
+ value: "iban",
178
+ },
179
+ {
180
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS_TYPE_OPTIONS__BIC__LABEL",
181
+ value: "bic"
182
+ },
183
+ {
184
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS_TYPE_OPTIONS__US_SSN__LABEL",
185
+ value: "us_ssn",
186
+ },
187
+ {
188
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS_TYPE_OPTIONS__IPV4__LABEL",
189
+ value: "ipv4"
190
+ },
191
+ {
192
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS_TYPE_OPTIONS__PHONENUMBER__LABEL",
193
+ value: "phonenumber"
194
+ },
195
+ {
196
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS_TYPE_OPTIONS__CREDITCARD__LABEL",
197
+ value: "creditcard"
198
+ }
160
199
  ].filter(option => !!option),
161
200
  },
162
201
  defaultValue: 'yesNo'
@@ -164,7 +203,7 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
164
203
  {
165
204
  key: "say",
166
205
  type: "say",
167
- label: "Question",
206
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__SAY__LABEL",
168
207
  defaultValue: {
169
208
  data: "{}",
170
209
  type: "text",
@@ -177,38 +216,184 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
177
216
  {
178
217
  key: "validationMessage",
179
218
  type: "cognigyText",
180
- label: "Reprompt Message",
181
- description: "Message to output if the given answer is invalid",
219
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__VALIDATION_MESSAGE__LABEL",
220
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__VALIDATION_MESSAGE__DESCRIPTION",
182
221
  defaultValue: "Not sure I understood this correctly.",
183
222
  params: {
184
223
  multiline: true
224
+ },
225
+ condition: {
226
+ and: [
227
+ {
228
+ key: "repromptType",
229
+ value: "say",
230
+ negate: true
231
+ },
232
+ {
233
+ key: "repromptType",
234
+ value: "llm",
235
+ negate: true
236
+ },
237
+ {
238
+ key: "repromptType",
239
+ value: "execute",
240
+ negate: true
241
+ }
242
+ ]
185
243
  }
186
244
  },
187
245
  {
188
246
  key: "repromptCondition",
189
247
  type: "cognigyText",
190
- label: "Reprompt Condition",
191
- description: "Condition to check before outputting Reprompt Message",
248
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__REPROMPT_CONDITION__LABEL",
249
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__REPROMPT_CONDITION__DESCRIPTION",
192
250
  defaultValue: ""
193
251
  },
252
+ {
253
+ key: "repromptType",
254
+ type: "select",
255
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__REPROMPT_REPROMPT_TYPE__LABEL",
256
+ defaultValue: "text",
257
+ params: {
258
+ options: [
259
+ {
260
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__REPROMPT_REPROMPT_TYPE__OPTION_TEXT",
261
+ value: "text"
262
+ },
263
+ {
264
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__REPROMPT_REPROMPT_TYPE__OPTION_SAY",
265
+ value: "say"
266
+ },
267
+ {
268
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__REPROMPT_REPROMPT_TYPE__OPTION_LLM",
269
+ value: "llm"
270
+ },
271
+ {
272
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__REPROMPT_REPROMPT_TYPE__OPTION_EXECUTE",
273
+ value: "execute"
274
+ },
275
+ ]
276
+ }
277
+ },
278
+ {
279
+ key: "repromptSay",
280
+ type: "say",
281
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__REPROMPT_SAY__LABEL",
282
+ defaultValue: {
283
+ data: "{}",
284
+ type: "text",
285
+ linear: false,
286
+ loop: false,
287
+ text: ["Sorry, I didn't understand that correctly."],
288
+ _cognigy: {},
289
+ },
290
+ condition: {
291
+ key: "repromptType",
292
+ value: "say",
293
+ }
294
+ },
295
+ {
296
+ key: "repromptLLMProvider",
297
+ type: "llmSelect",
298
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__REPROMPT_LLM_SELECT__LABEL",
299
+ defaultValue: "default",
300
+ condition: {
301
+ key: "repromptType",
302
+ value: "llm",
303
+ }
304
+ },
305
+ {
306
+ key: "repromptLLMPrompt",
307
+ type: "cognigyText",
308
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__REPROMPT_LLM_PROMPT__LABEL",
309
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__REPROMPT_LLM_PROMPT__DESCRIPTION",
310
+ defaultValue: `You are a chatbot that helps a user.
311
+ You asked the user for INSERT_ASK (e.g. "their customer number") and an incorrect answer was given.
312
+ You now need to guide the user back in a polite way and ask for INSERT_ASK (e.g. "their customer number") again.
313
+ DO NOT talk about other topics. Do not offer general assistance.`,
314
+ params: {
315
+ multiline: true
316
+ },
317
+ condition: {
318
+ key: "repromptType",
319
+ value: "llm",
320
+ }
321
+ },
322
+ {
323
+ key: "repromptLLMTurns",
324
+ label: "UI__NODE_EDITOR__SERVICE__QUESTION__QUESTION__FIELDS__TRANSCRIPT_STEPS__LABEL",
325
+ type: "slider",
326
+ description: "UI__NODE_EDITOR__SERVICE__QUESTION__QUESTION__FIELDS__TRANSCRIPT_STEPS__DESCRIPTION",
327
+ defaultValue: 3,
328
+ params: {
329
+ min: 1,
330
+ max: 10,
331
+ step: 1
332
+ },
333
+ condition: {
334
+ key: "repromptType",
335
+ value: "llm",
336
+ }
337
+ },
338
+ {
339
+ key: "repromptFlowNode",
340
+ type: "flowNode",
341
+ label: "UI__NODE_EDITOR__EXECUTE_FLOW__FLOW_NODE__LABEL",
342
+ condition: {
343
+ key: "repromptType",
344
+ value: "execute",
345
+ }
346
+ },
347
+ {
348
+ key: "repromptParseIntents",
349
+ type: "toggle",
350
+ label: "UI__NODE_EDITOR__EXECUTE_FLOW__PARSE_INTENTS__LABEL",
351
+ description: "UI__NODE_EDITOR__EXECUTE_FLOW__PARSE_INTENTS__DESCRIPTION",
352
+ defaultValue: true,
353
+ condition: {
354
+ key: "repromptType",
355
+ value: "execute",
356
+ }
357
+ },
358
+ {
359
+ key: "repromptParseKeyphrases",
360
+ type: "toggle",
361
+ label: "UI__NODE_EDITOR__EXECUTE_FLOW__PARSE_KEYPHRASES__LABEL",
362
+ description: "UI__NODE_EDITOR__EXECUTE_FLOW__PARSE_KEYPHRASES__DESCRIPTION",
363
+ defaultValue: true,
364
+ condition: {
365
+ key: "repromptType",
366
+ value: "execute",
367
+ }
368
+ },
369
+ {
370
+ key: "repromptAbsorbContext",
371
+ type: "toggle",
372
+ label: "UI__NODE_EDITOR__EXECUTE_FLOW__ABSORB_CONTEXT__LABEL",
373
+ description: "UI__NODE_EDITOR__EXECUTE_FLOW__ABSORB_CONTEXT__DESCRIPTION",
374
+ condition: {
375
+ key: "repromptType",
376
+ value: "execute",
377
+ }
378
+ },
194
379
  {
195
380
  key: "validationRepeat",
196
381
  type: "toggle",
197
- label: "Repeat Question",
198
- description: "Repeat question if given answer is invalid",
382
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__VALIDATION_REPEAT__LABEL",
383
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__VALIDATION_REPEAT__DESCRIPTION",
199
384
  defaultValue: true
200
385
  },
201
386
  {
202
387
  key: "skipRepromptOnIntent",
203
388
  type: "toggle",
204
- label: "Skip on Intent",
205
- description: "Skips the reprompt if an intent was found",
389
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__SKIP_REPROMPT_ON_INTENT__LABEL",
390
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__SKIP_REPROMPT_ON_INTENT__DESCRIPTION",
206
391
  defaultValue: false
207
392
  },
208
393
  {
209
394
  key: "keyphraseTag",
210
395
  type: "cognigyText",
211
- label: "Slot Name",
396
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__KEYPHRASE_TAG__LABEL",
212
397
  condition: {
213
398
  key: "type",
214
399
  value: "keyphrase"
@@ -217,7 +402,7 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
217
402
  {
218
403
  key: "usePositiveOnly",
219
404
  type: "toggle",
220
- label: "Use Positive Keyphrases Only",
405
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__USE_POSITIVE_ONLY__LABEL",
221
406
  condition: {
222
407
  key: "type",
223
408
  value: "keyphrase"
@@ -226,8 +411,8 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
226
411
  {
227
412
  key: "regex",
228
413
  type: "cognigyText",
229
- label: "Regular Expression",
230
- description: "Provide a regular expression (e.g. /\\d{5}/)",
414
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__REGEX__LABEL",
415
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__REGEX__DESCRIPTION",
231
416
  condition: {
232
417
  key: "type",
233
418
  value: "regex"
@@ -236,12 +421,12 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
236
421
  {
237
422
  key: "storeInContactProfile",
238
423
  type: "toggle",
239
- label: "Store Result in Contact Profile"
424
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__STORE_CONTACT_PROFILE__LABEL"
240
425
  },
241
426
  {
242
427
  key: "profileKey",
243
428
  type: "profileSchemaField",
244
- label: "Profile Key to use",
429
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__PROFILE_KEY_PROFILE__LABEL",
245
430
  condition: {
246
431
  key: "storeInContactProfile",
247
432
  value: true
@@ -250,17 +435,17 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
250
435
  {
251
436
  key: "storeDetailedResults",
252
437
  type: "toggle",
253
- label: "Store detailed Results"
438
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__STORE_DETAILED_RESULT__LABEL"
254
439
  },
255
440
  {
256
441
  key: "storeResultInContext",
257
442
  type: "toggle",
258
- label: "Store Result in Context"
443
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__STORE_RESULT_IN_CONTEXT__LABEL"
259
444
  },
260
445
  {
261
446
  key: "contextKey",
262
447
  type: "cognigyText",
263
- label: "Context Key to use",
448
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__CONTEXT_KEY__LABEL",
264
449
  defaultValue: "result",
265
450
  condition: {
266
451
  key: "storeResultInContext",
@@ -270,7 +455,7 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
270
455
  {
271
456
  key: "skipIfResultInContext",
272
457
  type: "toggle",
273
- label: "Skip if Answer exists in Context",
458
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__SKIP_IF_RESULT_IN_CONTEXT__LABEL",
274
459
  condition: {
275
460
  key: "storeResultInContext",
276
461
  value: true
@@ -279,8 +464,8 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
279
464
  {
280
465
  key: "onlyAcceptEscalationIntents",
281
466
  type: "toggle",
282
- label: "Only Accept Escalation Intents",
283
- description: "Ignore all Intents on Answer, except Escalation Intents",
467
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ONLY_ACCEPT_ESCALATION_INTENTS__LABEL",
468
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ONLY_ACCEPT_ESCALATION_INTENTS__DESCRIPTION",
284
469
  condition: {
285
470
  key: "type",
286
471
  value: "intent",
@@ -290,15 +475,15 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
290
475
  {
291
476
  key: "parseResultOnEntry",
292
477
  type: "toggle",
293
- label: "Skip if Answer in Input",
294
- description: "Skips the question if it was already answered when the Node is hit"
478
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__PARSE_RESULT_ON_ENTRY__LABEL",
479
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__PARSE_RESULT_ON_ENTRY__DESCRIPTION"
295
480
  },
296
481
  {
297
482
  key: "datepickerExplanation",
298
483
  type: "description",
299
484
  label: " ",
300
485
  params: {
301
- text: "Date questions can prompt the user with an interactive datepicker which is configured in the sections below"
486
+ text: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__DATE_PICKER_EXPLANATION__PARAMS__TEXT"
302
487
  },
303
488
  condition: {
304
489
  key: "type",
@@ -308,53 +493,53 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
308
493
  {
309
494
  key: "additionalValidation",
310
495
  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",
496
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ADDITIONAL_VALIDATION__LABEL",
497
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ADDITIONAL_VALIDATION__DESCRIPTION",
313
498
  defaultValue: ""
314
499
  },
315
500
  {
316
501
  key: "resultLocation",
317
502
  type: "cognigyText",
318
- label: "Result Location",
319
- description: "The location to retrieve the result from (e.g. input.text)",
503
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__RESULT_LOCATION__LABEL",
504
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__RESULT_LOCATION__DESCRIPTION",
320
505
  defaultValue: ""
321
506
  },
322
507
  {
323
508
  key: "maxExecutionDiff",
324
509
  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.",
510
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__MAX_EXECUTION_DIFF__LABEL",
511
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__MAX_EXECUTION_DIFF__DESCRIPTION",
327
512
  defaultValue: 1
328
513
  },
329
514
  {
330
515
  key: "escalateAnswersAction",
331
516
  type: "select",
332
- label: "Escalation Action",
333
- description: "What should happen after the threshold of wrong answers is reached?",
517
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWER_ACTION__LABEL",
518
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWER_ACTION__DESCRIPTION",
334
519
  params: {
335
520
  options: [
336
521
  {
337
- label: "No Escalation",
522
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWER_ACTION__OPTIONS__NONE__LABEL",
338
523
  value: "none"
339
524
  },
340
525
  {
341
- label: "Output Message",
526
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWER_ACTION__OPTIONS__TEXT__LABEL",
342
527
  value: "text",
343
528
  },
344
529
  {
345
- label: "Skip Question",
530
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWER_ACTION__OPTIONS__SKIP__LABEL",
346
531
  value: "skip",
347
532
  },
348
533
  {
349
- label: "Go to Node",
534
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWER_ACTION__OPTIONS__GOTO__LABEL",
350
535
  value: "goto"
351
536
  },
352
537
  {
353
- label: "Execute Flow and return",
538
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWER_ACTION__OPTIONS__EXECUTE__LABEL",
354
539
  value: "execute"
355
540
  },
356
541
  {
357
- label: "Handover to Human Agent",
542
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWER_ACTION__OPTIONS__HANDOVER__LABEL",
358
543
  value: "handover"
359
544
  }
360
545
  ],
@@ -364,8 +549,8 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
364
549
  {
365
550
  key: "escalateAnswersThreshold",
366
551
  type: "slider",
367
- label: "Wrong Answer Count Trigger",
368
- description: "Number of incorrect answers on which escalation will be triggered.",
552
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATION_ANSWER_THRESHOLD__LABEL",
553
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATION_ANSWER_THRESHOLD__DESCRIPTION",
369
554
  params: {
370
555
  min: 1,
371
556
  max: 10,
@@ -381,7 +566,7 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
381
566
  {
382
567
  key: "escalateAnswersGotoTarget",
383
568
  type: "flowNode",
384
- label: "GoTo Target",
569
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATION_ANSWERS_GOTO_TARGET__LABEL",
385
570
  condition: {
386
571
  key: "escalateAnswersAction",
387
572
  value: "goto"
@@ -390,7 +575,7 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
390
575
  {
391
576
  key: "escalateAnswersExecuteTarget",
392
577
  type: "flowNode",
393
- label: "Execute Target",
578
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_EXECUTE_TARGET__LABEL",
394
579
  condition: {
395
580
  key: "escalateAnswersAction",
396
581
  value: "execute"
@@ -399,17 +584,17 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
399
584
  {
400
585
  key: "escalateAnswersGotoExecutionMode",
401
586
  type: "select",
402
- description: "Go to new Node and continue execution or wait for input",
403
- label: "GoTo Execution Mode",
587
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_GOTO_EXECUTION_MODE__DESCRIPTION",
588
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_GOTO_EXECUTION_MODE__LABEL",
404
589
  defaultValue: "continue",
405
590
  params: {
406
591
  options: [
407
592
  {
408
- label: "Go to Node and continue",
593
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_GOTO_EXECUTION_MODE__OPTIONS__CONTINUE__LABEL",
409
594
  value: "continue"
410
595
  },
411
596
  {
412
- label: "Go to Node and wait for Input",
597
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_GOTO_EXECUTION_MODE__OPTIONS__WAIT__LABEL",
413
598
  value: "wait"
414
599
  },
415
600
  ]
@@ -421,9 +606,9 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
421
606
  },
422
607
  {
423
608
  key: "escalateAnswersInjectedText",
424
- label: "Optional Injected Text",
609
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_INJECTED_TEXT__LABEL",
425
610
  type: "cognigyText",
426
- description: "Text to use when continuing the execution. If no text is provided, input.text is used.",
611
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_INJECTED_TEXT__DESCRIPTION",
427
612
  defaultValue: "",
428
613
  condition: {
429
614
  key: "escalateAnswersAction",
@@ -432,9 +617,9 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
432
617
  },
433
618
  {
434
619
  key: "escalateAnswersInjectedData",
435
- label: "Optional Injected Data",
620
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_INJECTED_DATA__LABEL",
436
621
  type: "json",
437
- description: "Data to use when continuing the execution. If no data is provided, input.data is used.",
622
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_INJECTED_DATA__DESCRIPTION",
438
623
  defaultValue: "{}",
439
624
  condition: {
440
625
  key: "escalateAnswersAction",
@@ -444,7 +629,7 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
444
629
  {
445
630
  key: "escalateAnswersMessage",
446
631
  type: "say",
447
- label: "Escalation Message",
632
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_MESSAGE__LABEL",
448
633
  defaultValue: {
449
634
  data: "{}",
450
635
  type: "text",
@@ -461,7 +646,7 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
461
646
  {
462
647
  key: "escalateAnswersRepromptPrevention",
463
648
  type: "toggle",
464
- label: "Prevent Reprompt on Escalation",
649
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_PROMPT_PREVENTION__LABEL",
465
650
  defaultValue: true,
466
651
  condition: {
467
652
  key: "escalateAnswersAction",
@@ -471,8 +656,8 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
471
656
  {
472
657
  key: "escalateAnswersHandoverText",
473
658
  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",
659
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_HANDOVERTEXT__LABEL",
660
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_HANDOVERTEXT__DESCRIPTION",
476
661
  condition: {
477
662
  key: "escalateAnswersAction",
478
663
  value: "handover"
@@ -481,7 +666,7 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
481
666
  {
482
667
  key: "escalateAnswersHandoverResolveBehavior",
483
668
  type: "select",
484
- label: "On Resolve Behavior",
669
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_HANDOVER_RESOLVE_BEHAVIOR__LABEL",
485
670
  condition: {
486
671
  key: "escalateAnswersAction",
487
672
  value: "handover"
@@ -490,11 +675,11 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
490
675
  params: {
491
676
  options: [
492
677
  {
493
- label: "Continue Flow below this Node",
678
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_HANDOVER_RESOLVE_BEHAVIOR__OPTIONS__RESET_ENTRYPOINT__LABEL",
494
679
  value: "resetEntrypoint"
495
680
  },
496
681
  {
497
- label: "Continue Flow at current Entrypoint",
682
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_HANDOVER_RESOLVE_BEHAVIOR__OPTIONS__CONTINUE_ENTRYPOINT__LABEL",
498
683
  value: "continueEntrypoint",
499
684
  },
500
685
  ],
@@ -503,7 +688,7 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
503
688
  {
504
689
  key: "escalateAnswersHandoverSendResolveEvent",
505
690
  type: "toggle",
506
- label: "Send resolve event to Virtual Agent",
691
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_HANDOVER_SEND_RESOLVE_EVENT__LABEL",
507
692
  condition: {
508
693
  key: "escalateAnswersAction",
509
694
  value: "handover"
@@ -511,10 +696,10 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
511
696
  defaultValue: false,
512
697
  },
513
698
  process.env.FEATURE_USE_COGNIGY_LIVE_AGENT && {
514
- key: "escalateAnswersAllowAgentInject",
699
+ key: constants_1.COGNIGY_LIVE_AGENT_DESCRIPTOR_FIELDS.ESCALATE_ANSWERS_ALLOW_AGENT_INJECT,
515
700
  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",
701
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_ALLOW_AGENT_INJECT__LABEL",
702
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_ALLOW_AGENT_INJECT__DESCRIPTION",
518
703
  condition: {
519
704
  key: "escalateAnswersAction",
520
705
  value: "handover"
@@ -522,10 +707,10 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
522
707
  defaultValue: true,
523
708
  },
524
709
  process.env.FEATURE_USE_COGNIGY_LIVE_AGENT && {
525
- key: "escalateAnswersAgentAssistInitMessage",
710
+ key: constants_1.COGNIGY_LIVE_AGENT_DESCRIPTOR_FIELDS.ESCALATE_ANSWERS_AGENT_ASSIST_INIT_MESSAGE,
526
711
  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",
712
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_AGENT_ASSIST_INIT_MESSAGE__LABEL",
713
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_AGENT_ASSIST_INIT_MESSAGE__DESCRIPTION",
529
714
  condition: {
530
715
  key: "escalateAnswersAction",
531
716
  value: "handover"
@@ -534,8 +719,8 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
534
719
  {
535
720
  key: "escalateAnswersRepeatHandoverMessage",
536
721
  type: "toggle",
537
- label: "Repeat Handover Accepted Message",
538
- description: "Repeatedly respond with Handover Accepted Message for each user input until human agent responds",
722
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_REPEAT_HANDOVER_MESSAGE__LABEL",
723
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_REPEAT_HANDOVER_MESSAGE__DESCRIPTION",
539
724
  defaultValue: false,
540
725
  condition: {
541
726
  key: "escalateAnswersAction",
@@ -545,8 +730,8 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
545
730
  {
546
731
  key: "escalateAnswersHandoverCancelIntent",
547
732
  type: "cognigyText",
548
- label: "Cancel Intent",
549
- description: "Name of the intent which will cancel the handover",
733
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_HANDOVER_CANCEL_INTENT__LABEL",
734
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_HANDOVER_CANCEL_INTENT__DESCRIPTION",
550
735
  condition: {
551
736
  key: "escalateAnswersAction",
552
737
  value: "handover"
@@ -555,18 +740,18 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
555
740
  {
556
741
  key: "escalateAnswersHandoverQuickReply",
557
742
  type: "cognigyText",
558
- label: "Cancel Button Text",
559
- description: "Text of the Quick Reply Button which sends the user back to the Virtual Agent",
743
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_HANDOVER_QUICK_REPLY__LABEL",
744
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_HANDOVER_QUICK_REPLY__DESCRIPTION",
560
745
  condition: {
561
746
  key: "escalateAnswersAction",
562
747
  value: "handover"
563
748
  }
564
749
  },
565
750
  process.env.FEATURE_USE_COGNIGY_LIVE_AGENT && {
566
- key: "escalateAnswersHandoverLiveAgentInboxId",
751
+ key: constants_1.COGNIGY_LIVE_AGENT_DESCRIPTOR_FIELDS.ESCALATE_ANSWERS_HANDOVER_LIVE_AGENT_INBOX_ID,
567
752
  type: "cognigyText",
568
- label: "Live Agent Inbox Id",
569
- description: "Inbox Id in Live Agent",
753
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_HANDOVER_LIVE_AGENT_INBOX_ID__LABEL",
754
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_HANDOVER_LIVE_AGENT_INBOX_ID__DESCRIPTION",
570
755
  condition: {
571
756
  key: "escalateAnswersAction",
572
757
  value: "handover"
@@ -575,8 +760,8 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
575
760
  {
576
761
  key: "escalateAnswersHandoverChatwootInboxId",
577
762
  type: "cognigyText",
578
- label: "Chatwoot Inbox Id",
579
- description: "Inbox Id in Chatwoot",
763
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_HANDOVER_CHATWOOT_INBOX_ID__LABEL",
764
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_HANDOVER_CHATWOOT_INBOX_ID__DESCRIPTION",
580
765
  condition: {
581
766
  key: "escalateAnswersAction",
582
767
  value: "handover"
@@ -585,8 +770,8 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
585
770
  {
586
771
  key: "escalateAnswersHandoverSendTranscriptAsFirstMessage",
587
772
  type: "toggle",
588
- label: "Salesforce Send Trascript As First Message",
589
- description: "The Salesforce receives conversation transcript as a first message.",
773
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_HANDOVER_SEND_TRANSCRIPT_AS_FIRST_MESSAGE__LABEL",
774
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_HANDOVER_SEND_TRANSCRIPT_AS_FIRST_MESSAGE__DESCRIPTION",
590
775
  defaultValue: false,
591
776
  condition: {
592
777
  key: "escalateAnswersAction",
@@ -596,8 +781,8 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
596
781
  {
597
782
  key: "escalateAnswersHandoverSalesforcePrechatEntities",
598
783
  type: "json",
599
- label: "Salesforce Prechat Entities",
600
- description: "The Salesforce entity that should be used.",
784
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_HANDOVER_SALES_FORCE_PERCHAT_ENTITIES__LABEL",
785
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_HANDOVER_SALES_FORCE_PERCHAT_ENTITIES__DESCRIPTION",
601
786
  defaultValue: "[]",
602
787
  condition: {
603
788
  key: "escalateAnswersAction",
@@ -607,8 +792,8 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
607
792
  {
608
793
  key: "escalateAnswersHandoverSalesforcePrechatDetails",
609
794
  type: "json",
610
- label: "Salesforce Prechat Details",
611
- description: "The details that should be displayed to the Live Chat Agent.",
795
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_HANDOVER_SALES_FORCE_PERCHAT_DETAILS__LABEL",
796
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_HANDOVER_SALES_FORCE_PERCHAT_DETAILS__DESCRIPTION",
612
797
  defaultValue: "[]",
613
798
  condition: {
614
799
  key: "escalateAnswersAction",
@@ -616,10 +801,51 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
616
801
  }
617
802
  },
618
803
  {
619
- key: "escaleAnswersHandoverEightByEightChannelId",
804
+ key: "escalateAnswersHandoverGenesysLanguage",
620
805
  type: "cognigyText",
621
- label: "8x8 Channel Id",
622
- description: "The 8x8 Channel Id",
806
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_HANDOVER__GENESYS_LANGUAGE__LABEL",
807
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_HANDOVER__GENESYS_LANGUAGE__DESCRIPTION",
808
+ condition: {
809
+ key: "escalateAnswersAction",
810
+ value: "handover"
811
+ }
812
+ },
813
+ {
814
+ key: "escalateAnswersHandoverGenesysSkills",
815
+ type: "cognigyTextArray",
816
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_HANDOVER__GENESYS_SKILLS__LABEL",
817
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_HANDOVER__GENESYS_SKILLS__DESCRIPTION",
818
+ condition: {
819
+ key: "escalateAnswersAction",
820
+ value: "handover"
821
+ }
822
+ },
823
+ {
824
+ key: "escalateAnswersHandoverGenesysPriority",
825
+ type: "cognigyText",
826
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_HANDOVER__GENESYS_PRIORITY__LABEL",
827
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_HANDOVER__GENESYS_PRIORITY__DESCRIPTION",
828
+ condition: {
829
+ key: "escalateAnswersAction",
830
+ value: "handover"
831
+ }
832
+ },
833
+ {
834
+ key: "escalateAnswersHandoverGenesysCustomAttributes",
835
+ type: "json",
836
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_HANDOVER_GENESYS_CUSTOM_ATTRIBUTES__LABEL",
837
+ defaultValue: {},
838
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_HANDOVER_GENESYS_CUSTOM_ATTRIBUTES__DESCRIPTION",
839
+ condition: {
840
+ key: "escalateAnswersAction",
841
+ value: "handover"
842
+ }
843
+ },
844
+ {
845
+ key: "escalateAnswersHandoverEightByEightChannelId",
846
+ type: "cognigyText",
847
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_HANDOVER_EIGHT_BY_EIGHT_CHANNELID__LABEL",
848
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_HANDOVER_EIGHT_BY_EIGHT_CHANNELID__DESCRIPTION",
623
849
  condition: {
624
850
  key: "escalateAnswersAction",
625
851
  value: "handover"
@@ -628,8 +854,8 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
628
854
  {
629
855
  key: "escalateAnswersHandoverEightByEightQueueId",
630
856
  type: "cognigyText",
631
- label: "8x8 Queue Id",
632
- description: "The 8x8 Queue Id",
857
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_HANDOVER_EIGHT_BY_EIGHT_QUEUEID__LABEL",
858
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_HANDOVER_EIGHT_BY_EIGHT_QUEUEID__DESCRIPTION",
633
859
  condition: {
634
860
  key: "escalateAnswersAction",
635
861
  value: "handover"
@@ -638,9 +864,20 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
638
864
  {
639
865
  key: "escalateAnswersHandoverEightByEightJSONProps",
640
866
  type: "json",
641
- label: "8x8 JSON Properties",
642
- description: "The 8x8 JSON Properties",
643
- defaultValue: [],
867
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_HANDOVER_EIGHT_BY_EIGHT_JSONPROPS__LABEL",
868
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_HANDOVER_EIGHT_BY_EIGHT_JSONPROPS__DESCRIPTION",
869
+ defaultValue: {
870
+ "name": null,
871
+ "userId": null,
872
+ "email": null,
873
+ "phone": null,
874
+ "company": null,
875
+ "caseId": null,
876
+ "language": null,
877
+ "additionalProperties": [
878
+ { "key": "Key name", "value": "Value from Cognigy" }
879
+ ]
880
+ },
644
881
  condition: {
645
882
  key: "escalateAnswersAction",
646
883
  value: "handover"
@@ -649,8 +886,8 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
649
886
  {
650
887
  key: "escalateAnswersHandoverAdditionalCategoryIds",
651
888
  type: "cognigyTextArray",
652
- label: "Additional Category Ids",
653
- description: "Additional Category Ids to be passed to Ring Central Engage handover provider",
889
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_HANDOVER_ADDITIONAL_CATEGORRY_IDS__LABEL",
890
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_HANDOVER_ADDITIONAL_CATEGORRY_IDS__DESCRIPTION",
654
891
  defaultValue: [],
655
892
  condition: {
656
893
  key: "escalateAnswersAction",
@@ -660,8 +897,8 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
660
897
  {
661
898
  key: "escalateAnswersOnce",
662
899
  type: "toggle",
663
- label: "Only escalate once",
664
- description: "Only escalate exactly at the threshold but not after",
900
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_ONCE__LABEL",
901
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_ONCE__DESCRIPTION",
665
902
  defaultValue: true,
666
903
  condition: {
667
904
  key: "escalateAnswersAction",
@@ -669,35 +906,49 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
669
906
  negate: true
670
907
  }
671
908
  },
909
+ {
910
+ key: "escalateAnswersSendOnQueueEvent",
911
+ type: "toggle",
912
+ defaultValue: false,
913
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_SEND_ON_QUEUE_EVENT__LABEL",
914
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_SEND_ON_QUEUE_EVENT__DESCRIPTION",
915
+ },
916
+ {
917
+ key: "escalateAnswersSendOnActiveEvent",
918
+ type: "toggle",
919
+ defaultValue: false,
920
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_SEND_ON_ACTIVE_EVENT__LABEL",
921
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_SEND_ON_ACTIVE_EVENT__DESCRIPTION",
922
+ },
672
923
  {
673
924
  key: "escalateIntentsAction",
674
925
  type: "select",
675
- label: "Escalation Action",
676
- description: "What shall happen after an intent was found?",
926
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_ACTION__LABEL",
927
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_ACTION__DESCRIPTION",
677
928
  params: {
678
929
  options: [
679
930
  {
680
- label: "No Escalation",
931
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_ACTION__OPTIONS__NONE__LABEL",
681
932
  value: "none"
682
933
  },
683
934
  {
684
- label: "Output Message",
935
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_ACTION__OPTIONS__TEXT__LABEL",
685
936
  value: "text",
686
937
  },
687
938
  {
688
- label: "Skip Question",
939
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_ACTION__OPTIONS__SKIP__LABEL",
689
940
  value: "skip",
690
941
  },
691
942
  {
692
- label: "Go to Node",
943
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_ACTION__OPTIONS__GOTO__LABEL",
693
944
  value: "goto"
694
945
  },
695
946
  {
696
- label: "Execute Flow and return",
947
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_ACTION__OPTIONS__EXECUTE__LABEL",
697
948
  value: "execute"
698
949
  },
699
950
  {
700
- label: "Handover to Human Agent",
951
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_ACTION__OPTIONS__HANDOVER__LABEL",
701
952
  value: "handover"
702
953
  }
703
954
  ],
@@ -707,8 +958,8 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
707
958
  {
708
959
  key: "escalateIntentsValidIntents",
709
960
  type: "chipInput",
710
- label: "Valid Intents",
711
- description: "List of intents which trigger escalation. Hit Enter to add each intent.",
961
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_VALID_INTENTS__LABEL",
962
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_VALID_INTENTS__DESCRIPTION",
712
963
  condition: {
713
964
  key: "escalateIntentsAction",
714
965
  value: "none",
@@ -718,8 +969,8 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
718
969
  {
719
970
  key: "escalateIntentsThreshold",
720
971
  type: "slider",
721
- label: "Intent Score Threshold",
722
- description: "The minimum score the hit intent must have to trigger an escalation.",
972
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_THRESHOLD__LABEL",
973
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_THRESHOLD__DESCRIPTION",
723
974
  params: {
724
975
  min: 0,
725
976
  max: 1,
@@ -735,7 +986,7 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
735
986
  {
736
987
  key: "escalateIntentsGotoTarget",
737
988
  type: "flowNode",
738
- label: "GoTo Target",
989
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_GOTO_TARGET__LABEL",
739
990
  condition: {
740
991
  key: "escalateIntentsAction",
741
992
  value: "goto"
@@ -744,7 +995,7 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
744
995
  {
745
996
  key: "escalateIntentsExecuteTarget",
746
997
  type: "flowNode",
747
- label: "Execute Target",
998
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_EXECUTE_TARGET__LABEL",
748
999
  condition: {
749
1000
  key: "escalateIntentsAction",
750
1001
  value: "execute"
@@ -753,17 +1004,17 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
753
1004
  {
754
1005
  key: "escalateIntentsGotoExecutionMode",
755
1006
  type: "select",
756
- description: "Go to new Node and continue execution or wait for input",
757
- label: "GoTo Execution Mode",
1007
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_GOTO_EXECUTION_MODE__DESCRIPTION",
1008
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_GOTO_EXECUTION_MODE__LABEL",
758
1009
  defaultValue: "continue",
759
1010
  params: {
760
1011
  options: [
761
1012
  {
762
- label: "Go to Node and continue",
1013
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_GOTO_EXECUTION_MODE__OPTIONS__CONTINUE__LABEL",
763
1014
  value: "continue"
764
1015
  },
765
1016
  {
766
- label: "Go to Node and wait for Input",
1017
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_GOTO_EXECUTION_MODE__OPTIONS__WAIT__LABEL",
767
1018
  value: "wait"
768
1019
  },
769
1020
  ]
@@ -775,9 +1026,9 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
775
1026
  },
776
1027
  {
777
1028
  key: "escalateIntentsInjectedText",
778
- label: "Optional Injected Text",
1029
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_INJECT_TEXT__LABEL",
779
1030
  type: "cognigyText",
780
- description: "Text to use when continuing the execution. If no text provided, input.text is used.",
1031
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_INJECT_TEXT__DESCRIPTION",
781
1032
  defaultValue: "",
782
1033
  condition: {
783
1034
  key: "escalateIntentsAction",
@@ -786,9 +1037,9 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
786
1037
  },
787
1038
  {
788
1039
  key: "escalateIntentsInjectedData",
789
- label: "Optional Injected Data",
1040
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_INJECT_DATA__LABEL",
790
1041
  type: "json",
791
- description: "Data to use when continuing the execution. If no data provided, input.data is used.",
1042
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_INJECT_DATA__DESCRIPTION",
792
1043
  defaultValue: "{}",
793
1044
  condition: {
794
1045
  key: "escalateIntentsAction",
@@ -798,7 +1049,7 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
798
1049
  {
799
1050
  key: "escalateIntentsMessage",
800
1051
  type: "say",
801
- label: "Escalation Message",
1052
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_MESSAGE__LABEL",
802
1053
  defaultValue: {
803
1054
  data: "{}",
804
1055
  type: "text",
@@ -815,8 +1066,8 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
815
1066
  {
816
1067
  key: "escalateIntentsHandoverText",
817
1068
  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",
1069
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_TEXT__LABEL",
1070
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_TEXT__DESCRIPTION",
820
1071
  condition: {
821
1072
  key: "escalateIntentsAction",
822
1073
  value: "handover"
@@ -825,8 +1076,8 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
825
1076
  {
826
1077
  key: "escalateIntentsRepeatHandoverMessage",
827
1078
  type: "toggle",
828
- label: "Repeat Handover Accepted Message",
829
- description: "Repeatedly respond with Handover Accepted Message for each user input until human agent responds",
1079
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_REPEAT_HANDOVER_MESSAGE__LABEL",
1080
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_REPEAT_HANDOVER_MESSAGE__DESCRIPTION",
830
1081
  defaultValue: false,
831
1082
  condition: {
832
1083
  key: "escalateIntentsAction",
@@ -836,8 +1087,8 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
836
1087
  {
837
1088
  key: "escalateIntentsHandoverCancelIntent",
838
1089
  type: "cognigyText",
839
- label: "Cancel Intent",
840
- description: "Name of the intent which will cancel the handover",
1090
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_CANCEL_INTENT__LABEL",
1091
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_CANCEL_INTENT__DESCRIPTION",
841
1092
  condition: {
842
1093
  key: "escalateIntentsAction",
843
1094
  value: "handover"
@@ -846,8 +1097,8 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
846
1097
  {
847
1098
  key: "escalateIntentsHandoverQuickReply",
848
1099
  type: "cognigyText",
849
- label: "Cancel Button Text",
850
- description: "Text of the Quick Reply Button which sends the user back to the Virtual Agent",
1100
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_QUICK_REPLY__LABEL",
1101
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_QUICK_REPLY__DESCRIPTION",
851
1102
  condition: {
852
1103
  key: "escalateIntentsAction",
853
1104
  value: "handover"
@@ -856,7 +1107,7 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
856
1107
  {
857
1108
  key: "escalateIntentsHandoverResolveBehavior",
858
1109
  type: "select",
859
- label: "On Resolve Behavior",
1110
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_RESOLVE_BEHAVIOR__LABEL",
860
1111
  condition: {
861
1112
  key: "escalateIntentsAction",
862
1113
  value: "handover"
@@ -865,11 +1116,11 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
865
1116
  params: {
866
1117
  options: [
867
1118
  {
868
- label: "Continue Flow below this Node",
1119
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_RESOLVE_BEHAVIOR__OPTIONS__RESET_ENTRYPOINT__LABEL",
869
1120
  value: "resetEntrypoint"
870
1121
  },
871
1122
  {
872
- label: "Continue Flow at current Entrypoint",
1123
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_RESOLVE_BEHAVIOR__OPTIONS__CONTINUE_ENTRYPOINT__LABEL",
873
1124
  value: "continueEntrypoint",
874
1125
  },
875
1126
  ],
@@ -878,18 +1129,32 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
878
1129
  {
879
1130
  key: "escalateIntentsHandoverSendResolveEvent",
880
1131
  type: "toggle",
881
- label: "Send resolve event to Virtual Agent",
1132
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_SEND_RESOLVE_EVENT__LABEL",
882
1133
  condition: {
883
1134
  key: "escalateIntentsAction",
884
1135
  value: "handover"
885
1136
  },
886
1137
  defaultValue: false,
887
1138
  },
1139
+ {
1140
+ key: "escalateIntentsSendOnQueueEvent",
1141
+ type: "toggle",
1142
+ defaultValue: false,
1143
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_SEND_ON_QUEUE_EVENT__LABEL",
1144
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_SEND_ON_QUEUE_EVENT__DESCRIPTION",
1145
+ },
1146
+ {
1147
+ key: "escalateIntentsSendOnActiveEvent",
1148
+ type: "toggle",
1149
+ defaultValue: false,
1150
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_SEND_ON_ACTIVE_EVENT__LABEL",
1151
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_SEND_ON_ACTIVE_EVENT__DESCRIPTION",
1152
+ },
888
1153
  process.env.FEATURE_USE_COGNIGY_LIVE_AGENT && {
889
- key: "escalateIntentsAllowAgentInject",
1154
+ key: constants_1.COGNIGY_LIVE_AGENT_DESCRIPTOR_FIELDS.ESCALATE_INTENTS_ALLOW_AGENT_INJECT,
890
1155
  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",
1156
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_ALLOW_AGENT_INJECT__LABEL",
1157
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_ALLOW_AGENT_INJECT__DESCRIPTION",
893
1158
  condition: {
894
1159
  key: "escalateIntentsAction",
895
1160
  value: "handover"
@@ -897,20 +1162,20 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
897
1162
  defaultValue: true,
898
1163
  },
899
1164
  process.env.FEATURE_USE_COGNIGY_LIVE_AGENT && {
900
- key: "escalateIntentsHandoverLiveAgentInboxId",
1165
+ key: constants_1.COGNIGY_LIVE_AGENT_DESCRIPTOR_FIELDS.ESCALATE_INTENTS_HANDOVER_LIVE_AGENT_INBOX_ID,
901
1166
  type: "cognigyText",
902
- label: "Live Agent Inbox Id",
903
- description: "Inbox Id in Live Agent",
1167
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_LIVE_AGENT_INBOX_ID__LABEL",
1168
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_LIVE_AGENT_INBOX_ID__DESCRIPTION",
904
1169
  condition: {
905
1170
  key: "escalateIntentsAction",
906
1171
  value: "handover"
907
1172
  }
908
1173
  },
909
1174
  process.env.FEATURE_USE_COGNIGY_LIVE_AGENT && {
910
- key: "escalateIntentsAgentAssistInitMessage",
1175
+ key: constants_1.COGNIGY_LIVE_AGENT_DESCRIPTOR_FIELDS.ESCALATE_INTENTS_AGENT_ASSIST_INIT_MESSAGE,
911
1176
  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",
1177
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_AGENT_ASSIST_INIT_MESSAGE__LABEL",
1178
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_AGENT_ASSIST_INIT_MESSAGE__DESCRIPTION",
914
1179
  condition: {
915
1180
  key: "escalateIntentsAction",
916
1181
  value: "handover"
@@ -919,8 +1184,8 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
919
1184
  {
920
1185
  key: "escalateIntentsHandoverChatwootInboxId",
921
1186
  type: "cognigyText",
922
- label: "Chatwoot Inbox Id",
923
- description: "Inbox Id in Chatwoot",
1187
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_CHATWOOT_INBOX_ID__LABEL",
1188
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_CHATWOOT_INBOX_ID__DESCRIPTION",
924
1189
  condition: {
925
1190
  key: "escalateIntentsAction",
926
1191
  value: "handover"
@@ -929,8 +1194,8 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
929
1194
  {
930
1195
  key: "escalateIntentHandoverSendTranscriptAsFirstMessage",
931
1196
  type: "toggle",
932
- label: "Salesforce Send Trascript As First Message",
933
- description: "The Salesforce receives conversation transcript as a first message.",
1197
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_SEND_TRANSCRIPT_AS_FIRST_MESSAGE__LABEL",
1198
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_SEND_TRANSCRIPT_AS_FIRST_MESSAGE__DESCRIPTION",
934
1199
  defaultValue: false,
935
1200
  condition: {
936
1201
  key: "escalateIntentsAction",
@@ -940,8 +1205,8 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
940
1205
  {
941
1206
  key: "escalateIntentsHandoverSalesforcePrechatEntities",
942
1207
  type: "json",
943
- label: "Salesforce Prechat Entities",
944
- description: "The Salesforce entity that should be used.",
1208
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_SALES_FORCE_PRECHAT_ENTITIES__LABEL",
1209
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_SALES_FORCE_PRECHAT_ENTITIES__DESCRIPTION",
945
1210
  defaultValue: "[]",
946
1211
  condition: {
947
1212
  key: "escalateIntentsAction",
@@ -951,19 +1216,61 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
951
1216
  {
952
1217
  key: "escalateIntentsHandoverSalesforcePrechatDetails",
953
1218
  type: "json",
954
- label: "Salesforce Prechat Details",
955
- description: "The details that should be displayed to the Live Chat Agent.",
1219
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_SALES_FORCE_PRECHAT_DETAILS__LABEL",
1220
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_SALES_FORCE_PRECHAT_DETAILS__DESCRIPTION",
956
1221
  defaultValue: "[]",
957
1222
  condition: {
958
1223
  key: "escalateIntentsAction",
959
1224
  value: "handover"
960
1225
  }
961
1226
  },
1227
+ {
1228
+ key: "escalateIntentsHandoverGenesysLanguage",
1229
+ type: "cognigyText",
1230
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_GENESYSY_LANGUAGE__LABEL",
1231
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_GENESYSY_LANGUAGE__DESCRIPTION",
1232
+ condition: {
1233
+ key: "escalateIntentsAction",
1234
+ value: "handover"
1235
+ }
1236
+ },
1237
+ {
1238
+ key: "escalateIntentsHandoverGenesysSkills",
1239
+ type: "cognigyTextArray",
1240
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_GENESYSY_SKILLS__LABEL",
1241
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_GENESYSY_SKILLS__DESCRIPTION",
1242
+ defaultValue: [],
1243
+ condition: {
1244
+ key: "escalateIntentsAction",
1245
+ value: "handover"
1246
+ }
1247
+ },
1248
+ {
1249
+ key: "escalateIntentsHandoverGenesysPriority",
1250
+ type: "cognigyText",
1251
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_GENESYSY_PRIORITY__LABEL",
1252
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_GENESYSY_PRIORITY__DESCRIPTION",
1253
+ condition: {
1254
+ key: "escalateIntentsAction",
1255
+ value: "handover"
1256
+ }
1257
+ },
1258
+ {
1259
+ key: "escalateIntentsHandoverGenesysCustomAttributes",
1260
+ type: "json",
1261
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_GENESYSY_CUSTOM_ATTRIBUTES__LABEL",
1262
+ defaultValue: {},
1263
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_GENESYSY_CUSTOM_ATTRIBUTES__DESCRIPTION",
1264
+ condition: {
1265
+ key: "escalateIntentsAction",
1266
+ value: "handover"
1267
+ }
1268
+ },
962
1269
  {
963
1270
  key: "escalateIntentsHandoverEightByEightChannelId",
964
1271
  type: "cognigyText",
965
- label: "8x8 Channel Id",
966
- description: "Channel Id in 8x8",
1272
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_EIGHT_BY_EIGHT_CHANNELID__LABEL",
1273
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_EIGHT_BY_EIGHT_CHANNELID__DESCRIPTION",
967
1274
  condition: {
968
1275
  key: "escalateIntentsAction",
969
1276
  value: "handover"
@@ -972,8 +1279,8 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
972
1279
  {
973
1280
  key: "escalateIntentsHandoverEightByEightQueueId",
974
1281
  type: "cognigyText",
975
- label: "8x8 Queue Id",
976
- description: "Queue Id in 8x8",
1282
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_EIGHT_BY_EIGHT_QUEUEID__LABEL",
1283
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_EIGHT_BY_EIGHT_QUEUEID__DESCRIPTION",
977
1284
  condition: {
978
1285
  key: "escalateIntentsAction",
979
1286
  value: "handover"
@@ -982,9 +1289,20 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
982
1289
  {
983
1290
  key: "escalateIntentsHandoverEightByEightJSONProps",
984
1291
  type: "json",
985
- label: "8x8 JSON Properties",
986
- description: "JSON Properties in 8x8",
987
- defaultValue: [],
1292
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_EIGHT_BY_EIGHT_JSONPROPS__LABEL",
1293
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_EIGHT_BY_EIGHT_JSONPROPS__DESCRIPTION",
1294
+ defaultValue: {
1295
+ "name": null,
1296
+ "userId": null,
1297
+ "email": null,
1298
+ "phone": null,
1299
+ "company": null,
1300
+ "caseId": null,
1301
+ "language": null,
1302
+ "additionalProperties": [
1303
+ { "key": "Key name", "value": "Value from Cognigy" }
1304
+ ]
1305
+ },
988
1306
  condition: {
989
1307
  key: "escalateIntentsAction",
990
1308
  value: "handover"
@@ -993,8 +1311,8 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
993
1311
  {
994
1312
  key: "escalateIntentsHandoverAdditionalCategoryIds",
995
1313
  type: "cognigyTextArray",
996
- label: "Additional Category Ids",
997
- description: "Additional Category Ids to be passed to Ring Central Engage handover provider",
1314
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_ADDITIONAL_CATEGORY_IDS__LABEL",
1315
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_ADDITIONAL_CATEGORY_IDS__DESCRIPTION",
998
1316
  defaultValue: [],
999
1317
  condition: {
1000
1318
  key: "escalateIntentsAction",
@@ -1004,7 +1322,7 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
1004
1322
  {
1005
1323
  key: "escalateIntentsRepromptPrevention",
1006
1324
  type: "toggle",
1007
- label: "Prevent Reprompt Message Once",
1325
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_REPROPMT_PREVENTION__LABEL",
1008
1326
  defaultValue: true,
1009
1327
  condition: {
1010
1328
  key: "escalateIntentsAction",
@@ -1014,8 +1332,8 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
1014
1332
  {
1015
1333
  key: "reconfirmationBehaviour",
1016
1334
  type: "select",
1017
- description: "How and if to reconfirm question answers",
1018
- label: "Reconfirmation Behaviour",
1335
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__RECONFIRMATION_BEHAVIOUR__DESCRIPTION",
1336
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__RECONFIRMATION_BEHAVIOUR__LABEL",
1019
1337
  defaultValue: "none",
1020
1338
  params: {
1021
1339
  options: [
@@ -1033,8 +1351,8 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
1033
1351
  {
1034
1352
  key: "reconfirmationQuestion",
1035
1353
  type: "cognigyText",
1036
- label: "Reconfirmation Question",
1037
- description: "The question to ask to reconfirm the answer",
1354
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__RECONFIRMATION_QUESTION__LABEL",
1355
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__RECONFIRMATION_QUESTION__DESCRIPTION",
1038
1356
  defaultValue: "I heard you say [ANSWER]. Is that correct?",
1039
1357
  condition: {
1040
1358
  key: "reconfirmationBehaviour",
@@ -1044,8 +1362,8 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
1044
1362
  {
1045
1363
  key: "reconfirmationQuestionReprompt",
1046
1364
  type: "cognigyText",
1047
- label: "Reconfirmation Reprompt",
1048
- description: "What to say if the reconfirmation question wasn't answered with yes or no",
1365
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__RECONFIRMATION_QUESTION_REPROPMT__LABEL",
1366
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__RECONFIRMATION_QUESTION_REPROPMT__DESCRIPTION",
1049
1367
  defaultValue: "I'm not sure I got that right.",
1050
1368
  condition: {
1051
1369
  key: "reconfirmationBehaviour",
@@ -1057,11 +1375,120 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
1057
1375
  "value": "date"
1058
1376
  }),
1059
1377
  ...(0, getRephraseWithAIFields_1.getRephraseWithAIFields)(),
1378
+ {
1379
+ key: "cleanTextDescription",
1380
+ type: "description",
1381
+ label: " ",
1382
+ params: {
1383
+ text: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__CLEAN_TEXT_DESCRIPTION__TEXT"
1384
+ }
1385
+ },
1386
+ ...(0, cleanTextUtils_1.getCleanTextFields)(),
1387
+ {
1388
+ key: "runNLUAfterCleaning",
1389
+ type: "toggle",
1390
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__RUN_NLU_AFTER_CLEANING__LABEL",
1391
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__RUN_NLU_AFTER_CLEANING__DESCRIPTION",
1392
+ defaultValue: false
1393
+ },
1394
+ {
1395
+ key: "overwrittenBaseAnswer",
1396
+ type: "cognigyText",
1397
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__OVERWRITTEN_BASE_ANSWER__LABEL",
1398
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__OVERWRITTEN_BASE_ANSWER__DESCRIPTION",
1399
+ },
1400
+ // TODO: clean solution for legacy nodes in service-resources/service-ui
1401
+ {
1402
+ // legacy - only for backwards compatibility when updating old nodes
1403
+ key: "escalateAnswersExecuteRepromptPrevention",
1404
+ type: "toggle",
1405
+ condition: {
1406
+ key: "671cc071-dd6a-4a79-b794-b2a955557fa1",
1407
+ value: "legacy"
1408
+ }
1409
+ },
1410
+ {
1411
+ // legacy - only for backwards compatibility when updating old nodes
1412
+ key: "escalateIntentsExecuteRepromptPrevention",
1413
+ type: "toggle",
1414
+ condition: {
1415
+ key: "671cc071-dd6a-4a79-b794-b2a955557fa1",
1416
+ value: "legacy"
1417
+ }
1418
+ },
1419
+ {
1420
+ // legacy - only for backwards compatibility when updating old nodes
1421
+ key: "escalateAnswersHandoverUnavailable",
1422
+ type: "toggle",
1423
+ condition: {
1424
+ key: "671cc071-dd6a-4a79-b794-b2a955557fa1",
1425
+ value: "legacy"
1426
+ },
1427
+ },
1428
+ {
1429
+ // legacy - only for backwards compatibility when updating old nodes
1430
+ key: "escalateAnswersHandoverUnsupportedChannel",
1431
+ type: "toggle",
1432
+ condition: {
1433
+ key: "671cc071-dd6a-4a79-b794-b2a955557fa1",
1434
+ value: "legacy"
1435
+ },
1436
+ },
1437
+ {
1438
+ // legacy - only for backwards compatibility when updating old nodes
1439
+ key: "escalateIntentsHandoverUnavailable",
1440
+ type: "toggle",
1441
+ condition: {
1442
+ key: "671cc071-dd6a-4a79-b794-b2a955557fa1",
1443
+ value: "legacy"
1444
+ },
1445
+ },
1446
+ {
1447
+ // legacy - only for backwards compatibility when updating old nodes
1448
+ key: "escalateIntentsHandoverUnsupportedChannel",
1449
+ type: "toggle",
1450
+ condition: {
1451
+ key: "671cc071-dd6a-4a79-b794-b2a955557fa1",
1452
+ value: "legacy"
1453
+ },
1454
+ },
1455
+ {
1456
+ // legacy - only for backwards compatibility when updating old nodes
1457
+ key: "escaleAnswersHandoverEightByEightChannelId",
1458
+ type: "cognigyText",
1459
+ condition: {
1460
+ key: "671cc071-dd6a-4a79-b794-b2a955557fa1",
1461
+ value: "legacy"
1462
+ }
1463
+ },
1464
+ {
1465
+ key: "handoverOutput",
1466
+ type: "select",
1467
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__HANDOVER_OUTPUT__LABEL",
1468
+ description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__HANDOVER_OUTPUT__DESCRIPTION",
1469
+ defaultValue: "userAndAgent",
1470
+ params: {
1471
+ options: [
1472
+ {
1473
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__HANDOVER_OUTPUT__OPTIONS__USER_AGENT__LABEL",
1474
+ value: "userAndAgent"
1475
+ },
1476
+ {
1477
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__HANDOVER_OUTPUT__OPTIONS__USER_ONLY__LABEL",
1478
+ value: "userOnly"
1479
+ },
1480
+ {
1481
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__HANDOVER_OUTPUT__OPTIONS__AGENT_ONLY__LABEL",
1482
+ value: "agentOnly"
1483
+ },
1484
+ ],
1485
+ },
1486
+ },
1060
1487
  ].filter(field => !!field),
1061
1488
  sections: [
1062
1489
  {
1063
1490
  key: "context",
1064
- label: "Result Storage",
1491
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__SECTIONS__CONTEXT__LABEL",
1065
1492
  defaultCollapsed: true,
1066
1493
  fields: [
1067
1494
  "storeResultInContext",
@@ -1073,9 +1500,18 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
1073
1500
  },
1074
1501
  {
1075
1502
  key: "reprompt",
1076
- label: "Reprompt Options",
1503
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__SECTIONS__REPROMPT__LABEL",
1077
1504
  defaultCollapsed: true,
1078
1505
  fields: [
1506
+ "repromptType",
1507
+ "repromptLLMProvider",
1508
+ "repromptLLMPrompt",
1509
+ "repromptLLMTurns",
1510
+ "repromptSay",
1511
+ "repromptFlowNode",
1512
+ "repromptParseIntents",
1513
+ "repromptParseKeyphrases",
1514
+ "repromptAbsorbContext",
1079
1515
  "validationMessage",
1080
1516
  "validationRepeat",
1081
1517
  "repromptCondition",
@@ -1084,7 +1520,7 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
1084
1520
  },
1085
1521
  {
1086
1522
  key: "reconfirmation",
1087
- label: "Reconfirmation Options",
1523
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__SECTIONS__RECONFIRMATION__LABEL",
1088
1524
  defaultCollapsed: true,
1089
1525
  fields: [
1090
1526
  "reconfirmationBehaviour",
@@ -1094,7 +1530,7 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
1094
1530
  },
1095
1531
  {
1096
1532
  key: "escalateIntents",
1097
- label: "Escalation - Intents",
1533
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__SECTIONS__ESCALATE_INTENTS__LABEL",
1098
1534
  defaultCollapsed: true,
1099
1535
  fields: [
1100
1536
  "escalateIntentsAction",
@@ -1113,22 +1549,28 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
1113
1549
  "escalateIntentsHandoverResolveBehavior",
1114
1550
  "escalateIntentsHandoverSendResolveEvent",
1115
1551
  "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",
1552
+ process.env.FEATURE_USE_COGNIGY_LIVE_AGENT && constants_1.COGNIGY_LIVE_AGENT_DESCRIPTOR_FIELDS.ESCALATE_INTENTS_HANDOVER_LIVE_AGENT_INBOX_ID,
1553
+ process.env.FEATURE_USE_COGNIGY_LIVE_AGENT && constants_1.COGNIGY_LIVE_AGENT_DESCRIPTOR_FIELDS.ESCALATE_INTENTS_AGENT_ASSIST_INIT_MESSAGE,
1554
+ process.env.FEATURE_USE_COGNIGY_LIVE_AGENT && constants_1.COGNIGY_LIVE_AGENT_DESCRIPTOR_FIELDS.ESCALATE_INTENTS_ALLOW_AGENT_INJECT,
1119
1555
  "escalateIntentsHandoverChatwootInboxId",
1120
1556
  "escalateIntentHandoverSendTranscriptAsFirstMessage",
1121
1557
  "escalateIntentsHandoverSalesforcePrechatEntities",
1122
1558
  "escalateIntentsHandoverSalesforcePrechatDetails",
1559
+ "escalateIntentsHandoverGenesysLanguage",
1560
+ "escalateIntentsHandoverGenesysSkills",
1561
+ "escalateIntentsHandoverGenesysPriority",
1562
+ "escalateIntentsHandoverGenesysCustomAttributes",
1123
1563
  "escalateIntentsHandoverEightByEightChannelId",
1124
1564
  "escalateIntentsHandoverEightByEightQueueId",
1125
1565
  "escalateIntentsHandoverEightByEightJSONProps",
1126
- "escalateIntentsRepromptPrevention"
1566
+ "escalateIntentsRepromptPrevention",
1567
+ "escalateIntentsSendOnActiveEvent",
1568
+ "escalateIntentsSendOnQueueEvent",
1127
1569
  ].filter(field => !!field)
1128
1570
  },
1129
1571
  {
1130
1572
  key: "escalateAnswers",
1131
- label: "Escalation - Wrong Answers",
1573
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__SECTIONS__ESCALATE_ANSWERS__LABEL",
1132
1574
  defaultCollapsed: true,
1133
1575
  fields: [
1134
1576
  "escalateAnswersAction",
@@ -1146,23 +1588,29 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
1146
1588
  "escalateAnswersHandoverResolveBehavior",
1147
1589
  "escalateAnswersHandoverSendResolveEvent",
1148
1590
  "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",
1591
+ process.env.FEATURE_USE_COGNIGY_LIVE_AGENT && constants_1.COGNIGY_LIVE_AGENT_DESCRIPTOR_FIELDS.ESCALATE_ANSWERS_HANDOVER_LIVE_AGENT_INBOX_ID,
1592
+ process.env.FEATURE_USE_COGNIGY_LIVE_AGENT && constants_1.COGNIGY_LIVE_AGENT_DESCRIPTOR_FIELDS.ESCALATE_ANSWERS_AGENT_ASSIST_INIT_MESSAGE,
1593
+ process.env.FEATURE_USE_COGNIGY_LIVE_AGENT && constants_1.COGNIGY_LIVE_AGENT_DESCRIPTOR_FIELDS.ESCALATE_ANSWERS_ALLOW_AGENT_INJECT,
1152
1594
  "escalateAnswersHandoverChatwootInboxId",
1153
1595
  "escalateAnswersHandoverSendTranscriptAsFirstMessage",
1154
1596
  "escalateAnswersHandoverSalesforcePrechatEntities",
1155
1597
  "escalateAnswersHandoverSalesforcePrechatDetails",
1598
+ "escalateAnswersHandoverGenesysLanguage",
1599
+ "escalateAnswersHandoverGenesysSkills",
1600
+ "escalateAnswersHandoverGenesysPriority",
1601
+ "escalateAnswersHandoverGenesysCustomAttributes",
1156
1602
  "escalateAnswersHandoverEightByEightChannelId",
1157
1603
  "escalateAnswersHandoverEightByEightQueueId",
1158
1604
  "escalateAnswersHandoverEightByEightJSONProps",
1159
1605
  "escalateAnswersRepromptPrevention",
1160
1606
  "escalateAnswersOnce",
1607
+ "escalateAnswersSendOnActiveEvent",
1608
+ "escalateAnswersSendOnQueueEvent",
1161
1609
  ].filter(field => !!field)
1162
1610
  },
1163
1611
  {
1164
1612
  key: "advanced",
1165
- label: "Advanced",
1613
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__SECTIONS__ADVANCED__LABEL",
1166
1614
  defaultCollapsed: true,
1167
1615
  fields: [
1168
1616
  "storeDetailedResults",
@@ -1170,9 +1618,41 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
1170
1618
  "onlyAcceptEscalationIntents",
1171
1619
  "additionalValidation",
1172
1620
  "resultLocation",
1173
- "maxExecutionDiff",
1621
+ "maxExecutionDiff"
1174
1622
  ]
1175
1623
  },
1624
+ {
1625
+ key: "handoverSettings",
1626
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__SECTIONS__HANDOVER_SETTINGS__LABEL",
1627
+ defaultCollapsed: true,
1628
+ fields: [
1629
+ "handoverOutput"
1630
+ ]
1631
+ },
1632
+ {
1633
+ key: "preProcessAnswerText",
1634
+ label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__SECTIONS__PREPROCESS_ANSWER_TEXT__LABEL",
1635
+ defaultCollapsed: true,
1636
+ fields: [
1637
+ "overwrittenBaseAnswer",
1638
+ "cleanTextDescription",
1639
+ "cleanDisallowedSymbols",
1640
+ "additionalAllowedCharacters",
1641
+ "additionalMappedSymbols",
1642
+ "resolveSpelledOutNumbers",
1643
+ "resolvePhoneticAlphabet",
1644
+ "additionalPhoneticAlphabet",
1645
+ "replaceSpecialWords",
1646
+ "additionalSpecialPhrases",
1647
+ "resolveSpelledOutAlphabet",
1648
+ "resolvePhoneticCounters",
1649
+ "contractSingleCharacters",
1650
+ "contractNumberGroups",
1651
+ "trimResult",
1652
+ "runNLUAfterCleaning",
1653
+ "cleanTextLocale"
1654
+ ],
1655
+ },
1176
1656
  ...(0, datepickerUtils_1.getDatePickerSections)("Datepicker - ", {
1177
1657
  "key": "type",
1178
1658
  "value": "date"
@@ -1199,6 +1679,8 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
1199
1679
  { type: "section", key: "datepicker_enableDisable" },
1200
1680
  { type: "section", key: "datepicker_advanced" },
1201
1681
  { type: "section", key: "aiEnhancedOutput" },
1682
+ { type: "section", key: "handoverSettings" },
1683
+ { type: "section", key: "preProcessAnswerText" }
1202
1684
  ],
1203
1685
  preview: {
1204
1686
  key: "say",
@@ -1207,15 +1689,15 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
1207
1689
  tags: ["basic", "message", "nlu"],
1208
1690
  //#endregion DescriptorFields
1209
1691
  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;
1692
+ var _a, _b, _c;
1693
+ const { say, type, validationMessage, repromptLLMProvider, repromptType, repromptLLMPrompt, repromptLLMTurns, repromptSay, repromptFlowNode, repromptParseIntents, repromptParseKeyphrases, repromptAbsorbContext, 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
1694
  const { input, context, profile, api } = cognigy;
1213
1695
  const rephraseWithAIParams = {
1214
1696
  generativeAI_rephraseOutputMode: config.generativeAI_rephraseOutputMode,
1215
1697
  generativeAI_temperature: config.generativeAI_temperature,
1216
1698
  generativeAI_amountOfLastUserInputs: config.generativeAI_amountOfLastUserInputs,
1217
1699
  generativeAI_customInputs: config.generativeAI_customInputs,
1218
- promtType: undefined,
1700
+ promptType: undefined,
1219
1701
  questionType: undefined,
1220
1702
  question: undefined,
1221
1703
  answer: undefined,
@@ -1227,9 +1709,51 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
1227
1709
  (0, resetNodeState_1.resetNodeState)(api, nodeId);
1228
1710
  return;
1229
1711
  }
1712
+ // check if any text cleaning option was activated
1713
+ const textCleaningActive = cleanDisallowedSymbols || resolveSpelledOutNumbers || resolvePhoneticAlphabet || replaceSpecialWords || resolveSpelledOutAlphabet || resolvePhoneticCounters || contractSingleCharacters || contractNumberGroups || trimResult;
1714
+ let overwriteAnswer;
1715
+ if (textCleaningActive && (input.text || overwrittenBaseAnswer)) {
1716
+ const options = {
1717
+ cleanDisallowedSymbols,
1718
+ contractSingleCharacters,
1719
+ replaceSpecialPhrases: replaceSpecialWords,
1720
+ replaceSpecialWords,
1721
+ resolveSpelledOutNumbers,
1722
+ resolvePhoneticAlphabet,
1723
+ resolvePhoneticCounters,
1724
+ resolveSpelledOutAlphabet,
1725
+ contractNumberGroups,
1726
+ trimResult
1727
+ };
1728
+ // set locale for CleanText class
1729
+ // Fallback is always "en"
1730
+ let localeToUse = "en";
1731
+ if (!cleanTextLocale || cleanTextLocale === "infer") {
1732
+ const flowLocale = (_b = input === null || input === void 0 ? void 0 : input.language) === null || _b === void 0 ? void 0 : _b.substring(0, 2);
1733
+ if (flowLocale === "en" || flowLocale === "de") {
1734
+ localeToUse = flowLocale;
1735
+ }
1736
+ }
1737
+ else {
1738
+ localeToUse = cleanTextLocale;
1739
+ }
1740
+ overwriteAnswer = {
1741
+ "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)
1742
+ };
1743
+ if (runNLUAfterCleaning) {
1744
+ const cleanedAnswer = overwriteAnswer.text;
1745
+ overwriteAnswer = await api.executeCognigyNLU(overwriteAnswer.text, input.data, input.inputId, { parseIntents: true, parseSlots: true, parseSystemSlots: true, findType: true });
1746
+ overwriteAnswer.text = cleanedAnswer;
1747
+ }
1748
+ }
1749
+ else if (overwrittenBaseAnswer) {
1750
+ // if only overwrittenBaseAnswer was specified, copy the input and overwrite the text property only
1751
+ overwriteAnswer = JSON.parse(JSON.stringify(input));
1752
+ overwriteAnswer.text = overwrittenBaseAnswer;
1753
+ }
1230
1754
  // if we're in a subsequent execution or we want to parse results
1231
1755
  // immediately on entry, continue with evaluation
1232
- let result = (0, evaluateQuestionAnswer_1.evaluateQuestionAnswer)({ cognigy, config });
1756
+ let result = (0, evaluateQuestionAnswer_1.evaluateQuestionAnswer)({ cognigy, config }, overwriteAnswer);
1233
1757
  // Verify that answer is valid based on some other conditions defined in the function
1234
1758
  const isValid = (0, validateQuestionAnswer_1.validateQuestionAnswer)(cognigy, config);
1235
1759
  // compute how often this node was hit
@@ -1301,11 +1825,11 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
1301
1825
  }
1302
1826
  // output reconfirmation reprompt
1303
1827
  if (reconfirmationQuestionReprompt) {
1304
- await say_1.SAY.function({ cognigy, childConfigs: [], nodeId, organisationId, config: { say: { type: "text", text: [reconfirmationQuestionReprompt] } } });
1828
+ await say_1.SAY.function({ cognigy, childConfigs: [], nodeId, organisationId, config: { handoverOutput, say: { type: "text", text: [reconfirmationQuestionReprompt] } } });
1305
1829
  }
1306
1830
  // output reconfirmationQuestion
1307
1831
  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)] } } });
1832
+ await say_1.SAY.function({ cognigy, childConfigs: [], nodeId, organisationId, config: { handoverOutput, say: { type: "text", text: [reconfirmationQuestion.replace("[ANSWER]", tentativeAnswerShortform)] } } });
1309
1833
  // set myself as next node and stop
1310
1834
  api.setNextNode(nodeId);
1311
1835
  api.stopExecution();
@@ -1368,7 +1892,7 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
1368
1892
  // #region 2 FirstTimeNodeIsHit
1369
1893
  // if it's the first execution and you don't force evaluation on first execution, ask the question
1370
1894
  if (isFirstExecution && !parseResultOnEntry) {
1371
- rephraseWithAIParams.promtType = "question";
1895
+ rephraseWithAIParams.promptType = "question";
1372
1896
  rephraseWithAIParams.questionType = config.type;
1373
1897
  await say_1.SAY.function({ cognigy, childConfigs: [], nodeId, organisationId, config: Object.assign({ say }, rephraseWithAIParams) });
1374
1898
  if (config.type === "date" && !config.datepicker_hidePicker) {
@@ -1408,7 +1932,7 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
1408
1932
  // remember a shortform of the given answer in the activeQuestion object
1409
1933
  activeQuestion.tentativeAnswerShortform = (0, generateAnswerShortForm_1.generateAnswerShortForm)(type, result, cognigy.input.text);
1410
1934
  // Output reconfirmationQuestion
1411
- await say_1.SAY.function({ cognigy, childConfigs: [], nodeId, organisationId, config: { say: { type: "text", text: [reconfirmationQuestion.replace("[ANSWER]", activeQuestion.tentativeAnswerShortform)] } } });
1935
+ await say_1.SAY.function({ cognigy, childConfigs: [], nodeId, organisationId, config: { handoverOutput, say: { type: "text", text: [reconfirmationQuestion.replace("[ANSWER]", activeQuestion.tentativeAnswerShortform)] } } });
1412
1936
  // remember that we are in reconfirmation mode and stop
1413
1937
  api.setSystemContext("reconfirmationQuestionInProgress", true);
1414
1938
  // we need to store the input, to be able to restore it afterwards
@@ -1531,7 +2055,7 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
1531
2055
  childConfigs: [],
1532
2056
  nodeId,
1533
2057
  organisationId,
1534
- config: { say: escalateIntentsMessage }
2058
+ config: { handoverOutput, say: escalateIntentsMessage }
1535
2059
  });
1536
2060
  if (escalateIntentsRepromptPrevention) {
1537
2061
  sayReprompt = false;
@@ -1563,6 +2087,10 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
1563
2087
  sendTranscriptAsFirstMessage: escalateIntentHandoverSendTranscriptAsFirstMessage,
1564
2088
  salesforcePrechatEntities: escalateIntentsHandoverSalesforcePrechatEntities,
1565
2089
  salesforcePrechatDetails: escalateIntentsHandoverSalesforcePrechatDetails,
2090
+ genesysLanguage: escalateIntentsHandoverGenesysLanguage,
2091
+ genesysSkills: escalateIntentsHandoverGenesysSkills,
2092
+ genesysPriority: escalateIntentsHandoverGenesysPriority,
2093
+ genesysCustomAttributes: escalateIntentsHandoverGenesysCustomAttributes || [],
1566
2094
  eightByEightChannelId: escalateIntentsHandoverEightByEightChannelId,
1567
2095
  eightByEightQueueId: escalateIntentsHandoverEightByEightQueueId,
1568
2096
  eightByEightJSONProps: escalateIntentsHandoverEightByEightJSONProps || [],
@@ -1570,6 +2098,8 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
1570
2098
  resolveBehavior: escalateIntentsHandoverResolveBehavior,
1571
2099
  agentAssistInitMessage: escalateIntentsAgentAssistInitMessage,
1572
2100
  allowAgentInject: escalateIntentsAllowAgentInject,
2101
+ sendOnActiveEvent: escalateIntentsSendOnActiveEvent,
2102
+ sendOnQueueEvent: escalateIntentsSendOnQueueEvent,
1573
2103
  },
1574
2104
  nodeType: "question",
1575
2105
  });
@@ -1674,7 +2204,7 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
1674
2204
  childConfigs: [],
1675
2205
  nodeId,
1676
2206
  organisationId,
1677
- config: { say: escalateAnswersMessage }
2207
+ config: { handoverOutput, say: escalateAnswersMessage }
1678
2208
  });
1679
2209
  if (escalateAnswersRepromptPrevention) {
1680
2210
  sayReprompt = false;
@@ -1706,6 +2236,10 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
1706
2236
  sendTranscriptAsFirstMessage: escalateAnswersHandoverSendTranscriptAsFirstMessage,
1707
2237
  salesforcePrechatEntities: escalateAnswersHandoverSalesforcePrechatEntities,
1708
2238
  salesforcePrechatDetails: escalateAnswersHandoverSalesforcePrechatDetails,
2239
+ genesysLanguage: escalateAnswersHandoverGenesysLanguage,
2240
+ genesysSkills: escalateAnswersHandoverGenesysSkills,
2241
+ genesysPriority: escalateAnswersHandoverGenesysPriority,
2242
+ genesysCustomAttributes: escalateAnswersHandoverGenesysCustomAttributes,
1709
2243
  eightByEightChannelId: escalateAnswersHandoverEightByEightChannelId,
1710
2244
  eightByEightQueueId: escalateAnswersHandoverEightByEightQueueId,
1711
2245
  eightByEightJSONProps: escalateAnswersHandoverEightByEightJSONProps || [],
@@ -1713,6 +2247,8 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
1713
2247
  resolveBehavior: escalateAnswersHandoverResolveBehavior,
1714
2248
  agentAssistInitMessage: escalateAnswersAgentAssistInitMessage,
1715
2249
  allowAgentInject: escalateAnswersAllowAgentInject,
2250
+ sendOnActiveEvent: escalateAnswersSendOnActiveEvent,
2251
+ sendOnQueueEvent: escalateAnswersSendOnQueueEvent,
1716
2252
  },
1717
2253
  nodeType: "question",
1718
2254
  });
@@ -1731,17 +2267,67 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
1731
2267
  if (skipRepromptOnIntent && cognigy.input.intent) {
1732
2268
  sayReprompt = false;
1733
2269
  }
1734
- if (validationMessage && !isFirstExecution && sayReprompt) {
2270
+ // We will only output a reprompt if the user is not in the first execution
2271
+ // and no skip condition is true
2272
+ if ((validationMessage || repromptType) && !isFirstExecution && sayReprompt) {
1735
2273
  activeQuestion.repromptCount++;
1736
2274
  /* Output Reprompt Message */
1737
- rephraseWithAIParams.promtType = "reprompt";
2275
+ rephraseWithAIParams.promptType = "reprompt";
1738
2276
  rephraseWithAIParams.questionType = config.type;
1739
2277
  rephraseWithAIParams.question = say.text[0];
1740
2278
  rephraseWithAIParams.answer = input.text;
1741
- await say_1.SAY.function({ cognigy, childConfigs: [], nodeId, organisationId, config: Object.assign({ say: { type: "text", text: [validationMessage] } }, rephraseWithAIParams) });
2279
+ if (sayReprompt) {
2280
+ switch (repromptType) {
2281
+ case "say":
2282
+ await say_1.SAY.function(Object.assign({ cognigy, childConfigs: [], nodeId, organisationId, config: { say: repromptSay } }, rephraseWithAIParams));
2283
+ break;
2284
+ case "execute":
2285
+ // if a question reprompt is set to execute flow and we have just executed
2286
+ // and come back here, we want to skip the reprompt
2287
+ if (api.getSystemContext(`lastReprompt-${nodeId}`) !== cognigy.input.execution) {
2288
+ // set myself as next Node on the stack, so we can return to me
2289
+ api.setNextNode(nodeId);
2290
+ // remember when this escalation happened
2291
+ api.setSystemContext(`lastReprompt-${nodeId}`, cognigy.input.execution);
2292
+ await executeFlow_1.EXECUTE_FLOW.function({
2293
+ cognigy,
2294
+ childConfigs: [],
2295
+ nodeId,
2296
+ organisationId,
2297
+ config: {
2298
+ flowNode: repromptFlowNode,
2299
+ absorbContext: repromptAbsorbContext,
2300
+ parseIntents: repromptParseIntents,
2301
+ parseKeyphrases: repromptParseKeyphrases
2302
+ }
2303
+ });
2304
+ return;
2305
+ }
2306
+ else {
2307
+ api.deleteSystemContext(`lastReprompt-${nodeId}`);
2308
+ }
2309
+ break;
2310
+ case "llm":
2311
+ const data = {
2312
+ prompt: "",
2313
+ chat: (0, prompt_1.createLastConversationChatObject)(cognigy.lastConversationEntries, repromptLLMPrompt, repromptLLMTurns),
2314
+ temperature: 0.7,
2315
+ timeoutInMs: 5000,
2316
+ useCase: "promptNode",
2317
+ };
2318
+ if (repromptLLMProvider && repromptLLMProvider !== "default") {
2319
+ data["llmProviderReferenceId"] = repromptLLMProvider;
2320
+ }
2321
+ const repromptMessage = await api.runGenerativeAIPrompt(data, "gptPromptNode");
2322
+ await say_1.SAY.function({ cognigy, childConfigs: [], nodeId, organisationId, config: Object.assign({ handoverOutput, say: { type: "text", text: [repromptMessage] } }, rephraseWithAIParams) });
2323
+ break;
2324
+ default: // this is also "text"
2325
+ await say_1.SAY.function({ cognigy, childConfigs: [], nodeId, organisationId, config: Object.assign({ handoverOutput, say: { type: "text", text: [validationMessage] } }, rephraseWithAIParams) });
2326
+ }
2327
+ }
1742
2328
  /* If repeat toggle is on, also output question (and maybe datepicker) again */
1743
2329
  if (validationRepeat) {
1744
- rephraseWithAIParams.promtType = "question";
2330
+ rephraseWithAIParams.promptType = "question";
1745
2331
  rephraseWithAIParams.questionType = config.type;
1746
2332
  await say_1.SAY.function({
1747
2333
  cognigy,
@@ -1757,7 +2343,7 @@ exports.QUESTION = (0, createNodeDescriptor_1.createNodeDescriptor)({
1757
2343
  }
1758
2344
  else {
1759
2345
  // output actual question
1760
- rephraseWithAIParams.promtType = "question";
2346
+ rephraseWithAIParams.promptType = "question";
1761
2347
  rephraseWithAIParams.questionType = config.type;
1762
2348
  await say_1.SAY.function({
1763
2349
  cognigy,