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