@cognigy/rest-api-client 0.17.0 → 0.19.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 (191) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/build/GenericTusFn.js +6 -1
  3. package/build/GenericUploadFn.js +3 -5
  4. package/build/apigroups/AdministrationAPIGroup_2_0.js +3 -1
  5. package/build/apigroups/MetricsAPIGroup_2_0.js +5 -0
  6. package/build/apigroups/ResourcesAPIGroup_2_0.js +21 -7
  7. package/build/connector/AxiosAdapter.js +35 -15
  8. package/build/shared/charts/createNodeDescriptor.js +5 -5
  9. package/build/shared/charts/descriptors/agentAssist/constants/constants.js +16 -1
  10. package/build/shared/charts/descriptors/agentAssist/helpers/agentAssistTranslator.helper.js +19 -0
  11. package/build/shared/charts/descriptors/agentAssist/helpers/determineMetadata.js +15 -0
  12. package/build/shared/charts/descriptors/agentAssist/helpers/getFontSizeFieldOptions.js +84 -0
  13. package/build/shared/charts/descriptors/agentAssist/helpers/getLanguageName.helper.js +33 -0
  14. package/build/shared/charts/descriptors/agentAssist/helpers/knowledgeSearch/answerExtraction.helper.js +59 -0
  15. package/build/shared/charts/descriptors/agentAssist/helpers/knowledgeSearch/configValidator.helper.js +20 -0
  16. package/build/shared/charts/descriptors/agentAssist/helpers/knowledgeSearch/errorHandler.helper.js +64 -0
  17. package/build/shared/charts/descriptors/agentAssist/helpers/knowledgeSearch/followUpDetection.helper.js +72 -0
  18. package/build/shared/charts/descriptors/agentAssist/helpers/knowledgeSearch/knowledgeSearch.helper.js +58 -0
  19. package/build/shared/charts/descriptors/agentAssist/helpers/sentiment.helper.js +7 -13
  20. package/build/shared/charts/descriptors/agentAssist/htmlTemplates/identityAssistTemplate.js +17 -18
  21. package/build/shared/charts/descriptors/agentAssist/htmlTemplates/knowledgeAssistTemplate.js +330 -153
  22. package/build/shared/charts/descriptors/agentAssist/htmlTemplates/nextActionWidgetTemplate.js +212 -80
  23. package/build/shared/charts/descriptors/agentAssist/htmlTemplates/sentimentAnalysisTemplate.js +11 -6
  24. package/build/shared/charts/descriptors/agentAssist/htmlTemplates/transcriptAssistTemplate.js +15 -13
  25. package/build/shared/charts/descriptors/agentAssist/identityAssist.js +88 -15
  26. package/build/shared/charts/descriptors/agentAssist/knowledgeAssist.js +192 -327
  27. package/build/shared/charts/descriptors/agentAssist/locales/cs.locale.js +11 -0
  28. package/build/shared/charts/descriptors/agentAssist/locales/de.locale.js +11 -0
  29. package/build/shared/charts/descriptors/agentAssist/locales/en.locale.js +11 -0
  30. package/build/shared/charts/descriptors/agentAssist/locales/es.locale.js +11 -0
  31. package/build/shared/charts/descriptors/agentAssist/locales/fr.locale.js +11 -0
  32. package/build/shared/charts/descriptors/agentAssist/locales/index.js +22 -0
  33. package/build/shared/charts/descriptors/agentAssist/locales/ja.locale.js +11 -0
  34. package/build/shared/charts/descriptors/agentAssist/locales/ko.locale.js +11 -0
  35. package/build/shared/charts/descriptors/agentAssist/locales/pt.locale.js +11 -0
  36. package/build/shared/charts/descriptors/agentAssist/nextActionAssist.js +484 -10
  37. package/build/shared/charts/descriptors/agentAssist/sentimentAssist.js +32 -9
  38. package/build/shared/charts/descriptors/agentAssist/setAdaptiveCardTile.js +2 -0
  39. package/build/shared/charts/descriptors/agentAssist/setAgentAssistGrid.js +2 -1
  40. package/build/shared/charts/descriptors/agentAssist/setHtmlTile.js +5 -3
  41. package/build/shared/charts/descriptors/agentAssist/setIframeTile.js +5 -3
  42. package/build/shared/charts/descriptors/agentAssist/setSecureFormsTile.js +2 -2
  43. package/build/shared/charts/descriptors/agentAssist/transcriptAssist.js +42 -3
  44. package/build/shared/charts/descriptors/analytics/activateProfile.js +1 -0
  45. package/build/shared/charts/descriptors/analytics/blindMode.js +2 -0
  46. package/build/shared/charts/descriptors/analytics/completeGoal.js +1 -0
  47. package/build/shared/charts/descriptors/analytics/deactivateProfile.js +1 -0
  48. package/build/shared/charts/descriptors/analytics/deleteProfile.js +1 -0
  49. package/build/shared/charts/descriptors/analytics/index.js +3 -1
  50. package/build/shared/charts/descriptors/analytics/mergeProfile.js +1 -0
  51. package/build/shared/charts/descriptors/analytics/overwriteAnalytics.js +9 -0
  52. package/build/shared/charts/descriptors/analytics/requestRating.js +56 -2
  53. package/build/shared/charts/descriptors/analytics/setRating.js +4 -2
  54. package/build/shared/charts/descriptors/analytics/trackMilestone.js +95 -0
  55. package/build/shared/charts/descriptors/analytics/updateProfile.js +1 -0
  56. package/build/shared/charts/descriptors/apps/initAppSession.js +1 -0
  57. package/build/shared/charts/descriptors/apps/setAdaptiveCardAppState.js +35 -10
  58. package/build/shared/charts/descriptors/apps/setHtmlAppState.js +25 -2
  59. package/build/shared/charts/descriptors/apps/utils/getXAppsOverlaySettings.js +54 -0
  60. package/build/shared/charts/descriptors/connectionNodes/documentParserProviders/azureAIDocumentIntelligenceConnection.js +12 -0
  61. package/build/shared/charts/descriptors/connectionNodes/documentParserProviders/index.js +13 -0
  62. package/build/shared/charts/descriptors/connectionNodes/generativeAIProviders/awsBedrockProviderConnection.js +12 -0
  63. package/build/shared/charts/descriptors/connectionNodes/generativeAIProviders/azureOpenAIProviderConnection.js +4 -3
  64. package/build/shared/charts/descriptors/connectionNodes/generativeAIProviders/azureOpenAIProviderConnectionV2.js +3 -3
  65. package/build/shared/charts/descriptors/connectionNodes/generativeAIProviders/azureOpenAIProviderOauth2Connection.js +14 -0
  66. package/build/shared/charts/descriptors/connectionNodes/generativeAIProviders/index.js +16 -8
  67. package/build/shared/charts/descriptors/connectionNodes/generativeAIProviders/openAIProviderConnection.js +3 -3
  68. package/build/shared/charts/descriptors/data/addToContext.js +7 -0
  69. package/build/shared/charts/descriptors/data/copyDataToContext.js +3 -0
  70. package/build/shared/charts/descriptors/data/copySlotsToContext.js +3 -0
  71. package/build/shared/charts/descriptors/data/debugMessage.js +73 -0
  72. package/build/shared/charts/descriptors/data/index.js +3 -1
  73. package/build/shared/charts/descriptors/data/removeFromContext.js +9 -1
  74. package/build/shared/charts/descriptors/data/resetContext.js +1 -0
  75. package/build/shared/charts/descriptors/index.js +8 -4
  76. package/build/shared/charts/descriptors/knowledgeSearch/searchExtractOutput.js +36 -11
  77. package/build/shared/charts/descriptors/logic/resetState.js +1 -0
  78. package/build/shared/charts/descriptors/logic/setState.js +2 -1
  79. package/build/shared/charts/descriptors/logic/setTranslation.js +3 -1
  80. package/build/shared/charts/descriptors/logic/switchLocale.js +1 -0
  81. package/build/shared/charts/descriptors/logic/think.js +3 -1
  82. package/build/shared/charts/descriptors/logic/thinkV2.js +2 -0
  83. package/build/shared/charts/descriptors/message/question/optionalQuestion.js +1 -1
  84. package/build/shared/charts/descriptors/message/question/question.js +173 -7
  85. package/build/shared/charts/descriptors/message/question/utils/evaluateQuestionAnswer.js +44 -3
  86. package/build/shared/charts/descriptors/message/question/utils/validateQuestionAnswer.js +4 -2
  87. package/build/shared/charts/descriptors/nlu/cleanText.js +1 -0
  88. package/build/shared/charts/descriptors/nlu/fuzzySearch.js +23 -1
  89. package/build/shared/charts/descriptors/nlu/generativeSlotFiller/prompt.js +45 -19
  90. package/build/shared/charts/descriptors/nlu/index.js +1 -3
  91. package/build/shared/charts/descriptors/service/GPTPrompt.js +362 -29
  92. package/build/shared/charts/descriptors/service/LLMEntityExtract.js +283 -0
  93. package/build/shared/charts/descriptors/service/handoverV2.js +84 -1
  94. package/build/shared/charts/descriptors/service/httpRequest.js +68 -3
  95. package/build/shared/charts/descriptors/service/index.js +3 -1
  96. package/build/shared/charts/descriptors/voice/mappers/setSessionConfig.mapper.js +110 -27
  97. package/build/shared/charts/descriptors/voice/mappers/transfer.mapper.js +4 -4
  98. package/build/shared/charts/descriptors/voice/nodes/bargeIn.js +2 -0
  99. package/build/shared/charts/descriptors/voice/nodes/continuousAsr.js +2 -0
  100. package/build/shared/charts/descriptors/voice/nodes/dtmf.js +2 -0
  101. package/build/shared/charts/descriptors/voice/nodes/muteSpeechInput.js +1 -0
  102. package/build/shared/charts/descriptors/voice/nodes/noUserInput.js +2 -0
  103. package/build/shared/charts/descriptors/voice/nodes/play.js +8 -1
  104. package/build/shared/charts/descriptors/voice/nodes/sessionSpeechParameters.js +46 -45
  105. package/build/shared/charts/descriptors/voice/nodes/transfer.js +2 -0
  106. package/build/shared/charts/descriptors/voicegateway2/nodes/dtmf.js +2 -0
  107. package/build/shared/charts/descriptors/voicegateway2/nodes/hangup.js +2 -0
  108. package/build/shared/charts/descriptors/voicegateway2/nodes/muteSpeechInput.js +3 -0
  109. package/build/shared/charts/descriptors/voicegateway2/nodes/play.js +1 -1
  110. package/build/shared/charts/descriptors/voicegateway2/nodes/record.js +1 -0
  111. package/build/shared/charts/descriptors/voicegateway2/nodes/refer.js +1 -0
  112. package/build/shared/charts/descriptors/voicegateway2/nodes/sendMetadata.js +1 -0
  113. package/build/shared/charts/descriptors/voicegateway2/nodes/setSessionConfig.js +329 -47
  114. package/build/shared/charts/descriptors/voicegateway2/nodes/transfer.js +27 -31
  115. package/build/shared/charts/descriptors/voicegateway2/utils/helper.js +2 -2
  116. package/build/shared/charts/helpers/generativeAI/generativeAIPrompts.js +55 -0
  117. package/build/shared/charts/helpers/generativeAI/rephraseSentenceWithAi.js +4 -2
  118. package/build/shared/constants.js +10 -1
  119. package/build/shared/handoverClients/interfaces/THandoverEventType.js +1 -0
  120. package/build/shared/helper/logFullConfigToDebugMode.js +30 -0
  121. package/build/shared/helper/nlu/textCleaner.js +3 -1
  122. package/build/shared/interfaces/IOrganisation.js +1 -0
  123. package/build/shared/interfaces/IProfile.js +1 -0
  124. package/build/shared/interfaces/IProfileSchema.js +3 -0
  125. package/build/shared/interfaces/analytics/IAnalyticsSourceData.js +20 -20
  126. package/build/shared/interfaces/{restAPI/resources/journey/v2.0/IJourneyProgress_2_0.js → analytics/IMilestoneAnalytics.js} +1 -1
  127. package/build/shared/interfaces/{restAPI/resources/journey/v2.0/IJourney_2_0.js → appsession/IAppSession.js} +1 -1
  128. package/build/shared/interfaces/{restAPI/resources/journey/v2.0/IJourneyStep_2_0.js → appsession/ISetAppState.js} +1 -1
  129. package/build/shared/interfaces/appsession/ISetAppStateOptions.js +3 -0
  130. package/build/shared/interfaces/appsession/ISetAppStateOverlaySettings.js +3 -0
  131. package/build/shared/interfaces/appsession/ISetAppStateOverlaySettingsMetaData.js +3 -0
  132. package/build/shared/interfaces/debugEvents/TDebugEventMessagePayload.js +3 -0
  133. package/build/shared/interfaces/debugEvents/TDebugEventType.js +2 -0
  134. package/build/shared/interfaces/fileStorage.js +6 -0
  135. package/build/shared/interfaces/generativeAI/IGenerativeAIModels.js +45 -52
  136. package/build/shared/interfaces/handover.js +44 -2
  137. package/build/shared/interfaces/license.js +3 -2
  138. package/build/shared/interfaces/license.js.map +1 -1
  139. package/build/shared/interfaces/messageAPI/endpoints.js +17 -2
  140. package/build/shared/interfaces/messageAPI/handover.js +25 -2
  141. package/build/shared/interfaces/nlu/nlu.js +3 -0
  142. package/build/shared/interfaces/resources/IAuditEvent.js +10 -9
  143. package/build/shared/interfaces/resources/IConnection.js +1 -0
  144. package/build/shared/interfaces/resources/IEndpoint.js +1 -2
  145. package/build/shared/interfaces/resources/ILargeLanguageModel.js +56 -21
  146. package/build/shared/interfaces/resources/IMilestone.js +50 -0
  147. package/build/shared/interfaces/resources/INodeDescriptorSet.js +96 -75
  148. package/build/shared/interfaces/resources/TResourceType.js +12 -5
  149. package/build/shared/interfaces/resources/knowledgeStore/IKnowledgeSource.js +1 -1
  150. package/build/shared/interfaces/resources/settings/IAgentSettings.js +12 -7
  151. package/build/shared/interfaces/resources/settings/IGenerativeAISettings.js +8 -0
  152. package/build/shared/interfaces/resources/settings/IKnowledgeAISettings.js +18 -0
  153. package/build/shared/interfaces/resources/settings/index.js +4 -1
  154. package/build/shared/interfaces/restAPI/administration/organisations/v2.0/IReadCollectionsToBeDeletedRest_2_0.js +0 -1
  155. package/build/shared/interfaces/restAPI/administration/organisations/v2.0/IReadOrganisationKnowledgeChunksCountRest_2_0.js +3 -0
  156. package/build/shared/interfaces/restAPI/operations/index.js +3 -0
  157. package/build/shared/interfaces/restAPI/operations/nlu/v2.0/IGenerateNluScoresRest_2_0.js +57 -0
  158. package/build/shared/interfaces/restAPI/operations/nlu/v2.0/index.js +3 -0
  159. package/build/shared/interfaces/restAPI/resources/largeLanguageModel/v2.0/IAvailableModelsForLLMProvider_2_0 .js +18 -0
  160. package/build/shared/interfaces/restAPI/resources/largeLanguageModel/v2.0/IGetAvailableModelsForLLMRest_2_0 .js +3 -0
  161. package/build/shared/interfaces/restAPI/resources/{journey/v2.0/IJourneyIndexItem_2_0.js → milestone/v2.0/ICloneMilestoneRest_2_0.js} +1 -1
  162. package/build/shared/interfaces/restAPI/resources/milestone/v2.0/ICreateMilestoneRest_2_0.js +3 -0
  163. package/build/shared/interfaces/restAPI/resources/milestone/v2.0/IDeleteMilestoneRest_2_0.js +3 -0
  164. package/build/shared/interfaces/restAPI/resources/milestone/v2.0/IIndexMilestonesRest_2_0.js +3 -0
  165. package/build/shared/interfaces/restAPI/resources/milestone/v2.0/IMilestoneIndexItem_2_0.js +3 -0
  166. package/build/shared/interfaces/restAPI/resources/milestone/v2.0/IMilestoneStepMetric_2_0.js +3 -0
  167. package/build/shared/interfaces/restAPI/resources/milestone/v2.0/IMilestoneStep_2_0.js +3 -0
  168. package/build/shared/interfaces/restAPI/resources/milestone/v2.0/IMilestone_2_0.js +3 -0
  169. package/build/shared/interfaces/restAPI/resources/{journey/v2.0/IIndexJourneysRest_2_0.js → milestone/v2.0/IReadMilestoneRest_2_0.js} +1 -1
  170. package/build/shared/interfaces/restAPI/resources/milestone/v2.0/IUpdateMilestoneRest_2_0.js +3 -0
  171. package/build/shared/interfaces/restAPI/resources/milestone/v2.0/index.js +3 -0
  172. package/build/shared/interfaces/restAPI/resources/uploadResumable/v2.0/IUploadResumableRest_2_0.js +3 -1
  173. package/build/shared/interfaces/security/IPermission.js +4 -2
  174. package/build/shared/interfaces/security/IRole.js +2 -0
  175. package/build/shared/interfaces/security/ISystemCapabilities.js +3 -0
  176. package/build/shared/interfaces/security/index.js +1 -1
  177. package/build/shared/interfaces/trainer/ITrainerRecord.js +2 -2
  178. package/build/shared/interfaces/user.js +1 -1
  179. package/package.json +2 -2
  180. package/types/index.d.ts +2194 -957
  181. package/build/shared/charts/descriptors/nlu/extractAnswer.js +0 -115
  182. package/build/shared/interfaces/journeys/IJourney.js +0 -83
  183. package/build/shared/interfaces/journeys/IJourneyProgress.js +0 -40
  184. package/build/shared/interfaces/journeys/IJourneyTrackEvent.js +0 -35
  185. package/build/shared/interfaces/journeys/index.js +0 -14
  186. package/build/shared/interfaces/restAPI/resources/journey/v2.0/IJourneyTrackEvents_2_0.js +0 -3
  187. package/build/shared/interfaces/restAPI/resources/journey/v2.0/IReadJourneyProgressRest_2_0.js +0 -3
  188. package/build/shared/interfaces/restAPI/resources/journey/v2.0/IReadJourneyRest_2_0.js +0 -3
  189. package/build/shared/interfaces/restAPI/resources/journey/v2.0/ITrackJourneyEventRest_2_0.js +0 -3
  190. package/build/shared/interfaces/restAPI/resources/journey/v2.0/IUpdateSelectedJourneyRest_2_0.js +0 -3
  191. /package/build/shared/interfaces/{restAPI/resources/journey/v2.0 → appsession}/index.js +0 -0
@@ -8,6 +8,7 @@ const design_1 = require("../utils/design");
8
8
  const setSessionConfig_mapper_1 = require("../../voice/mappers/setSessionConfig.mapper");
9
9
  const setSessionConfig_mapper_2 = require("../../voice/mappers/setSessionConfig.mapper");
10
10
  const vgConstants_1 = require("../../voice/utils/vgConstants");
11
+ const logFullConfigToDebugMode_1 = require("../../../../helper/logFullConfigToDebugMode");
11
12
  exports.voiceConfigFields = [
12
13
  {
13
14
  key: "bargeInMinWordCount",
@@ -35,48 +36,12 @@ exports.voiceConfigFields = [
35
36
  description: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__BARGE_IN_ON_DTMF__DESCRIPTION",
36
37
  defaultValue: false
37
38
  },
38
- {
39
- key: "sttVendor",
40
- type: "sttSelect",
41
- label: "_unused_",
42
- description: "_unused_",
43
- defaultValue: "",
44
- params: {
45
- languageKey: "config.sttLanguage",
46
- }
47
- },
48
- {
49
- key: "sttLanguage",
50
- type: "sttSelect",
51
- defaultValue: "",
52
- label: "_unused_",
53
- },
54
- {
55
- key: "sttDeepgramTier",
56
- type: "sttTierModelSelect",
57
- label: "_unused_",
58
- description: "_unused_",
59
- defaultValue: "base",
60
- params: {
61
- languageKey: "config.sttDeepgramModel",
62
- },
63
- condition: {
64
- key: "sttVendor",
65
- value: "deepgram"
66
- }
67
- },
68
- {
69
- key: "sttDeepgramModel",
70
- type: "sttTierModelSelect",
71
- defaultValue: "general",
72
- label: "_unused_",
73
- },
74
39
  {
75
40
  key: "deepgramEndpointing",
76
41
  type: "toggle",
77
42
  label: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__DEEPGRAM_ENDPOINTING__LABEL",
78
43
  description: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__DEEPGRAM_ENDPOINTING__DESCRIPTION",
79
- defaultValue: false,
44
+ defaultValue: true,
80
45
  condition: {
81
46
  key: "sttVendor",
82
47
  value: "deepgram"
@@ -87,7 +52,7 @@ exports.voiceConfigFields = [
87
52
  type: "number",
88
53
  label: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__DEEPGRAM_ENDPOINTING_TIME__LABEL",
89
54
  description: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__DEEPGRAM_ENDPOINTING_TIME__DESCRIPTION",
90
- defaultValue: 1000,
55
+ defaultValue: 250,
91
56
  params: {
92
57
  min: 10,
93
58
  max: 1000
@@ -275,6 +240,35 @@ exports.voiceConfigFields = [
275
240
  description: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__TTS_DISABLE_CACHE__DESCRIPTION",
276
241
  defaultValue: false
277
242
  },
243
+ {
244
+ key: "sttVendor",
245
+ type: "sttSelect",
246
+ label: "_unused_",
247
+ description: "_unused_",
248
+ defaultValue: "",
249
+ params: {
250
+ languageKey: "config.sttLanguage",
251
+ modelKey: "config.sttDeepgramModel",
252
+ }
253
+ },
254
+ {
255
+ key: "sttLanguage",
256
+ type: "sttSelect",
257
+ label: "_unused_",
258
+ description: "_unused_",
259
+ defaultValue: "",
260
+ },
261
+ {
262
+ key: "sttDeepgramModel",
263
+ type: "sttSelect",
264
+ label: "_unused_",
265
+ description: "_unused_",
266
+ defaultValue: "",
267
+ condition: {
268
+ key: "sttVendor",
269
+ value: "deepgram"
270
+ }
271
+ },
278
272
  {
279
273
  key: "ttsVendor",
280
274
  defaultValue: "",
@@ -317,6 +311,13 @@ exports.voiceConfigFields = [
317
311
  value: "", // We show the field for all vendors as soon as it is defined
318
312
  }
319
313
  },
314
+ {
315
+ key: "userNoInputTimeoutEnable",
316
+ type: "toggle",
317
+ label: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__USER_NO_INPUT_TIMEOUT_ENABLE__LABEL",
318
+ description: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__USER_NO_INPUT_TIMEOUT_ENABLE__DESCRIPTION",
319
+ defaultValue: true,
320
+ },
320
321
  {
321
322
  key: "userNoInputMode",
322
323
  type: "select",
@@ -338,6 +339,10 @@ exports.voiceConfigFields = [
338
339
  value: "event"
339
340
  }
340
341
  ]
342
+ },
343
+ condition: {
344
+ key: "userNoInputTimeoutEnable",
345
+ value: true
341
346
  }
342
347
  },
343
348
  {
@@ -347,7 +352,11 @@ exports.voiceConfigFields = [
347
352
  description: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__USER_NO_INPUT_TIMEOUT__DESCRIPTION",
348
353
  defaultValue: 10000,
349
354
  params: {
350
- min: 1000
355
+ min: 1
356
+ },
357
+ condition: {
358
+ key: "userNoInputTimeoutEnable",
359
+ value: true
351
360
  }
352
361
  },
353
362
  {
@@ -359,6 +368,10 @@ exports.voiceConfigFields = [
359
368
  params: {
360
369
  min: 0,
361
370
  max: 999
371
+ },
372
+ condition: {
373
+ key: "userNoInputTimeoutEnable",
374
+ value: true
362
375
  }
363
376
  },
364
377
  {
@@ -368,12 +381,20 @@ exports.voiceConfigFields = [
368
381
  description: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__USER_NO_INPUT_SPEECH__DESCRIPTION",
369
382
  defaultValue: "",
370
383
  condition: {
371
- key: "userNoInputMode",
372
- value: "speech"
384
+ and: [
385
+ {
386
+ key: "userNoInputTimeoutEnable",
387
+ value: true
388
+ },
389
+ {
390
+ key: "userNoInputMode",
391
+ value: "speech"
392
+ }
393
+ ]
373
394
  },
374
395
  params: {
375
396
  required: true
376
- }
397
+ },
377
398
  },
378
399
  {
379
400
  key: "userNoInputUrl",
@@ -382,8 +403,119 @@ exports.voiceConfigFields = [
382
403
  description: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__USER_NO_INPUT_URL__DESCRIPTION",
383
404
  defaultValue: "",
384
405
  condition: {
385
- key: "userNoInputMode",
386
- value: "play"
406
+ and: [
407
+ {
408
+ key: "userNoInputTimeoutEnable",
409
+ value: true
410
+ },
411
+ {
412
+ key: "userNoInputMode",
413
+ value: "play"
414
+ }
415
+ ]
416
+ },
417
+ params: {
418
+ required: true
419
+ }
420
+ },
421
+ {
422
+ key: "flowNoInputTimeoutEnable",
423
+ type: "toggle",
424
+ label: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__FLOW_NO_INPUT_TIMEOUT_ENABLE__LABEL",
425
+ description: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__FLOW_NO_INPUT_TIMEOUT_ENABLE__DESCRIPTION",
426
+ defaultValue: false,
427
+ },
428
+ {
429
+ key: "flowNoInputMode",
430
+ type: "select",
431
+ label: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__FLOW_NO_INPUT_MODE__LABEL",
432
+ description: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__FLOW_NO_INPUT_MODE__DESCRIPTION",
433
+ defaultValue: "play",
434
+ params: {
435
+ options: [
436
+ {
437
+ label: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__FLOW_NO_INPUT_MODE__OPTIONS__PLAY__LABEL",
438
+ value: "play"
439
+ },
440
+ {
441
+ label: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__FLOW_NO_INPUT_MODE__OPTIONS__SPEECH__LABEL",
442
+ value: "speech"
443
+ }
444
+ ]
445
+ },
446
+ condition: {
447
+ key: "flowNoInputTimeoutEnable",
448
+ value: true
449
+ }
450
+ },
451
+ {
452
+ key: "flowNoInputTimeout",
453
+ type: "number",
454
+ label: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__FLOW_NO_INPUT_TIMEOUT__LABEL",
455
+ description: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__FLOW_NO_INPUT_TIMEOUT__DESCRIPTION",
456
+ defaultValue: 10000,
457
+ params: {
458
+ min: 1
459
+ },
460
+ condition: {
461
+ key: "flowNoInputTimeoutEnable",
462
+ value: true
463
+ }
464
+ },
465
+ {
466
+ key: "flowNoInputRetries",
467
+ type: "number",
468
+ label: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__FLOW_NO_INPUT_RETRIES__LABEL",
469
+ description: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__FLOW_NO_INPUT_RETRIES__DESCRIPTION",
470
+ defaultValue: 1,
471
+ params: {
472
+ min: 0,
473
+ max: 999
474
+ },
475
+ condition: {
476
+ key: "flowNoInputTimeoutEnable",
477
+ value: true
478
+ }
479
+ },
480
+ {
481
+ key: "flowNoInputSpeech",
482
+ type: "cognigyText",
483
+ label: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__FLOW_NO_INPUT_SPEECH__LABEL",
484
+ description: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__FLOW_NO_INPUT_SPEECH__DESCRIPTION",
485
+ defaultValue: "",
486
+ condition: {
487
+ and: [
488
+ {
489
+ key: "flowNoInputTimeoutEnable",
490
+ value: true
491
+ },
492
+ {
493
+ key: "flowNoInputMode",
494
+ value: "speech"
495
+ }
496
+ ]
497
+ },
498
+ params: {
499
+ required: true
500
+ },
501
+ },
502
+ {
503
+ key: "flowNoInputUrl",
504
+ type: "cognigyText",
505
+ label: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__FLOW_NO_INPUT_URL__LABEL",
506
+ description: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__FLOW_NO_INPUT_URL__DESCRIPTION",
507
+ defaultValue: "",
508
+ condition: {
509
+ and: [
510
+ {
511
+ key: "flowNoInputTimeoutEnable",
512
+ value: true
513
+ },
514
+ {
515
+ key: "flowNoInputMode",
516
+ value: "play"
517
+ }
518
+ ]
387
519
  },
388
520
  params: {
389
521
  required: true
@@ -623,6 +755,119 @@ exports.voiceConfigFields = [
623
755
  ]
624
756
  }
625
757
  },
758
+ {
759
+ key: "atmosphereAction",
760
+ type: "select",
761
+ label: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__ATMOSPHERE_ACTION__LABEL",
762
+ description: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__ATMOSPHERE_ACTION__DESCRIPTION",
763
+ defaultValue: "",
764
+ params: {
765
+ options: [
766
+ {
767
+ label: "",
768
+ value: ""
769
+ },
770
+ {
771
+ label: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__ATMOSPHERE_ACTION__OPTIONS__PLAY__LABEL",
772
+ value: "addTrack"
773
+ },
774
+ {
775
+ label: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__ATMOSPHERE_ACTION__OPTIONS__SILENCE__LABEL",
776
+ value: "silenceTrack"
777
+ },
778
+ {
779
+ label: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__ATMOSPHERE_ACTION__OPTIONS__REMOVE__LABEL",
780
+ value: "removeTrack"
781
+ }
782
+ ]
783
+ }
784
+ },
785
+ {
786
+ key: "atmosphereLoop",
787
+ type: "toggle",
788
+ label: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__ATMOSPHERE_LOOP__LABEL",
789
+ description: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__ATMOSPHERE_LOOP__DESCRIPTION",
790
+ defaultValue: true,
791
+ condition: {
792
+ key: "atmosphereAction",
793
+ value: "addTrack"
794
+ }
795
+ },
796
+ {
797
+ key: "atmosphereVolume",
798
+ type: "number",
799
+ label: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__ATMOSPHERE_VOLUME__LABEL",
800
+ description: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__ATMOSPHERE_VOLUME__DESCRIPTION",
801
+ defaultValue: 0,
802
+ params: {
803
+ min: -50,
804
+ max: 50
805
+ },
806
+ condition: {
807
+ key: "atmosphereAction",
808
+ value: "addTrack"
809
+ }
810
+ },
811
+ {
812
+ key: "atmosphereUrl",
813
+ type: "cognigyText",
814
+ label: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__ATMOSPHERE_URL__LABEL",
815
+ description: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__ATMOSPHERE_URL__DESCRIPTION",
816
+ defaultValue: "",
817
+ condition: {
818
+ key: "atmosphereAction",
819
+ value: "addTrack"
820
+ }
821
+ },
822
+ {
823
+ key: "silenceOverlayAction",
824
+ type: "select",
825
+ label: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__SILENCE_OVERLAY_ACTION__LABEL",
826
+ description: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__SILENCE_OVERLAY_ACTION__DESCRIPTION",
827
+ defaultValue: "",
828
+ params: {
829
+ options: [
830
+ {
831
+ label: "",
832
+ value: ""
833
+ },
834
+ {
835
+ label: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__SILENCE_OVERLAY_ACTION__OPTIONS__PLAY__LABEL",
836
+ value: true
837
+ },
838
+ {
839
+ label: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__SILENCE_OVERLAY_ACTION__OPTIONS__REMOVE__LABEL",
840
+ value: false
841
+ },
842
+ ]
843
+ }
844
+ },
845
+ {
846
+ key: "silenceOverlayURL",
847
+ type: "cognigyText",
848
+ label: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__SILENCE_OVERLAY_URL__LABEL",
849
+ description: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__SILENCE_OVERLAY_URL__DESCRIPTION",
850
+ defaultValue: "",
851
+ condition: {
852
+ key: "silenceOverlayAction",
853
+ value: true
854
+ }
855
+ },
856
+ {
857
+ key: "silenceOverlayDelay",
858
+ type: "number",
859
+ label: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__SILENCE_OVERLAY_DELAY__LABEL",
860
+ description: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__SILENCE_OVERLAY_DELAY__DESCRIPTION",
861
+ defaultValue: 0,
862
+ params: {
863
+ min: 0,
864
+ max: 60
865
+ },
866
+ condition: {
867
+ key: "silenceOverlayAction",
868
+ value: true
869
+ }
870
+ },
626
871
  {
627
872
  key: "googleModel",
628
873
  type: "select",
@@ -696,7 +941,6 @@ exports.setSessionConfigNode = (0, createNodeDescriptor_1.createNodeDescriptor)(
696
941
  fields: [
697
942
  "sttVendor",
698
943
  "sttLabel",
699
- "sttDeepgramTier",
700
944
  "deepgramEndpointing",
701
945
  "deepgramEndpointingValue",
702
946
  "deepgramSmartFormatting",
@@ -737,6 +981,7 @@ exports.setSessionConfigNode = (0, createNodeDescriptor_1.createNodeDescriptor)(
737
981
  label: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__SESSIONS_PARAMS_USER_TIMEOUTS__LABEL",
738
982
  defaultCollapsed: true,
739
983
  fields: [
984
+ "userNoInputTimeoutEnable",
740
985
  "userNoInputMode",
741
986
  "userNoInputSpeech",
742
987
  "userNoInputUrl",
@@ -744,6 +989,19 @@ exports.setSessionConfigNode = (0, createNodeDescriptor_1.createNodeDescriptor)(
744
989
  "userNoInputRetries",
745
990
  ],
746
991
  },
992
+ {
993
+ key: "params_flow_timeouts",
994
+ label: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__SESSIONS_PARAMS_FLOW_TIMEOUTS__LABEL",
995
+ defaultCollapsed: true,
996
+ fields: [
997
+ "flowNoInputTimeoutEnable",
998
+ "flowNoInputMode",
999
+ "flowNoInputSpeech",
1000
+ "flowNoInputUrl",
1001
+ "flowNoInputTimeout",
1002
+ "flowNoInputRetries",
1003
+ ],
1004
+ },
747
1005
  {
748
1006
  key: "params_dtmf",
749
1007
  label: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__SESSIONS_PARAMS_DTMF__LABEL",
@@ -762,6 +1020,18 @@ exports.setSessionConfigNode = (0, createNodeDescriptor_1.createNodeDescriptor)(
762
1020
  defaultCollapsed: true,
763
1021
  fields: ["asrEnabled", "asrDigit", "asrTimeout"],
764
1022
  },
1023
+ {
1024
+ key: "params_atmosphere_sound",
1025
+ label: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__SESSIONS_PARAMS_ATMOSPHERE__LABEL",
1026
+ defaultCollapsed: true,
1027
+ fields: ["atmosphereAction", "atmosphereUrl", "atmosphereLoop", "atmosphereVolume"],
1028
+ },
1029
+ {
1030
+ key: "params_silence_overlay",
1031
+ label: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__SESSIONS_PARAMS_SILENCE_OVERLAY__LABEL",
1032
+ defaultCollapsed: true,
1033
+ fields: ["silenceOverlayAction", "silenceOverlayURL", "silenceOverlayDelay"],
1034
+ },
765
1035
  {
766
1036
  key: "advanced",
767
1037
  label: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__SESSIONS_PARAMS_ADVANCED__LABEL",
@@ -769,24 +1039,36 @@ exports.setSessionConfigNode = (0, createNodeDescriptor_1.createNodeDescriptor)(
769
1039
  fields: ["sessionParams"],
770
1040
  },
771
1041
  ],
1042
+ tags: ["vg"],
772
1043
  form: [
773
1044
  { type: "section", key: "params_tts" },
774
1045
  { type: "section", key: "params_stt" },
775
1046
  { type: "section", key: "params_bargein" },
776
1047
  { type: "section", key: "params_user_timeouts" },
1048
+ // hidding the flow timeout until we release timeout event
1049
+ // { type: "section", key: "params_flow_timeouts" },
777
1050
  { type: "section", key: "params_dtmf" },
778
1051
  { type: "section", key: "params_continuous_asr" },
779
1052
  { type: "section", key: "params_azure_config" },
1053
+ process.env.DISABLE_VG_SILENCE_OVERLAY !== "true" && { type: "section", key: "params_atmosphere_sound" },
1054
+ process.env.DISABLE_VG_ATMOSPHERE_NOISE !== "true" && { type: "section", key: "params_silence_overlay" },
780
1055
  { type: "section", key: "advanced" },
781
- ],
1056
+ ]
1057
+ .filter(element => !!element),
782
1058
  function: async ({ cognigy, config }) => {
783
1059
  const { api } = cognigy;
784
1060
  const { sessionParams } = config;
1061
+ // code for applying as default false for flowNoInputTimeout to apply to old nodes.
1062
+ if (config.flowNoInputTimeoutEnable === undefined) {
1063
+ config.flowNoInputTimeoutEnable = false;
1064
+ }
785
1065
  try {
786
- const payload = setSessionConfig_mapper_1.setSessionConfig.handleVGInput((0, setSessionConfig_mapper_2.voiceConfigParamsToVoiceSettings)(config, api), sessionParams, api);
1066
+ const voiceSettings = (0, setSessionConfig_mapper_2.voiceConfigParamsToVoiceSettings)(config, api);
1067
+ const payload = setSessionConfig_mapper_1.setSessionConfig.handleVGInput(voiceSettings, sessionParams, api);
787
1068
  api.say(null, {
788
1069
  _cognigy: payload,
789
1070
  });
1071
+ (0, logFullConfigToDebugMode_1.logFullConfigToDebugMode)(cognigy, voiceSettings);
790
1072
  }
791
1073
  catch (error) {
792
1074
  throw new Error(`[VG2] Error on set session config node. Error message: ${error.message}`);
@@ -18,6 +18,7 @@ exports.transferNode = (0, createNodeDescriptor_1.createNodeDescriptor)({
18
18
  appearance: {
19
19
  color: design_1.nodeColor,
20
20
  },
21
+ tags: ["vg"],
21
22
  fields: [
22
23
  {
23
24
  key: "transferType",
@@ -242,18 +243,31 @@ exports.transferNode = (0, createNodeDescriptor_1.createNodeDescriptor)({
242
243
  description: "_unused_",
243
244
  defaultValue: "",
244
245
  params: {
245
- languageKey: "config.sttLanguage"
246
+ languageKey: "config.sttLanguage",
247
+ modelKey: "config.sttDeepgramModel"
246
248
  },
247
249
  condition: {
248
250
  key: "transferType",
249
251
  value: "dial"
250
252
  }
251
253
  },
254
+ {
255
+ key: "sttDeepgramModel",
256
+ type: "sttSelect",
257
+ label: "_unused_",
258
+ description: "_unused_",
259
+ defaultValue: "nova-2",
260
+ condition: {
261
+ key: "sttVendor",
262
+ value: "deepgram"
263
+ }
264
+ },
252
265
  {
253
266
  key: "sttLanguage",
254
267
  type: "sttSelect",
268
+ label: "_unused_",
269
+ description: "_unused_",
255
270
  defaultValue: "",
256
- label: "_unused_"
257
271
  },
258
272
  {
259
273
  key: "sttDisablePunctuation",
@@ -274,26 +288,6 @@ exports.transferNode = (0, createNodeDescriptor_1.createNodeDescriptor)({
274
288
  ]
275
289
  }
276
290
  },
277
- {
278
- key: "sttDeepgramTier",
279
- type: "sttTierModelSelect",
280
- label: "_unused_",
281
- description: "_unused_",
282
- defaultValue: "base",
283
- params: {
284
- languageKey: "config.sttDeepgramModel"
285
- },
286
- condition: {
287
- key: "sttVendor",
288
- value: "deepgram"
289
- }
290
- },
291
- {
292
- key: "sttDeepgramModel",
293
- type: "sttTierModelSelect",
294
- defaultValue: "general",
295
- label: "_unused_"
296
- },
297
291
  {
298
292
  key: "deepgramEndpointing",
299
293
  type: "toggle",
@@ -396,7 +390,6 @@ exports.transferNode = (0, createNodeDescriptor_1.createNodeDescriptor)({
396
390
  "sttVendor",
397
391
  "sttLabel",
398
392
  "sttDisablePunctuation",
399
- "sttDeepgramTier",
400
393
  "deepgramEndpointing",
401
394
  "deepgramEndpointingValue",
402
395
  "deepgramSmartFormatting",
@@ -478,9 +471,9 @@ exports.transferNode = (0, createNodeDescriptor_1.createNodeDescriptor)({
478
471
  }
479
472
  ],
480
473
  summary: "UI__NODE_EDITOR__VOICEGATEWAY2__TRANSFER__SUMMARY",
481
- function: async ({ cognigy, config, organisationId, projectId }) => {
474
+ function: async ({ cognigy, config, }) => {
482
475
  const { api, input } = cognigy;
483
- const { transferType, transferTarget, referredBy, useTransferSipHeaders, transferSipHeaders = {}, transferReason, dialMusic, dialTranscriptionWebhook, dialCallerId, recognitionChannel, sttVendor, sttLanguage, sttDisablePunctuation, dialTimeout, amdEnabled, amdRedirectOnMachineDetected, amdRedirectText, sttLabel, googleModel, sttDeepgramTier, sttDeepgramModel, deepgramEndpointing, deepgramEndpointingValue, deepgramSmartFormatting, agentAssistEnabled, agentAssistHeadersKey = customHeaderDefaultValue } = config;
476
+ const { transferType, transferTarget, referredBy, useTransferSipHeaders, transferSipHeaders = {}, transferReason, dialMusic, dialTranscriptionWebhook, dialCallerId, recognitionChannel, sttVendor, sttLanguage, sttDisablePunctuation, dialTimeout, amdEnabled, amdRedirectOnMachineDetected, amdRedirectText, sttLabel, googleModel, sttDeepgramModel, deepgramEndpointing, deepgramEndpointingValue, deepgramSmartFormatting, agentAssistEnabled, agentAssistHeadersKey = customHeaderDefaultValue } = config;
484
477
  const transferParams = {
485
478
  transferType,
486
479
  transferReason,
@@ -509,14 +502,16 @@ exports.transferNode = (0, createNodeDescriptor_1.createNodeDescriptor)({
509
502
  if (agentAssistEnabled && dialTranscriptionWebhook) {
510
503
  try {
511
504
  const agentAssistConfigId = api.getAgentAssistConfigId();
512
- const uui = (0, helper_1.buildUUIValue)({
505
+ const params = {
513
506
  sessionId: input.sessionId,
514
507
  userId: input.userId,
515
508
  webhookUrl: dialTranscriptionWebhook,
516
- agentAssistConfigId,
517
- organisationId: organisationId,
518
- projectId,
519
- });
509
+ agentAssistConfigId: agentAssistConfigId,
510
+ };
511
+ if ((!params.agentAssistConfigId || params.agentAssistConfigId === 'none')) {
512
+ delete params.agentAssistConfigId;
513
+ }
514
+ const uui = (0, helper_1.buildUUIValue)(params);
520
515
  if (!(~dialTranscriptionWebhook.indexOf("userId") && ~dialTranscriptionWebhook.indexOf("sessionId"))) {
521
516
  transferParams.dialTranscriptionWebhook = `${dialTranscriptionWebhook}?userId=${input.userId}&sessionId=${input.sessionId}`;
522
517
  }
@@ -539,10 +534,11 @@ exports.transferNode = (0, createNodeDescriptor_1.createNodeDescriptor)({
539
534
  transferParams.useTransferSipHeaders = false;
540
535
  api.log("error", "Invalid JSON in Transfer SIP Headers");
541
536
  }
542
- const payload = transfer_mapper_1.transfer.handleInput("voiceGateway2", transferParams, false, recognitionChannel, sttVendor, sttLanguage, googleModel, sttDeepgramTier, sttDeepgramModel, sttDisablePunctuation, deepgramEndpointing, deepgramEndpointingValue, deepgramSmartFormatting);
537
+ const payload = transfer_mapper_1.transfer.handleInput("voiceGateway2", transferParams, false, recognitionChannel, sttVendor, sttLanguage, googleModel, sttDeepgramModel, sttDisablePunctuation, deepgramEndpointing, deepgramEndpointingValue, deepgramSmartFormatting);
543
538
  api.say(null, {
544
539
  _cognigy: payload,
545
540
  });
541
+ api.logDebugMessage(`${transferType} UI__DEBUG_MODE__TRANSFER__MESSAGE ${transferTarget}`);
546
542
  }
547
543
  catch (error) {
548
544
  throw new Error(`Error on Transfer node type: ${transferType}. Error message: ${error.message}`);
@@ -60,12 +60,12 @@ const createFullUUIValue = (uui) => {
60
60
  return `00${encodeHex(uui)};encoding=hex`;
61
61
  };
62
62
  const buildUUIValue = (params) => {
63
- const { webhookUrl, userId, sessionId, agentAssistConfigId, organisationId, projectId } = params;
63
+ const { webhookUrl, userId, sessionId, agentAssistConfigId, } = params;
64
64
  const { AGENT_ASSIST_WORKSPACE_FRONTEND_URL_WITH_PROTOCOL } = process.env;
65
65
  const URLToken = extractURLToken(webhookUrl);
66
66
  const assistUserId = `assist-${userId}`;
67
67
  const assistSessionId = `assist-${sessionId}`;
68
- const uui = `${AGENT_ASSIST_WORKSPACE_FRONTEND_URL_WITH_PROTOCOL}/?userId=${assistUserId}&sessionId=${assistSessionId}&URLToken=${URLToken}&organisationId=${organisationId}&projectId=${projectId}&configId=${agentAssistConfigId}`;
68
+ const uui = `${AGENT_ASSIST_WORKSPACE_FRONTEND_URL_WITH_PROTOCOL}/?userId=${assistUserId}&sessionId=${assistSessionId}&URLToken=${URLToken}${agentAssistConfigId ? `&configId=${agentAssistConfigId}` : ''}`;
69
69
  return createFullUUIValue(uui);
70
70
  };
71
71
  exports.buildUUIValue = buildUUIValue;