@cognigy/rest-api-client 0.13.2 → 0.15.0

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