@cognigy/rest-api-client 2025.25.0 → 2026.2.0-rc1
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 +10 -0
- package/README.md +15 -0
- package/build/apigroups/InsightsAPIGroup_2_1.js +27 -0
- package/build/apigroups/ResourcesAPIGroup_2_0.js +140 -375
- package/build/apigroups/SimulationAPIGroup_2_0.js +33 -18
- package/build/apigroups/aiAgentsV2/agent.js +3 -0
- package/build/apigroups/aiAgentsV2/agentAPI.js +38 -0
- package/build/apigroups/aiAgentsV2/agentPersona.js +3 -0
- package/build/apigroups/aiAgentsV2/agentPersonaAPI.js +38 -0
- package/build/apigroups/aiAgentsV2/tool.js +3 -0
- package/build/apigroups/aiAgentsV2/toolAPI.js +35 -0
- package/build/apigroups/aiAgentsV2/toolDescriptor.js +3 -0
- package/build/apigroups/aiAgentsV2/toolDescriptorAPI.js +13 -0
- package/build/apigroups/index.js +3 -1
- package/build/authentication/AuthenticationAPI.js +1 -0
- package/build/shared/charts/createNodeDescriptor.js +1 -0
- package/build/shared/charts/descriptors/analytics/overwriteAnalytics.js +14 -0
- package/build/shared/charts/descriptors/analytics/updateProfile.js +5 -0
- package/build/shared/charts/descriptors/connectionNodes/smtp/emailNotification.js +7 -0
- package/build/shared/charts/descriptors/connectionNodes/smtp/index.js +5 -1
- package/build/shared/charts/descriptors/connectionNodes/smtp/oAuth2ClientCredentialsConnection.js +15 -0
- package/build/shared/charts/descriptors/connectionNodes/smtp/oAuth2JwtBearerConnection.js +13 -0
- package/build/shared/charts/descriptors/connectionNodes/smtp/sendEmail.js +63 -10
- package/build/shared/charts/descriptors/connectionNodes/speechProviders/elevenlabsSpeechProviderConnection.js +52 -0
- package/build/shared/charts/descriptors/connectionNodes/speechProviders/index.js +8 -7
- package/build/shared/charts/descriptors/index.js +6 -0
- package/build/shared/charts/descriptors/message/question/question.js +254 -59
- package/build/shared/charts/descriptors/message/say.js +3 -0
- package/build/shared/charts/descriptors/service/agentTools/executeWorkflowTool.js +239 -0
- package/build/shared/charts/descriptors/service/agentTools/handoverToHumanAgentTool.js +783 -0
- package/build/shared/charts/descriptors/service/agentTools/sendEmailTool.js +33 -4
- package/build/shared/charts/descriptors/service/aiAgent/aiAgentJob.js +25 -20
- package/build/shared/charts/descriptors/service/aiAgent/aiAgentJobCallMCPTool.js +10 -6
- package/build/shared/charts/descriptors/service/aiAgent/aiAgentJobMCPTool.js +57 -1
- package/build/shared/charts/descriptors/service/aiAgent/helpers/createToolDefinitions.js +10 -1
- package/build/shared/charts/descriptors/service/aiAgent/helpers/parseMcpHeaders.js +26 -0
- package/build/shared/charts/descriptors/service/aiAgentV2.js +89 -0
- package/build/shared/charts/descriptors/service/handoverV2.js +1 -1
- package/build/shared/charts/descriptors/service/httpRequest.js +3 -0
- package/build/shared/charts/descriptors/service/index.js +9 -1
- package/build/shared/charts/descriptors/service/llmPrompt/LLMPromptV2.js +26 -17
- package/build/shared/charts/descriptors/service/llmPrompt/llmPromptMCPTool.js +57 -1
- package/build/shared/charts/descriptors/voice/mappers/setSessionConfig.mapper.js +75 -15
- package/build/shared/charts/descriptors/voice/mappers/transfer.mapper.js +27 -5
- package/build/shared/charts/descriptors/voice/nodes/sessionSpeechParameters.js +67 -2
- package/build/shared/charts/descriptors/voicegateway2/nodes/play.js +7 -0
- package/build/shared/charts/descriptors/voicegateway2/nodes/setSessionConfig.js +149 -4
- package/build/shared/charts/descriptors/voicegateway2/nodes/transfer.js +137 -4
- package/build/shared/errors/ErrorCode.js +2 -1
- package/build/shared/errors/ErrorCollection.js +1 -0
- package/build/shared/helper/BaseContext.js +1 -1
- package/build/shared/interfaces/amqpInterface.js +1 -0
- package/build/shared/interfaces/generativeAI/IGenerativeAIModels.js +1 -0
- package/build/shared/interfaces/handover.js +1 -0
- package/build/shared/interfaces/handoverProviders.js +0 -1
- package/build/shared/interfaces/messageAPI/endpoints.js +4 -1
- package/build/shared/interfaces/resources/IAuditEvent.js +1 -0
- package/build/shared/interfaces/resources/IChart.js +10 -1
- package/build/shared/interfaces/resources/IChartNode.js +32 -4
- package/build/shared/interfaces/resources/IEndpoint.js +1 -0
- package/build/shared/interfaces/resources/INodeDescriptorSet.js +8 -0
- package/build/shared/interfaces/resources/TResourceType.js +1 -0
- package/build/shared/interfaces/resources/chart/IChartExecutableNode.js +10 -1
- package/build/shared/interfaces/resources/knowledgeStore/IKnowledgeConnector.js +49 -0
- package/build/shared/interfaces/resources/knowledgeStore/IKnowledgeSource.js +1 -1
- package/build/shared/interfaces/resources/settings/IAudioPreviewSettings.js +7 -1
- package/build/shared/interfaces/restAPI/administration/user/v2.0/IExchangeCXoneTokenRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/analytics/IDeleteConversationsBySessionRest_2_1.js +3 -0
- package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/connector/ICreateKnowledgeConnectorRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/connector/IDeleteKnowledgeConnectorRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/connector/IIndexKnowledgeConnectorsRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/connector/IKnowledgeConnector_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/connector/IReadKnowledgeConnectorRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/connector/IRunKnowledgeConnectorRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/connector/IUpdateKnowledgeConnectorRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/simulation/scheduler/ICreateSchedulerRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/simulation/scheduler/IGetSchedulerRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/simulation/scheduler/ISchedulerRest_2_0.js +12 -0
- package/build/shared/interfaces/restAPI/simulation/scheduler/IUpdateSchedulerRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/simulation/simulationOverview/IGetSimulationOverviewMetricsRestData_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/simulation/simulationOverview/IGetSuccessRateTrendRestData_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/simulation/simulationOverview/IGetUpcomingScheduledRunsRestData_2_0.js +3 -0
- package/build/shared/interfaces/security/ISessionScope.js +3 -0
- package/build/spec/aiAgentV2.spec.js +564 -0
- package/dist/esm/apigroups/InsightsAPIGroup_2_1.js +13 -0
- package/dist/esm/apigroups/ResourcesAPIGroup_2_0.js +140 -375
- package/dist/esm/apigroups/SimulationAPIGroup_2_0.js +33 -18
- package/dist/esm/apigroups/aiAgentsV2/agent.js +2 -0
- package/dist/esm/apigroups/aiAgentsV2/agentAPI.js +24 -0
- package/dist/esm/apigroups/aiAgentsV2/agentPersona.js +2 -0
- package/dist/esm/apigroups/aiAgentsV2/agentPersonaAPI.js +24 -0
- package/dist/esm/apigroups/aiAgentsV2/aiAgentV2API.js +2 -0
- package/dist/esm/apigroups/aiAgentsV2/tool.js +2 -0
- package/dist/esm/apigroups/aiAgentsV2/toolAPI.js +21 -0
- package/dist/esm/apigroups/aiAgentsV2/toolDescriptor.js +2 -0
- package/dist/esm/apigroups/aiAgentsV2/toolDescriptorAPI.js +9 -0
- package/dist/esm/apigroups/index.js +1 -0
- package/dist/esm/authentication/AuthenticationAPI.js +1 -0
- package/dist/esm/shared/charts/createNodeDescriptor.js +1 -0
- package/dist/esm/shared/charts/descriptors/analytics/overwriteAnalytics.js +14 -0
- package/dist/esm/shared/charts/descriptors/analytics/updateProfile.js +5 -0
- package/dist/esm/shared/charts/descriptors/connectionNodes/smtp/emailNotification.js +7 -0
- package/dist/esm/shared/charts/descriptors/connectionNodes/smtp/index.js +5 -1
- package/dist/esm/shared/charts/descriptors/connectionNodes/smtp/oAuth2ClientCredentialsConnection.js +12 -0
- package/dist/esm/shared/charts/descriptors/connectionNodes/smtp/oAuth2JwtBearerConnection.js +10 -0
- package/dist/esm/shared/charts/descriptors/connectionNodes/smtp/sendEmail.js +63 -10
- package/dist/esm/shared/charts/descriptors/connectionNodes/speechProviders/elevenlabsSpeechProviderConnection.js +49 -0
- package/dist/esm/shared/charts/descriptors/connectionNodes/speechProviders/index.js +3 -3
- package/dist/esm/shared/charts/descriptors/index.js +7 -1
- package/dist/esm/shared/charts/descriptors/message/question/question.js +254 -59
- package/dist/esm/shared/charts/descriptors/message/say.js +3 -0
- package/dist/esm/shared/charts/descriptors/service/agentTools/executeWorkflowTool.js +237 -0
- package/dist/esm/shared/charts/descriptors/service/agentTools/handoverToHumanAgentTool.js +770 -0
- package/dist/esm/shared/charts/descriptors/service/agentTools/sendEmailTool.js +33 -4
- package/dist/esm/shared/charts/descriptors/service/aiAgent/aiAgentJob.js +25 -20
- package/dist/esm/shared/charts/descriptors/service/aiAgent/aiAgentJobCallMCPTool.js +10 -6
- package/dist/esm/shared/charts/descriptors/service/aiAgent/aiAgentJobMCPTool.js +56 -0
- package/dist/esm/shared/charts/descriptors/service/aiAgent/helpers/createToolDefinitions.js +10 -1
- package/dist/esm/shared/charts/descriptors/service/aiAgent/helpers/parseMcpHeaders.js +25 -0
- package/dist/esm/shared/charts/descriptors/service/aiAgentV2.js +87 -0
- package/dist/esm/shared/charts/descriptors/service/handoverV2.js +1 -1
- package/dist/esm/shared/charts/descriptors/service/httpRequest.js +3 -0
- package/dist/esm/shared/charts/descriptors/service/index.js +4 -0
- package/dist/esm/shared/charts/descriptors/service/llmPrompt/LLMPromptV2.js +33 -24
- package/dist/esm/shared/charts/descriptors/service/llmPrompt/llmPromptMCPTool.js +56 -0
- package/dist/esm/shared/charts/descriptors/voice/mappers/setSessionConfig.mapper.js +75 -15
- package/dist/esm/shared/charts/descriptors/voice/mappers/transfer.mapper.js +27 -5
- package/dist/esm/shared/charts/descriptors/voice/nodes/sessionSpeechParameters.js +67 -2
- package/dist/esm/shared/charts/descriptors/voicegateway2/nodes/play.js +7 -0
- package/dist/esm/shared/charts/descriptors/voicegateway2/nodes/setSessionConfig.js +149 -4
- package/dist/esm/shared/charts/descriptors/voicegateway2/nodes/transfer.js +137 -4
- package/dist/esm/shared/errors/ErrorCode.js +2 -1
- package/dist/esm/shared/errors/ErrorCollection.js +1 -0
- package/dist/esm/shared/helper/BaseContext.js +1 -1
- package/dist/esm/shared/interfaces/amqpInterface.js +1 -0
- package/dist/esm/shared/interfaces/generativeAI/IGenerativeAIModels.js +1 -0
- package/dist/esm/shared/interfaces/handover.js +1 -0
- package/dist/esm/shared/interfaces/handoverProviders.js +0 -1
- package/dist/esm/shared/interfaces/messageAPI/endpoints.js +4 -1
- package/dist/esm/shared/interfaces/resources/IAuditEvent.js +1 -0
- package/dist/esm/shared/interfaces/resources/IChart.js +10 -1
- package/dist/esm/shared/interfaces/resources/IChartNode.js +32 -4
- package/dist/esm/shared/interfaces/resources/IEndpoint.js +1 -0
- package/dist/esm/shared/interfaces/resources/INodeDescriptorSet.js +8 -0
- package/dist/esm/shared/interfaces/resources/TResourceType.js +1 -0
- package/dist/esm/shared/interfaces/resources/chart/IChartExecutableNode.js +10 -1
- package/dist/esm/shared/interfaces/resources/knowledgeStore/IKnowledgeConnector.js +46 -0
- package/dist/esm/shared/interfaces/resources/knowledgeStore/IKnowledgeSource.js +1 -1
- package/dist/esm/shared/interfaces/resources/settings/IAudioPreviewSettings.js +7 -1
- package/dist/esm/shared/interfaces/restAPI/administration/user/v2.0/IExchangeCXoneTokenRest_2_0.js +2 -0
- package/dist/esm/shared/interfaces/restAPI/analytics/IDeleteConversationsBySessionRest_2_1.js +2 -0
- package/dist/esm/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/connector/ICreateKnowledgeConnectorRest_2_0.js +2 -0
- package/dist/esm/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/connector/IDeleteKnowledgeConnectorRest_2_0.js +2 -0
- package/dist/esm/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/connector/IIndexKnowledgeConnectorsRest_2_0.js +2 -0
- package/dist/esm/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/connector/IKnowledgeConnector_2_0.js +2 -0
- package/dist/esm/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/connector/IReadKnowledgeConnectorRest_2_0.js +2 -0
- package/dist/esm/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/connector/IRunKnowledgeConnectorRest_2_0.js +2 -0
- package/dist/esm/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/connector/IUpdateKnowledgeConnectorRest_2_0.js +2 -0
- package/dist/esm/shared/interfaces/restAPI/simulation/scheduler/ICreateSchedulerRest_2_0.js +2 -0
- package/dist/esm/shared/interfaces/restAPI/simulation/scheduler/IGetSchedulerRest_2_0.js +2 -0
- package/dist/esm/shared/interfaces/restAPI/simulation/scheduler/ISchedulerRest_2_0.js +9 -0
- package/dist/esm/shared/interfaces/restAPI/simulation/scheduler/IUpdateSchedulerRest_2_0.js +2 -0
- package/dist/esm/shared/interfaces/restAPI/simulation/simulationOverview/IGetSimulationOverviewMetricsRestData_2_0.js +2 -0
- package/dist/esm/shared/interfaces/restAPI/simulation/simulationOverview/IGetSuccessRateTrendRestData_2_0.js +2 -0
- package/dist/esm/shared/interfaces/restAPI/simulation/simulationOverview/IGetUpcomingScheduledRunsRestData_2_0.js +2 -0
- package/dist/esm/shared/interfaces/security/ISessionScope.js +2 -0
- package/dist/esm/spec/aiAgentV2.spec.js +563 -0
- package/package.json +6 -3
- package/types/index.d.ts +1198 -44
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.ELEVENLABS_SPEECH_PROVIDER_CONNECTION = exports.DEEPGRAM_SPEECH_PROVIDER_CONNECTION = exports.GOOGLE_SPEECH_PROVIDER_CONNECTION = exports.MICROSOFT_SPEECH_PROVIDER_CONNECTION = exports.AWS_SPEECH_PROVIDER_CONNECTION = exports.cognigySpeechProviderModule = void 0;
|
|
4
4
|
/* Custom modules */
|
|
5
5
|
const createNodeDescriptor_1 = require("../../../createNodeDescriptor");
|
|
6
6
|
const awsSpeechProviderConnection_1 = require("./awsSpeechProviderConnection");
|
|
7
|
+
Object.defineProperty(exports, "AWS_SPEECH_PROVIDER_CONNECTION", { enumerable: true, get: function () { return awsSpeechProviderConnection_1.AWS_SPEECH_PROVIDER_CONNECTION; } });
|
|
7
8
|
const microsoftSpeechProviderConnection_1 = require("./microsoftSpeechProviderConnection");
|
|
9
|
+
Object.defineProperty(exports, "MICROSOFT_SPEECH_PROVIDER_CONNECTION", { enumerable: true, get: function () { return microsoftSpeechProviderConnection_1.MICROSOFT_SPEECH_PROVIDER_CONNECTION; } });
|
|
8
10
|
const googleSpeechProviderConnection_1 = require("./googleSpeechProviderConnection");
|
|
11
|
+
Object.defineProperty(exports, "GOOGLE_SPEECH_PROVIDER_CONNECTION", { enumerable: true, get: function () { return googleSpeechProviderConnection_1.GOOGLE_SPEECH_PROVIDER_CONNECTION; } });
|
|
9
12
|
const deepgramSpeechProviderConnection_1 = require("./deepgramSpeechProviderConnection");
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
Object.defineProperty(exports, "MICROSOFT_SPEECH_PROVIDER_CONNECTION", { enumerable: true, get: function () { return microsoftSpeechProviderConnection_2.MICROSOFT_SPEECH_PROVIDER_CONNECTION; } });
|
|
14
|
-
var googleSpeechProviderConnection_2 = require("./googleSpeechProviderConnection");
|
|
15
|
-
Object.defineProperty(exports, "GOOGLE_SPEECH_PROVIDER_CONNECTION", { enumerable: true, get: function () { return googleSpeechProviderConnection_2.GOOGLE_SPEECH_PROVIDER_CONNECTION; } });
|
|
13
|
+
Object.defineProperty(exports, "DEEPGRAM_SPEECH_PROVIDER_CONNECTION", { enumerable: true, get: function () { return deepgramSpeechProviderConnection_1.DEEPGRAM_SPEECH_PROVIDER_CONNECTION; } });
|
|
14
|
+
const elevenlabsSpeechProviderConnection_1 = require("./elevenlabsSpeechProviderConnection");
|
|
15
|
+
Object.defineProperty(exports, "ELEVENLABS_SPEECH_PROVIDER_CONNECTION", { enumerable: true, get: function () { return elevenlabsSpeechProviderConnection_1.ELEVENLABS_SPEECH_PROVIDER_CONNECTION; } });
|
|
16
16
|
exports.cognigySpeechProviderModule = (0, createNodeDescriptor_1.createExtension)({
|
|
17
17
|
nodes: [],
|
|
18
18
|
connections: [
|
|
@@ -20,6 +20,7 @@ exports.cognigySpeechProviderModule = (0, createNodeDescriptor_1.createExtension
|
|
|
20
20
|
microsoftSpeechProviderConnection_1.MICROSOFT_SPEECH_PROVIDER_CONNECTION,
|
|
21
21
|
googleSpeechProviderConnection_1.GOOGLE_SPEECH_PROVIDER_CONNECTION,
|
|
22
22
|
deepgramSpeechProviderConnection_1.DEEPGRAM_SPEECH_PROVIDER_CONNECTION,
|
|
23
|
+
elevenlabsSpeechProviderConnection_1.ELEVENLABS_SPEECH_PROVIDER_CONNECTION,
|
|
23
24
|
]
|
|
24
25
|
});
|
|
25
26
|
//# sourceMappingURL=index.js.map
|
|
@@ -151,10 +151,15 @@ if (process.env.DISABLE_FEATURE_TRANSCRIPT_MANAGER !== "true") {
|
|
|
151
151
|
nodes.push(service_1.AI_AGENT_TOOL_ANSWER);
|
|
152
152
|
nodes.push(service_1.KNOWLEDGE_TOOL);
|
|
153
153
|
nodes.push(service_1.HANDOVER_TO_AI_AGENT_TOOL);
|
|
154
|
+
nodes.push(service_1.HANDOVER_TO_HUMAN_AGENT_TOOL);
|
|
154
155
|
nodes.push(service_1.SEND_EMAIL_TOOL);
|
|
156
|
+
nodes.push(service_1.EXECUTE_WORKFLOW_TOOL);
|
|
155
157
|
nodes.push(service_1.AI_AGENT_HANDOVER);
|
|
156
158
|
nodes.push(service_1.LOAD_AI_AGENT);
|
|
157
159
|
}
|
|
160
|
+
if (process.env.FEATURE_ENABLE_AI_AGENT_V2_PROTOTYPE === "true") {
|
|
161
|
+
nodes.push(service_1.AI_AGENT_V2);
|
|
162
|
+
}
|
|
158
163
|
if (process.env.FEATURE_USE_COGNIGY_LIVE_AGENT === "true") {
|
|
159
164
|
nodes.push(liveAgent_1.ASSIST_INFO);
|
|
160
165
|
}
|
|
@@ -168,6 +173,7 @@ exports.cognigyBasicModule = (0, createNodeDescriptor_1.createExtension)({
|
|
|
168
173
|
service_1.HTTP_CONNECTION_APIKEYAUTHKEY,
|
|
169
174
|
service_1.HTTP_CONNECTION_APIKEYXKEY,
|
|
170
175
|
service_1.HTTP_CONNECTION_OAUTH2,
|
|
176
|
+
service_1.AI_AGENT_MCP_TOOL_CONNECTION_OAUTH2,
|
|
171
177
|
service_1.JWT_SECRET_CONNECTION,
|
|
172
178
|
service_1.LIVE_AGENT_CONNECTION,
|
|
173
179
|
service_1.RINGCENTRAL_ENGAGE_CONNECTION,
|
|
@@ -737,8 +737,13 @@ DO NOT talk about other topics. Do not offer general assistance.`,
|
|
|
737
737
|
label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_ALLOW_AGENT_INJECT__LABEL",
|
|
738
738
|
description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_ALLOW_AGENT_INJECT__DESCRIPTION",
|
|
739
739
|
condition: {
|
|
740
|
-
|
|
741
|
-
|
|
740
|
+
and: [
|
|
741
|
+
{ key: "escalateAnswersAction", value: "handover" },
|
|
742
|
+
{ or: [
|
|
743
|
+
{ key: "escalateAnswersHandoverProvider", value: "legacyEndpoint" },
|
|
744
|
+
{ key: "escalateAnswersHandoverProvider", value: null }
|
|
745
|
+
] }
|
|
746
|
+
]
|
|
742
747
|
},
|
|
743
748
|
defaultValue: true,
|
|
744
749
|
},
|
|
@@ -779,8 +784,13 @@ DO NOT talk about other topics. Do not offer general assistance.`,
|
|
|
779
784
|
label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_HANDOVER_LIVE_AGENT_INBOX_ID__LABEL",
|
|
780
785
|
description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_HANDOVER_LIVE_AGENT_INBOX_ID__DESCRIPTION",
|
|
781
786
|
condition: {
|
|
782
|
-
|
|
783
|
-
|
|
787
|
+
and: [
|
|
788
|
+
{ key: "escalateAnswersAction", value: "handover" },
|
|
789
|
+
{ or: [
|
|
790
|
+
{ key: "escalateAnswersHandoverProvider", value: "legacyEndpoint" },
|
|
791
|
+
{ key: "escalateAnswersHandoverProvider", value: null }
|
|
792
|
+
] }
|
|
793
|
+
]
|
|
784
794
|
}
|
|
785
795
|
},
|
|
786
796
|
{
|
|
@@ -789,8 +799,13 @@ DO NOT talk about other topics. Do not offer general assistance.`,
|
|
|
789
799
|
label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_HANDOVER_CHATWOOT_INBOX_ID__LABEL",
|
|
790
800
|
description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_HANDOVER_CHATWOOT_INBOX_ID__DESCRIPTION",
|
|
791
801
|
condition: {
|
|
792
|
-
|
|
793
|
-
|
|
802
|
+
and: [
|
|
803
|
+
{ key: "escalateAnswersAction", value: "handover" },
|
|
804
|
+
{ or: [
|
|
805
|
+
{ key: "escalateAnswersHandoverProvider", value: "legacyEndpoint" },
|
|
806
|
+
{ key: "escalateAnswersHandoverProvider", value: null }
|
|
807
|
+
] }
|
|
808
|
+
]
|
|
794
809
|
}
|
|
795
810
|
},
|
|
796
811
|
{
|
|
@@ -800,8 +815,13 @@ DO NOT talk about other topics. Do not offer general assistance.`,
|
|
|
800
815
|
description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_HANDOVER_SEND_TRANSCRIPT_AS_FIRST_MESSAGE__DESCRIPTION",
|
|
801
816
|
defaultValue: false,
|
|
802
817
|
condition: {
|
|
803
|
-
|
|
804
|
-
|
|
818
|
+
and: [
|
|
819
|
+
{ key: "escalateAnswersAction", value: "handover" },
|
|
820
|
+
{ or: [
|
|
821
|
+
{ key: "escalateAnswersHandoverProvider", value: "legacyEndpoint" },
|
|
822
|
+
{ key: "escalateAnswersHandoverProvider", value: null }
|
|
823
|
+
] }
|
|
824
|
+
]
|
|
805
825
|
}
|
|
806
826
|
},
|
|
807
827
|
{
|
|
@@ -811,8 +831,13 @@ DO NOT talk about other topics. Do not offer general assistance.`,
|
|
|
811
831
|
description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_HANDOVER_SALES_FORCE_PERCHAT_ENTITIES__DESCRIPTION",
|
|
812
832
|
defaultValue: "[]",
|
|
813
833
|
condition: {
|
|
814
|
-
|
|
815
|
-
|
|
834
|
+
and: [
|
|
835
|
+
{ key: "escalateAnswersAction", value: "handover" },
|
|
836
|
+
{ or: [
|
|
837
|
+
{ key: "escalateAnswersHandoverProvider", value: "legacyEndpoint" },
|
|
838
|
+
{ key: "escalateAnswersHandoverProvider", value: null }
|
|
839
|
+
] }
|
|
840
|
+
]
|
|
816
841
|
}
|
|
817
842
|
},
|
|
818
843
|
{
|
|
@@ -822,8 +847,13 @@ DO NOT talk about other topics. Do not offer general assistance.`,
|
|
|
822
847
|
description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_HANDOVER_SALES_FORCE_PERCHAT_DETAILS__DESCRIPTION",
|
|
823
848
|
defaultValue: "[]",
|
|
824
849
|
condition: {
|
|
825
|
-
|
|
826
|
-
|
|
850
|
+
and: [
|
|
851
|
+
{ key: "escalateAnswersAction", value: "handover" },
|
|
852
|
+
{ or: [
|
|
853
|
+
{ key: "escalateAnswersHandoverProvider", value: "legacyEndpoint" },
|
|
854
|
+
{ key: "escalateAnswersHandoverProvider", value: null }
|
|
855
|
+
] }
|
|
856
|
+
]
|
|
827
857
|
}
|
|
828
858
|
},
|
|
829
859
|
{
|
|
@@ -832,8 +862,13 @@ DO NOT talk about other topics. Do not offer general assistance.`,
|
|
|
832
862
|
label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_HANDOVER__GENESYS_LANGUAGE__LABEL",
|
|
833
863
|
description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_HANDOVER__GENESYS_LANGUAGE__DESCRIPTION",
|
|
834
864
|
condition: {
|
|
835
|
-
|
|
836
|
-
|
|
865
|
+
and: [
|
|
866
|
+
{ key: "escalateAnswersAction", value: "handover" },
|
|
867
|
+
{ or: [
|
|
868
|
+
{ key: "escalateAnswersHandoverProvider", value: "legacyEndpoint" },
|
|
869
|
+
{ key: "escalateAnswersHandoverProvider", value: null }
|
|
870
|
+
] }
|
|
871
|
+
]
|
|
837
872
|
}
|
|
838
873
|
},
|
|
839
874
|
{
|
|
@@ -842,8 +877,13 @@ DO NOT talk about other topics. Do not offer general assistance.`,
|
|
|
842
877
|
label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_HANDOVER__GENESYS_SKILLS__LABEL",
|
|
843
878
|
description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_HANDOVER__GENESYS_SKILLS__DESCRIPTION",
|
|
844
879
|
condition: {
|
|
845
|
-
|
|
846
|
-
|
|
880
|
+
and: [
|
|
881
|
+
{ key: "escalateAnswersAction", value: "handover" },
|
|
882
|
+
{ or: [
|
|
883
|
+
{ key: "escalateAnswersHandoverProvider", value: "legacyEndpoint" },
|
|
884
|
+
{ key: "escalateAnswersHandoverProvider", value: null }
|
|
885
|
+
] }
|
|
886
|
+
]
|
|
847
887
|
}
|
|
848
888
|
},
|
|
849
889
|
{
|
|
@@ -852,8 +892,13 @@ DO NOT talk about other topics. Do not offer general assistance.`,
|
|
|
852
892
|
label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_HANDOVER__GENESYS_PRIORITY__LABEL",
|
|
853
893
|
description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_HANDOVER__GENESYS_PRIORITY__DESCRIPTION",
|
|
854
894
|
condition: {
|
|
855
|
-
|
|
856
|
-
|
|
895
|
+
and: [
|
|
896
|
+
{ key: "escalateAnswersAction", value: "handover" },
|
|
897
|
+
{ or: [
|
|
898
|
+
{ key: "escalateAnswersHandoverProvider", value: "legacyEndpoint" },
|
|
899
|
+
{ key: "escalateAnswersHandoverProvider", value: null }
|
|
900
|
+
] }
|
|
901
|
+
]
|
|
857
902
|
}
|
|
858
903
|
},
|
|
859
904
|
{
|
|
@@ -863,8 +908,13 @@ DO NOT talk about other topics. Do not offer general assistance.`,
|
|
|
863
908
|
defaultValue: {},
|
|
864
909
|
description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_HANDOVER_GENESYS_CUSTOM_ATTRIBUTES__DESCRIPTION",
|
|
865
910
|
condition: {
|
|
866
|
-
|
|
867
|
-
|
|
911
|
+
and: [
|
|
912
|
+
{ key: "escalateAnswersAction", value: "handover" },
|
|
913
|
+
{ or: [
|
|
914
|
+
{ key: "escalateAnswersHandoverProvider", value: "legacyEndpoint" },
|
|
915
|
+
{ key: "escalateAnswersHandoverProvider", value: null }
|
|
916
|
+
] }
|
|
917
|
+
]
|
|
868
918
|
}
|
|
869
919
|
},
|
|
870
920
|
{
|
|
@@ -873,8 +923,13 @@ DO NOT talk about other topics. Do not offer general assistance.`,
|
|
|
873
923
|
label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_HANDOVER_EIGHT_BY_EIGHT_CHANNELID__LABEL",
|
|
874
924
|
description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_HANDOVER_EIGHT_BY_EIGHT_CHANNELID__DESCRIPTION",
|
|
875
925
|
condition: {
|
|
876
|
-
|
|
877
|
-
|
|
926
|
+
and: [
|
|
927
|
+
{ key: "escalateAnswersAction", value: "handover" },
|
|
928
|
+
{ or: [
|
|
929
|
+
{ key: "escalateAnswersHandoverProvider", value: "legacyEndpoint" },
|
|
930
|
+
{ key: "escalateAnswersHandoverProvider", value: null }
|
|
931
|
+
] }
|
|
932
|
+
]
|
|
878
933
|
}
|
|
879
934
|
},
|
|
880
935
|
{
|
|
@@ -883,8 +938,13 @@ DO NOT talk about other topics. Do not offer general assistance.`,
|
|
|
883
938
|
label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_HANDOVER_EIGHT_BY_EIGHT_QUEUEID__LABEL",
|
|
884
939
|
description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_HANDOVER_EIGHT_BY_EIGHT_QUEUEID__DESCRIPTION",
|
|
885
940
|
condition: {
|
|
886
|
-
|
|
887
|
-
|
|
941
|
+
and: [
|
|
942
|
+
{ key: "escalateAnswersAction", value: "handover" },
|
|
943
|
+
{ or: [
|
|
944
|
+
{ key: "escalateAnswersHandoverProvider", value: "legacyEndpoint" },
|
|
945
|
+
{ key: "escalateAnswersHandoverProvider", value: null }
|
|
946
|
+
] }
|
|
947
|
+
]
|
|
888
948
|
}
|
|
889
949
|
},
|
|
890
950
|
{
|
|
@@ -905,8 +965,13 @@ DO NOT talk about other topics. Do not offer general assistance.`,
|
|
|
905
965
|
]
|
|
906
966
|
},
|
|
907
967
|
condition: {
|
|
908
|
-
|
|
909
|
-
|
|
968
|
+
and: [
|
|
969
|
+
{ key: "escalateAnswersAction", value: "handover" },
|
|
970
|
+
{ or: [
|
|
971
|
+
{ key: "escalateAnswersHandoverProvider", value: "legacyEndpoint" },
|
|
972
|
+
{ key: "escalateAnswersHandoverProvider", value: null }
|
|
973
|
+
] }
|
|
974
|
+
]
|
|
910
975
|
}
|
|
911
976
|
},
|
|
912
977
|
{
|
|
@@ -916,8 +981,13 @@ DO NOT talk about other topics. Do not offer general assistance.`,
|
|
|
916
981
|
description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_HANDOVER_ADDITIONAL_CATEGORRY_IDS__DESCRIPTION",
|
|
917
982
|
defaultValue: [],
|
|
918
983
|
condition: {
|
|
919
|
-
|
|
920
|
-
|
|
984
|
+
and: [
|
|
985
|
+
{ key: "escalateAnswersAction", value: "handover" },
|
|
986
|
+
{ or: [
|
|
987
|
+
{ key: "escalateAnswersHandoverProvider", value: "legacyEndpoint" },
|
|
988
|
+
{ key: "escalateAnswersHandoverProvider", value: null }
|
|
989
|
+
] }
|
|
990
|
+
]
|
|
921
991
|
}
|
|
922
992
|
},
|
|
923
993
|
{
|
|
@@ -946,6 +1016,26 @@ DO NOT talk about other topics. Do not offer general assistance.`,
|
|
|
946
1016
|
label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_SEND_ON_ACTIVE_EVENT__LABEL",
|
|
947
1017
|
description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_SEND_ON_ACTIVE_EVENT__DESCRIPTION",
|
|
948
1018
|
},
|
|
1019
|
+
{
|
|
1020
|
+
key: "escalateAnswersHandoverProvider",
|
|
1021
|
+
type: "handoverProvider",
|
|
1022
|
+
label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_HANDOVER_PROVIDER__LABEL",
|
|
1023
|
+
description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_ANSWERS_HANDOVER_PROVIDER__DESCRIPTION",
|
|
1024
|
+
defaultValue: "legacyEndpoint",
|
|
1025
|
+
params: {
|
|
1026
|
+
configFieldPath: "config.escalateAnswersHandoverProviderConfig"
|
|
1027
|
+
},
|
|
1028
|
+
condition: {
|
|
1029
|
+
key: "escalateAnswersAction",
|
|
1030
|
+
value: "handover"
|
|
1031
|
+
}
|
|
1032
|
+
},
|
|
1033
|
+
{
|
|
1034
|
+
key: "escalateAnswersHandoverProviderConfig",
|
|
1035
|
+
type: "json",
|
|
1036
|
+
defaultValue: {},
|
|
1037
|
+
// Hidden field - populated by HandoverProviderSelect
|
|
1038
|
+
},
|
|
949
1039
|
{
|
|
950
1040
|
key: "escalateIntentsAction",
|
|
951
1041
|
type: "select",
|
|
@@ -1176,14 +1266,38 @@ DO NOT talk about other topics. Do not offer general assistance.`,
|
|
|
1176
1266
|
label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_SEND_ON_ACTIVE_EVENT__LABEL",
|
|
1177
1267
|
description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_SEND_ON_ACTIVE_EVENT__DESCRIPTION",
|
|
1178
1268
|
},
|
|
1269
|
+
{
|
|
1270
|
+
key: "escalateIntentsHandoverProvider",
|
|
1271
|
+
type: "handoverProvider",
|
|
1272
|
+
label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_PROVIDER__LABEL",
|
|
1273
|
+
description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_PROVIDER__DESCRIPTION",
|
|
1274
|
+
defaultValue: "legacyEndpoint",
|
|
1275
|
+
params: {
|
|
1276
|
+
configFieldPath: "config.escalateIntentsHandoverProviderConfig"
|
|
1277
|
+
},
|
|
1278
|
+
condition: {
|
|
1279
|
+
key: "escalateIntentsAction",
|
|
1280
|
+
value: "handover"
|
|
1281
|
+
}
|
|
1282
|
+
},
|
|
1283
|
+
{
|
|
1284
|
+
key: "escalateIntentsHandoverProviderConfig",
|
|
1285
|
+
type: "json",
|
|
1286
|
+
defaultValue: {},
|
|
1287
|
+
},
|
|
1179
1288
|
process.env.FEATURE_USE_COGNIGY_LIVE_AGENT && {
|
|
1180
1289
|
key: constants_1.COGNIGY_LIVE_AGENT_DESCRIPTOR_FIELDS.ESCALATE_INTENTS_ALLOW_AGENT_INJECT,
|
|
1181
1290
|
type: "toggle",
|
|
1182
1291
|
label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_ALLOW_AGENT_INJECT__LABEL",
|
|
1183
1292
|
description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_ALLOW_AGENT_INJECT__DESCRIPTION",
|
|
1184
1293
|
condition: {
|
|
1185
|
-
|
|
1186
|
-
|
|
1294
|
+
and: [
|
|
1295
|
+
{ key: "escalateIntentsAction", value: "handover" },
|
|
1296
|
+
{ or: [
|
|
1297
|
+
{ key: "escalateIntentsHandoverProvider", value: "legacyEndpoint" },
|
|
1298
|
+
{ key: "escalateIntentsHandoverProvider", value: null }
|
|
1299
|
+
] }
|
|
1300
|
+
]
|
|
1187
1301
|
},
|
|
1188
1302
|
defaultValue: true,
|
|
1189
1303
|
},
|
|
@@ -1193,8 +1307,13 @@ DO NOT talk about other topics. Do not offer general assistance.`,
|
|
|
1193
1307
|
label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_LIVE_AGENT_INBOX_ID__LABEL",
|
|
1194
1308
|
description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_LIVE_AGENT_INBOX_ID__DESCRIPTION",
|
|
1195
1309
|
condition: {
|
|
1196
|
-
|
|
1197
|
-
|
|
1310
|
+
and: [
|
|
1311
|
+
{ key: "escalateIntentsAction", value: "handover" },
|
|
1312
|
+
{ or: [
|
|
1313
|
+
{ key: "escalateIntentsHandoverProvider", value: "legacyEndpoint" },
|
|
1314
|
+
{ key: "escalateIntentsHandoverProvider", value: null }
|
|
1315
|
+
] }
|
|
1316
|
+
]
|
|
1198
1317
|
}
|
|
1199
1318
|
},
|
|
1200
1319
|
process.env.FEATURE_USE_COGNIGY_LIVE_AGENT && {
|
|
@@ -1203,8 +1322,13 @@ DO NOT talk about other topics. Do not offer general assistance.`,
|
|
|
1203
1322
|
label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_AGENT_ASSIST_INIT_MESSAGE__LABEL",
|
|
1204
1323
|
description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_AGENT_ASSIST_INIT_MESSAGE__DESCRIPTION",
|
|
1205
1324
|
condition: {
|
|
1206
|
-
|
|
1207
|
-
|
|
1325
|
+
and: [
|
|
1326
|
+
{ key: "escalateIntentsAction", value: "handover" },
|
|
1327
|
+
{ or: [
|
|
1328
|
+
{ key: "escalateIntentsHandoverProvider", value: "legacyEndpoint" },
|
|
1329
|
+
{ key: "escalateIntentsHandoverProvider", value: null }
|
|
1330
|
+
] }
|
|
1331
|
+
]
|
|
1208
1332
|
}
|
|
1209
1333
|
},
|
|
1210
1334
|
{
|
|
@@ -1213,8 +1337,13 @@ DO NOT talk about other topics. Do not offer general assistance.`,
|
|
|
1213
1337
|
label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_CHATWOOT_INBOX_ID__LABEL",
|
|
1214
1338
|
description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_CHATWOOT_INBOX_ID__DESCRIPTION",
|
|
1215
1339
|
condition: {
|
|
1216
|
-
|
|
1217
|
-
|
|
1340
|
+
and: [
|
|
1341
|
+
{ key: "escalateIntentsAction", value: "handover" },
|
|
1342
|
+
{ or: [
|
|
1343
|
+
{ key: "escalateIntentsHandoverProvider", value: "legacyEndpoint" },
|
|
1344
|
+
{ key: "escalateIntentsHandoverProvider", value: null }
|
|
1345
|
+
] }
|
|
1346
|
+
]
|
|
1218
1347
|
}
|
|
1219
1348
|
},
|
|
1220
1349
|
{
|
|
@@ -1224,8 +1353,13 @@ DO NOT talk about other topics. Do not offer general assistance.`,
|
|
|
1224
1353
|
description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_SEND_TRANSCRIPT_AS_FIRST_MESSAGE__DESCRIPTION",
|
|
1225
1354
|
defaultValue: false,
|
|
1226
1355
|
condition: {
|
|
1227
|
-
|
|
1228
|
-
|
|
1356
|
+
and: [
|
|
1357
|
+
{ key: "escalateIntentsAction", value: "handover" },
|
|
1358
|
+
{ or: [
|
|
1359
|
+
{ key: "escalateIntentsHandoverProvider", value: "legacyEndpoint" },
|
|
1360
|
+
{ key: "escalateIntentsHandoverProvider", value: null }
|
|
1361
|
+
] }
|
|
1362
|
+
]
|
|
1229
1363
|
}
|
|
1230
1364
|
},
|
|
1231
1365
|
{
|
|
@@ -1235,8 +1369,13 @@ DO NOT talk about other topics. Do not offer general assistance.`,
|
|
|
1235
1369
|
description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_SALES_FORCE_PRECHAT_ENTITIES__DESCRIPTION",
|
|
1236
1370
|
defaultValue: "[]",
|
|
1237
1371
|
condition: {
|
|
1238
|
-
|
|
1239
|
-
|
|
1372
|
+
and: [
|
|
1373
|
+
{ key: "escalateIntentsAction", value: "handover" },
|
|
1374
|
+
{ or: [
|
|
1375
|
+
{ key: "escalateIntentsHandoverProvider", value: "legacyEndpoint" },
|
|
1376
|
+
{ key: "escalateIntentsHandoverProvider", value: null }
|
|
1377
|
+
] }
|
|
1378
|
+
]
|
|
1240
1379
|
}
|
|
1241
1380
|
},
|
|
1242
1381
|
{
|
|
@@ -1246,8 +1385,13 @@ DO NOT talk about other topics. Do not offer general assistance.`,
|
|
|
1246
1385
|
description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_SALES_FORCE_PRECHAT_DETAILS__DESCRIPTION",
|
|
1247
1386
|
defaultValue: "[]",
|
|
1248
1387
|
condition: {
|
|
1249
|
-
|
|
1250
|
-
|
|
1388
|
+
and: [
|
|
1389
|
+
{ key: "escalateIntentsAction", value: "handover" },
|
|
1390
|
+
{ or: [
|
|
1391
|
+
{ key: "escalateIntentsHandoverProvider", value: "legacyEndpoint" },
|
|
1392
|
+
{ key: "escalateIntentsHandoverProvider", value: null }
|
|
1393
|
+
] }
|
|
1394
|
+
]
|
|
1251
1395
|
}
|
|
1252
1396
|
},
|
|
1253
1397
|
{
|
|
@@ -1256,8 +1400,13 @@ DO NOT talk about other topics. Do not offer general assistance.`,
|
|
|
1256
1400
|
label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_GENESYSY_LANGUAGE__LABEL",
|
|
1257
1401
|
description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_GENESYSY_LANGUAGE__DESCRIPTION",
|
|
1258
1402
|
condition: {
|
|
1259
|
-
|
|
1260
|
-
|
|
1403
|
+
and: [
|
|
1404
|
+
{ key: "escalateIntentsAction", value: "handover" },
|
|
1405
|
+
{ or: [
|
|
1406
|
+
{ key: "escalateIntentsHandoverProvider", value: "legacyEndpoint" },
|
|
1407
|
+
{ key: "escalateIntentsHandoverProvider", value: null }
|
|
1408
|
+
] }
|
|
1409
|
+
]
|
|
1261
1410
|
}
|
|
1262
1411
|
},
|
|
1263
1412
|
{
|
|
@@ -1267,8 +1416,13 @@ DO NOT talk about other topics. Do not offer general assistance.`,
|
|
|
1267
1416
|
description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_GENESYSY_SKILLS__DESCRIPTION",
|
|
1268
1417
|
defaultValue: [],
|
|
1269
1418
|
condition: {
|
|
1270
|
-
|
|
1271
|
-
|
|
1419
|
+
and: [
|
|
1420
|
+
{ key: "escalateIntentsAction", value: "handover" },
|
|
1421
|
+
{ or: [
|
|
1422
|
+
{ key: "escalateIntentsHandoverProvider", value: "legacyEndpoint" },
|
|
1423
|
+
{ key: "escalateIntentsHandoverProvider", value: null }
|
|
1424
|
+
] }
|
|
1425
|
+
]
|
|
1272
1426
|
}
|
|
1273
1427
|
},
|
|
1274
1428
|
{
|
|
@@ -1277,8 +1431,13 @@ DO NOT talk about other topics. Do not offer general assistance.`,
|
|
|
1277
1431
|
label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_GENESYSY_PRIORITY__LABEL",
|
|
1278
1432
|
description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_GENESYSY_PRIORITY__DESCRIPTION",
|
|
1279
1433
|
condition: {
|
|
1280
|
-
|
|
1281
|
-
|
|
1434
|
+
and: [
|
|
1435
|
+
{ key: "escalateIntentsAction", value: "handover" },
|
|
1436
|
+
{ or: [
|
|
1437
|
+
{ key: "escalateIntentsHandoverProvider", value: "legacyEndpoint" },
|
|
1438
|
+
{ key: "escalateIntentsHandoverProvider", value: null }
|
|
1439
|
+
] }
|
|
1440
|
+
]
|
|
1282
1441
|
}
|
|
1283
1442
|
},
|
|
1284
1443
|
{
|
|
@@ -1288,8 +1447,13 @@ DO NOT talk about other topics. Do not offer general assistance.`,
|
|
|
1288
1447
|
defaultValue: {},
|
|
1289
1448
|
description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_GENESYSY_CUSTOM_ATTRIBUTES__DESCRIPTION",
|
|
1290
1449
|
condition: {
|
|
1291
|
-
|
|
1292
|
-
|
|
1450
|
+
and: [
|
|
1451
|
+
{ key: "escalateIntentsAction", value: "handover" },
|
|
1452
|
+
{ or: [
|
|
1453
|
+
{ key: "escalateIntentsHandoverProvider", value: "legacyEndpoint" },
|
|
1454
|
+
{ key: "escalateIntentsHandoverProvider", value: null }
|
|
1455
|
+
] }
|
|
1456
|
+
]
|
|
1293
1457
|
}
|
|
1294
1458
|
},
|
|
1295
1459
|
{
|
|
@@ -1298,8 +1462,13 @@ DO NOT talk about other topics. Do not offer general assistance.`,
|
|
|
1298
1462
|
label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_EIGHT_BY_EIGHT_CHANNELID__LABEL",
|
|
1299
1463
|
description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_EIGHT_BY_EIGHT_CHANNELID__DESCRIPTION",
|
|
1300
1464
|
condition: {
|
|
1301
|
-
|
|
1302
|
-
|
|
1465
|
+
and: [
|
|
1466
|
+
{ key: "escalateIntentsAction", value: "handover" },
|
|
1467
|
+
{ or: [
|
|
1468
|
+
{ key: "escalateIntentsHandoverProvider", value: "legacyEndpoint" },
|
|
1469
|
+
{ key: "escalateIntentsHandoverProvider", value: null }
|
|
1470
|
+
] }
|
|
1471
|
+
]
|
|
1303
1472
|
}
|
|
1304
1473
|
},
|
|
1305
1474
|
{
|
|
@@ -1308,8 +1477,13 @@ DO NOT talk about other topics. Do not offer general assistance.`,
|
|
|
1308
1477
|
label: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_EIGHT_BY_EIGHT_QUEUEID__LABEL",
|
|
1309
1478
|
description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_EIGHT_BY_EIGHT_QUEUEID__DESCRIPTION",
|
|
1310
1479
|
condition: {
|
|
1311
|
-
|
|
1312
|
-
|
|
1480
|
+
and: [
|
|
1481
|
+
{ key: "escalateIntentsAction", value: "handover" },
|
|
1482
|
+
{ or: [
|
|
1483
|
+
{ key: "escalateIntentsHandoverProvider", value: "legacyEndpoint" },
|
|
1484
|
+
{ key: "escalateIntentsHandoverProvider", value: null }
|
|
1485
|
+
] }
|
|
1486
|
+
]
|
|
1313
1487
|
}
|
|
1314
1488
|
},
|
|
1315
1489
|
{
|
|
@@ -1330,8 +1504,13 @@ DO NOT talk about other topics. Do not offer general assistance.`,
|
|
|
1330
1504
|
]
|
|
1331
1505
|
},
|
|
1332
1506
|
condition: {
|
|
1333
|
-
|
|
1334
|
-
|
|
1507
|
+
and: [
|
|
1508
|
+
{ key: "escalateIntentsAction", value: "handover" },
|
|
1509
|
+
{ or: [
|
|
1510
|
+
{ key: "escalateIntentsHandoverProvider", value: "legacyEndpoint" },
|
|
1511
|
+
{ key: "escalateIntentsHandoverProvider", value: null }
|
|
1512
|
+
] }
|
|
1513
|
+
]
|
|
1335
1514
|
}
|
|
1336
1515
|
},
|
|
1337
1516
|
{
|
|
@@ -1341,8 +1520,13 @@ DO NOT talk about other topics. Do not offer general assistance.`,
|
|
|
1341
1520
|
description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__ESCALATE_INTENTS_HANDOVER_ADDITIONAL_CATEGORY_IDS__DESCRIPTION",
|
|
1342
1521
|
defaultValue: [],
|
|
1343
1522
|
condition: {
|
|
1344
|
-
|
|
1345
|
-
|
|
1523
|
+
and: [
|
|
1524
|
+
{ key: "escalateIntentsAction", value: "handover" },
|
|
1525
|
+
{ or: [
|
|
1526
|
+
{ key: "escalateIntentsHandoverProvider", value: "legacyEndpoint" },
|
|
1527
|
+
{ key: "escalateIntentsHandoverProvider", value: null }
|
|
1528
|
+
] }
|
|
1529
|
+
]
|
|
1346
1530
|
}
|
|
1347
1531
|
},
|
|
1348
1532
|
{
|
|
@@ -1667,6 +1851,7 @@ DO NOT talk about other topics. Do not offer general assistance.`,
|
|
|
1667
1851
|
"escalateIntentsHandoverQuickReply",
|
|
1668
1852
|
"escalateIntentsHandoverResolveBehavior",
|
|
1669
1853
|
"escalateIntentsHandoverSendResolveEvent",
|
|
1854
|
+
"escalateIntentsHandoverProvider",
|
|
1670
1855
|
"escalateIntentsHandoverAdditionalCategoryIds",
|
|
1671
1856
|
process.env.FEATURE_USE_COGNIGY_LIVE_AGENT && constants_1.COGNIGY_LIVE_AGENT_DESCRIPTOR_FIELDS.ESCALATE_INTENTS_HANDOVER_LIVE_AGENT_INBOX_ID,
|
|
1672
1857
|
process.env.FEATURE_USE_COGNIGY_LIVE_AGENT && constants_1.COGNIGY_LIVE_AGENT_DESCRIPTOR_FIELDS.ESCALATE_INTENTS_AGENT_ASSIST_INIT_MESSAGE,
|
|
@@ -1706,6 +1891,7 @@ DO NOT talk about other topics. Do not offer general assistance.`,
|
|
|
1706
1891
|
"escalateAnswersHandoverQuickReply",
|
|
1707
1892
|
"escalateAnswersHandoverResolveBehavior",
|
|
1708
1893
|
"escalateAnswersHandoverSendResolveEvent",
|
|
1894
|
+
"escalateAnswersHandoverProvider",
|
|
1709
1895
|
"escalateAnswersHandoverAdditionalCategoryIds",
|
|
1710
1896
|
process.env.FEATURE_USE_COGNIGY_LIVE_AGENT && constants_1.COGNIGY_LIVE_AGENT_DESCRIPTOR_FIELDS.ESCALATE_ANSWERS_HANDOVER_LIVE_AGENT_INBOX_ID,
|
|
1711
1897
|
process.env.FEATURE_USE_COGNIGY_LIVE_AGENT && constants_1.COGNIGY_LIVE_AGENT_DESCRIPTOR_FIELDS.ESCALATE_ANSWERS_ALLOW_AGENT_INJECT,
|
|
@@ -1826,10 +2012,15 @@ DO NOT talk about other topics. Do not offer general assistance.`,
|
|
|
1826
2012
|
type: "sayNode",
|
|
1827
2013
|
},
|
|
1828
2014
|
tags: ["basic", "message", "nlu"],
|
|
2015
|
+
mocking: {
|
|
2016
|
+
defaultMockCode: `
|
|
2017
|
+
context.result = "Mocked result";
|
|
2018
|
+
`
|
|
2019
|
+
},
|
|
1829
2020
|
//#endregion DescriptorFields
|
|
1830
2021
|
function: async ({ cognigy, nodeId, organisationId, config, inputOptions }) => {
|
|
1831
2022
|
var _a, _b, _c;
|
|
1832
|
-
const { say, type, validationMessage, repromptLLMProvider, repromptType = "text", repromptLLMPrompt, repromptLLMTurns, repromptLLMStream, repromptLLMStreamStopTokens, repromptSay, repromptFlowNode, repromptParseIntents, repromptParseKeyphrases, repromptAbsorbContext, validationRepeat, storeResultInContext, contextKey, storeInContactProfile, profileKey, storeDetailedResults, parseResultOnEntry, repromptCondition, maxExecutionDiff, resultLocation, skipRepromptOnIntent, onlyAcceptEscalationIntents, preventTranscript, 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, 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;
|
|
2023
|
+
const { say, type, validationMessage, repromptLLMProvider, repromptType = "text", repromptLLMPrompt, repromptLLMTurns, repromptLLMStream, repromptLLMStreamStopTokens, repromptSay, repromptFlowNode, repromptParseIntents, repromptParseKeyphrases, repromptAbsorbContext, validationRepeat, storeResultInContext, contextKey, storeInContactProfile, profileKey, storeDetailedResults, parseResultOnEntry, repromptCondition, maxExecutionDiff, resultLocation, skipRepromptOnIntent, onlyAcceptEscalationIntents, preventTranscript, 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, escalateAnswersAllowAgentInject, escalateAnswersSendOnActiveEvent, escalateAnswersSendOnQueueEvent, escalateAnswersHandoverProvider, escalateAnswersHandoverProviderConfig, 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, escalateIntentsHandoverProvider, escalateIntentsHandoverProviderConfig, reconfirmationBehaviour, reconfirmationQuestion, reconfirmationQuestionReprompt, handoverOutput, cleanTextLocale, cleanDisallowedSymbols, additionalAllowedCharacters, additionalSpecialPhrases, resolveSpelledOutNumbers, resolvePhoneticAlphabet, additionalPhoneticAlphabet, replaceSpecialWords, additionalMappedSymbols, resolveSpelledOutAlphabet, resolvePhoneticCounters, contractSingleCharacters, contractNumberGroups, trimResult, runNLUAfterCleaning, overwrittenBaseAnswer } = config;
|
|
1833
2024
|
const { input, context, profile, api } = cognigy;
|
|
1834
2025
|
const rephraseWithAIParams = {
|
|
1835
2026
|
generativeAI_rephraseOutputMode: config.generativeAI_rephraseOutputMode,
|
|
@@ -2232,6 +2423,8 @@ DO NOT talk about other topics. Do not offer general assistance.`,
|
|
|
2232
2423
|
repeatHandoverMessage: escalateIntentsRepeatHandoverMessage,
|
|
2233
2424
|
cancelIntent: escalateIntentsHandoverCancelIntent,
|
|
2234
2425
|
quickReply: escalateIntentsHandoverQuickReply,
|
|
2426
|
+
handoverProvider: escalateIntentsHandoverProvider,
|
|
2427
|
+
handoverProviderConfig: escalateIntentsHandoverProviderConfig,
|
|
2235
2428
|
additionalCategoryIds: escalateIntentsHandoverAdditionalCategoryIds || [],
|
|
2236
2429
|
chatwootInboxId: escalateIntentsHandoverChatwootInboxId,
|
|
2237
2430
|
liveAgentInboxId: escalateIntentsHandoverLiveAgentInboxId,
|
|
@@ -2380,6 +2573,8 @@ DO NOT talk about other topics. Do not offer general assistance.`,
|
|
|
2380
2573
|
text: escalateAnswersHandoverText,
|
|
2381
2574
|
cancelIntent: escalateAnswersHandoverCancelIntent,
|
|
2382
2575
|
repeatHandoverMessage: escalateAnswersRepeatHandoverMessage,
|
|
2576
|
+
handoverProvider: escalateAnswersHandoverProvider,
|
|
2577
|
+
handoverProviderConfig: escalateAnswersHandoverProviderConfig,
|
|
2383
2578
|
quickReply: escalateAnswersHandoverQuickReply,
|
|
2384
2579
|
chatwootInboxId: escalateAnswersHandoverChatwootInboxId,
|
|
2385
2580
|
liveAgentInboxId: escalateAnswersHandoverLiveAgentInboxId,
|
|
@@ -88,6 +88,9 @@ exports.SAY = (0, createNodeDescriptor_1.createNodeDescriptor)({
|
|
|
88
88
|
type: "sayNode",
|
|
89
89
|
},
|
|
90
90
|
tags: ["basic", "message"],
|
|
91
|
+
mocking: {
|
|
92
|
+
defaultMockCode: `api.say("Hello from Mock Code!");`
|
|
93
|
+
},
|
|
91
94
|
function: async ({ cognigy, config, nodeId, organisationId, nodeType }) => {
|
|
92
95
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
93
96
|
const { api } = cognigy;
|