@cognigy/rest-api-client 2026.1.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 +5 -0
- package/README.md +15 -0
- package/build/apigroups/InsightsAPIGroup_2_1.js +27 -0
- package/build/apigroups/ResourcesAPIGroup_2_0.js +134 -383
- package/build/apigroups/SimulationAPIGroup_2_0.js +24 -23
- 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/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 +54 -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 +4 -0
- package/build/shared/charts/descriptors/message/question/question.js +249 -59
- package/build/shared/charts/descriptors/service/aiAgent/aiAgentJob.js +17 -15
- package/build/shared/charts/descriptors/service/aiAgent/aiAgentJobCallMCPTool.js +6 -4
- package/build/shared/charts/descriptors/service/aiAgent/aiAgentJobMCPTool.js +57 -1
- package/build/shared/charts/descriptors/service/aiAgent/helpers/createToolDefinitions.js +7 -0
- package/build/shared/charts/descriptors/service/aiAgentV2.js +89 -0
- package/build/shared/charts/descriptors/service/index.js +5 -1
- package/build/shared/charts/descriptors/service/llmPrompt/LLMPromptV2.js +15 -13
- package/build/shared/charts/descriptors/service/llmPrompt/llmPromptMCPTool.js +57 -1
- package/build/shared/charts/descriptors/voice/mappers/setSessionConfig.mapper.js +67 -13
- package/build/shared/charts/descriptors/voice/mappers/transfer.mapper.js +25 -3
- package/build/shared/charts/descriptors/voice/nodes/sessionSpeechParameters.js +65 -0
- package/build/shared/charts/descriptors/voicegateway2/nodes/play.js +7 -0
- package/build/shared/charts/descriptors/voicegateway2/nodes/setSessionConfig.js +137 -1
- package/build/shared/charts/descriptors/voicegateway2/nodes/transfer.js +135 -2
- 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/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 +3 -0
- package/build/shared/interfaces/resources/IAuditEvent.js +1 -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/analytics/IDeleteConversationsBySessionRest_2_1.js +3 -0
- package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/connector/IRunKnowledgeConnectorRest_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 +134 -383
- package/dist/esm/apigroups/SimulationAPIGroup_2_0.js +24 -23
- 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/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 +54 -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 +5 -1
- package/dist/esm/shared/charts/descriptors/message/question/question.js +249 -59
- package/dist/esm/shared/charts/descriptors/service/aiAgent/aiAgentJob.js +17 -15
- package/dist/esm/shared/charts/descriptors/service/aiAgent/aiAgentJobCallMCPTool.js +6 -4
- package/dist/esm/shared/charts/descriptors/service/aiAgent/aiAgentJobMCPTool.js +56 -0
- package/dist/esm/shared/charts/descriptors/service/aiAgent/helpers/createToolDefinitions.js +7 -0
- package/dist/esm/shared/charts/descriptors/service/aiAgentV2.js +87 -0
- package/dist/esm/shared/charts/descriptors/service/index.js +2 -0
- package/dist/esm/shared/charts/descriptors/service/llmPrompt/LLMPromptV2.js +22 -20
- package/dist/esm/shared/charts/descriptors/service/llmPrompt/llmPromptMCPTool.js +56 -0
- package/dist/esm/shared/charts/descriptors/voice/mappers/setSessionConfig.mapper.js +67 -13
- package/dist/esm/shared/charts/descriptors/voice/mappers/transfer.mapper.js +25 -3
- package/dist/esm/shared/charts/descriptors/voice/nodes/sessionSpeechParameters.js +65 -0
- package/dist/esm/shared/charts/descriptors/voicegateway2/nodes/play.js +7 -0
- package/dist/esm/shared/charts/descriptors/voicegateway2/nodes/setSessionConfig.js +137 -1
- package/dist/esm/shared/charts/descriptors/voicegateway2/nodes/transfer.js +135 -2
- 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/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 +3 -0
- package/dist/esm/shared/interfaces/resources/IAuditEvent.js +1 -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/analytics/IDeleteConversationsBySessionRest_2_1.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/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 +667 -30
|
@@ -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,
|
|
@@ -1834,7 +2020,7 @@ DO NOT talk about other topics. Do not offer general assistance.`,
|
|
|
1834
2020
|
//#endregion DescriptorFields
|
|
1835
2021
|
function: async ({ cognigy, nodeId, organisationId, config, inputOptions }) => {
|
|
1836
2022
|
var _a, _b, _c;
|
|
1837
|
-
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;
|
|
1838
2024
|
const { input, context, profile, api } = cognigy;
|
|
1839
2025
|
const rephraseWithAIParams = {
|
|
1840
2026
|
generativeAI_rephraseOutputMode: config.generativeAI_rephraseOutputMode,
|
|
@@ -2237,6 +2423,8 @@ DO NOT talk about other topics. Do not offer general assistance.`,
|
|
|
2237
2423
|
repeatHandoverMessage: escalateIntentsRepeatHandoverMessage,
|
|
2238
2424
|
cancelIntent: escalateIntentsHandoverCancelIntent,
|
|
2239
2425
|
quickReply: escalateIntentsHandoverQuickReply,
|
|
2426
|
+
handoverProvider: escalateIntentsHandoverProvider,
|
|
2427
|
+
handoverProviderConfig: escalateIntentsHandoverProviderConfig,
|
|
2240
2428
|
additionalCategoryIds: escalateIntentsHandoverAdditionalCategoryIds || [],
|
|
2241
2429
|
chatwootInboxId: escalateIntentsHandoverChatwootInboxId,
|
|
2242
2430
|
liveAgentInboxId: escalateIntentsHandoverLiveAgentInboxId,
|
|
@@ -2385,6 +2573,8 @@ DO NOT talk about other topics. Do not offer general assistance.`,
|
|
|
2385
2573
|
text: escalateAnswersHandoverText,
|
|
2386
2574
|
cancelIntent: escalateAnswersHandoverCancelIntent,
|
|
2387
2575
|
repeatHandoverMessage: escalateAnswersRepeatHandoverMessage,
|
|
2576
|
+
handoverProvider: escalateAnswersHandoverProvider,
|
|
2577
|
+
handoverProviderConfig: escalateAnswersHandoverProviderConfig,
|
|
2388
2578
|
quickReply: escalateAnswersHandoverQuickReply,
|
|
2389
2579
|
chatwootInboxId: escalateAnswersHandoverChatwootInboxId,
|
|
2390
2580
|
liveAgentInboxId: escalateAnswersHandoverLiveAgentInboxId,
|