OnPostCallAnalysisAvailable - Amazon Connect

OnPostCallAnalysisAvailable

Agent Hierarchy

Parameters
  • Operator - "CONTAINS_ANY"

  • Operands - Agent hierarchy ARNs.

  • ComparisonValue - "$.ContactLens.PostCall.Agent.HierarchyGroup.ARN"

  • Negate - False

NonTalkTimePct

Parameters
  • Operator - "NumberLessOrEqualTo" | "NumberGreaterOrEqualTo"

  • Operands - An array of numbers, array length can only be 1. Value is an integer between 0 and 100.

  • ComparisonValue - "$.ContactLens.PostCall.Agent.HierarchyGroup.ARN"

  • Negate - False

Customer Hold Duration Pct

Parameters
  • Operator - "NumberLessOrEqualTo" | "NumberGreaterOrEqualTo"

  • Operands - An array of number, array length can only be 1. Value is an integer between 0 and 100.

  • ComparisonValue - '$.ContactLens.PostCall.Agent.CustomerHoldDurationPct'

  • Negate - False.

Initiation Method

Parameters
  • Operator - "CONTAINS_ANY"

  • Operands - A validated enum set of possible values. Possible values are as follows:

    • 'INBOUND'

    • 'OUTBOUND'

    • 'TRANSFER'

    • 'QUEUE_TRANSFER'

    • 'CALLBACK'

    • 'API'

    • 'DISCONNECT'

  • ComparisonValue - '$.ContactLens.PostCall.InitiationMethod'

  • Negate - False

DisconnectReason

Parameters
  • Operator - "CONTAINS_ANY"

  • Operands - A validated enum set of possible values. Possible values are as follows:

    • 'TELECOM_BUSY'

    • 'TELECOM_NUMBER_INVALID'

    • 'TELECOM_POTENTIAL_BLOCKING'

    • 'TELECOM_UNANSWERED'

    • 'TELECOM_TIMEOUT'

    • 'TELECOM_ORIGINATOR_CANCEL'

    • 'TELECOM_PROBLEM'

    • 'CUSTOMER_NEVER_ARRIVED'

    • 'THIRD_PARTY_DISCONNECT'

    • 'CUSTOMER_DISCONNECT'

    • 'AGENT_DISCONNECT'

    • 'BARGED'

    • 'CONTACT_FLOW_DISCONNECT'

    • 'OTHER'

    • 'OUTBOUND_DESTINATION_ENDPOINT_ERROR'

    • 'OUTBOUND_RESOURCE_ERROR'

    • 'OUTBOUND_ATTEMPT_FAILED'

    • 'EXPIRED'

    • 'AGENT_NETWORK_DISCONNECT'

    • 'CUSTOMER_CONNECTION_NOT_ESTABLISHED'

    • 'API'

    • 'IDLE_DISCONNECT'

    • 'SYSTEM_ERROR'

    • 'AGENT_COMPLETED'

    • 'TRANSFERRED'

    • 'DISCARDED'

  • ComparisonValue - "$.ContactLens.PostCall.DisconnectReason"

  • Negate - False

Absolute Talk Time

Parameters
  • Operator - "NumberLessOrEqualTo" | "NumberGreaterOrEqualTo"

  • Operands - An integer.

  • ComparisonValue - '$.ContactLens.PostCall.TalkTime.TotalTimeSecs'

  • FilterClause -

    { // required!! LogicOperator: 'AND', // has to be 'AND' Filters: [ // only allows one of the object { Type: 'ParticipantRole', Data: 'AGENT', // 'AGENT' or 'CUSTOMER' }, ], },
  • Negate - False

Maximum (Highest) Loudness Score

Parameters
  • Operator - "NumberLessOrEqualTo" | "NumberGreaterOrEqualTo"

  • Operands - an integer (decibels).

  • ComparisonValue - '$.ContactLens.PostCall.Loudness.HighestLoudnessScore'

  • FilterClause -

    { LogicOperator: 'AND', // has to be AND Filters: [ // only one object { Type: 'ParticipantRole', Data: 'CUSTOMER', // or 'AGENT' }, ], },
  • Negate - False

After Contact Work Duration

Parameters
  • Operator - "NumberLessOrEqualTo" | "NumberGreaterOrEqualTo"

  • Operands - A positive integer or zero.

  • ComparisonValue - '$.ContactLens.PostCall.Agent.AfterContactWorkDurationSecs'

  • Negate - False

Routing profile

Parameters
  • Operator - "CONTAINS_ANY"

  • Operands - Routing profile ARNs:

  • ComparisonValue - "$.ContactLens.PostCall.Agent.RoutingProfile"

  • Negate - False

PotentialDisconnectIssue

Parameters
  • Operator - "CONTAINS_ANY" | "EQUALS"

  • Operands - A validated enum of possible values.

  • ComparisonValue - '$.ContactLens.PostCall.PotentialDisconnectIssue'

  • Negate - False.

Custom User-Defined Segment Attribute

Parameters
  • Operator - "CONTAINS_ANY"

  • Operands - A list of segment attribute values. The values must be a value in the pre-defined attribute resource.

  • ComparisonValue - "$.ContactLens.ContactEvaluation.SegmentAttributes.UserDefined.[KEY]"

    The KEY must be an instance pre-defined attribute resource.

  • Negate - False or True

Connect AI Agent

Parameters
  • Operator - "CONTAINS_ANY"

  • Operands - A list of strings. Strings are either a list of different UUIDs by themselves or a list of strings prefixed with the same UUID, with different possible version numbers uuid:2 and uuid:3. For example:

    • Different UUIDs by themselves: ['30682191-2312-4c27-9fc1-752e7a399d52', '2b81c7d5-85bc-459f-b605-0f5280a4301e']

    • Prefixed with the same UUID with different possible version numbers: ['30682191-2312-4c27-9fc1-752e7a399d52:1', '30682191-2312-4c27-9fc1-752e7a399d52:2']

  • ComparisonValue - '$.ContactLens.PostCall.AiAgent.IdWithVersion'

  • FilterClause -

    [ { // REQUIRED filter Type: 'AiAgentUseCase', Data: { Value: 'SelfService', // or 'AgentAssistance' }, }, { // OPTIONAL filter Type: 'AiAgentEscalatedToHuman', Data: 'TRUE', // or 'FALSE' }, ], },
  • Negate - False

PostCall words or phrases - Exact match

Parameters
  • Operator - "CONTAINS_ANY"

  • Operands – A list of strings

  • ComparisonValue – "$.ContactLens.PostCall.ExactMatch.Transcript"

  • FilterClause –

    { "LogicOperator": "AND", // Only "AND" is supported "Filters": [ { "Type": "PostCallContactPeriodSeconds", // Optional filter type. If omitted, the rule applies to the full contact "Data": { // Either "First" or "Last" needs to be specified. "First": number } }, { "Type": "ParticipantRole", "Data": "CUSTOMER" | "AGENT" | "ANY" } ] }
  • Negate - true or false. If set to true, it means If transcript does not contain any of the words mentioned in the Operands.

PostCall words or phrases - Semantic match

Parameters
  • Operator - "CONTAINS_ANY"

  • Operands – A list of strings

  • ComparisonValue – "$.ContactLens.PostCall.SemanticMatch.Transcript"

  • FilterClause –

    { "LogicOperator": "AND", // Only "AND" is supported "Filters": [ { "Type": "PostCallContactPeriodSeconds", // Optional filter type. If omitted, the rule applies to the full contact "Data": { // Either "First" or "Last" needs to be specified. "First": number } }, { "Type": "ParticipantRole", "Data": "CUSTOMER" | "AGENT" | "ANY" } ] }
  • Negate - true or false. If set to true, it means If transcript does not contain any of the words mentioned in the Operands.

PostCall natural language - Semantic match

Parameters
  • Operator - "EQUALS"

  • Operands – A list with a single string

  • ComparisonValue – ""$.ContactLens.PostCall.SemanticMatch.Phrase"

  • FilterClause –

    { Operator: "EQUALS", Operands: [ "Customer called to change their address and agent proceeded with the address change during the call." ], ComparisonValue: "$.ContactLens.PostCall.SemanticMatch.Phrase", Negate: true or false },
  • Negate - true or false. If set to true, it means If transcript does not contain any of the words mentioned in the Operands.

PostCall words or phrases - Pattern match

Parameters
  • Operator - "CONTAINS_ANY"

  • Operands – A list of pattern match objects. See PatternMatch Operands.

  • ComparisonValue – "$.ContactLens.PostCall.PatternMatch.Transcript"

  • FilterClause –

    { "LogicOperator": "AND", // Only "AND" is supported "Filters": [ { "Type": "PostCallContactPeriodSeconds", // Optional filter type. If omitted, the rule applies to the full contact "Data": { // Either "First" or "Last" needs to be specified. "First": number } }, { "Type": "ParticipantRole", "Data": "CUSTOMER" | "AGENT" | "ANY" }, { "Type": "PatternMatchLanguageFilter", "Data": "EN"|"ES"|"AR"|"DE"|"FR"|"HI"|"IT"|"PT"|"KO"|"JA"|"ZH" } ] }
  • Negate - true or false. If set to true, it means If transcript does not contain any of the words mentioned in the Operands.

PostCall agent condition

Parameters
  • Operator - "CONTAINS_ANY"

  • Operands – A list of agent IDs

  • ComparisonValue – "$.ContactLens.PostCall.Agent.AgentId"

  • Negate - false

PostCall queue condition

Parameters
  • Operator - "EQUALS"

  • Operands – No value.

  • ComparisonValue – "$.ContactLens.PostCall.Queue.QueueId"

  • Negate - False

PostCall contact attributes condition

Parameters
  • Operator - "EQUALS"

  • Operands – An array of string, array length can only be 1. Value is the contact attribute value.

  • ComparisonValue – "$.ContactLens.PostCall.ContactAttribute.YOUR_ATTRIBUTE_KEY"

  • Negate - true/false. If set to true, it means YOUR_ATTRIBUTE_KEY does not equal to the attribute value specified in the Operands. .

PostCall sentiment state condition

Parameters
  • Operator - "EQUALS"

  • Operands – An array of string, array length can only be 1. Value is one of "POSITIVE", "NEGATIVE", "NEUTRAL".

  • ComparisonValue – "$.ContactLens.PostCall.Sentiment.State"

  • FilterClause –

    { "LogicOperator": "AND", // Only "AND" is supported "Filters": [ { "Type": "ParticipantRole", "Data": "CUSTOMER" | "AGENT" | "ANY" }, ] }
  • Negate - false

PostCall sentiment overall score condition

Parameters
  • Operator - "NumberLessOrEqualTo | "NumberGreaterOrEqualTo"

  • Operands – An array of number, array length can only be 1. Value is an integer between -5 and 5, inclusive.

  • ComparisonValue – "$.ContactLens.PostCall.Sentiment.OverallScore"

  • FilterClause –

    { "LogicOperator": "AND", // Only "AND" is supported "Filters": [ { "Type": "ParticipantRole", "Data": "CUSTOMER" | "AGENT" | "ANY" }, ] }
  • Negate - false

PostCall sentiment score shift condition

PostCall sentiment score shift condition has a compound condition format where Operator is an AND condition and its operands consist of two conditions that represent beginning and end score respectively.

Parameters that represent the beginning score
  • Operator - "NumberLessOrEqualTo | "NumberGreaterOrEqualTo"

  • Operands – An array of number, array length can only be 1. Value is an integer between -5 and 5, inclusive.

  • ComparisonValue – "$.ContactLens.PostCall.Sentiment.Score.Beginning"

  • FilterClause –

    { "LogicOperator": "AND", // Only "AND" is supported "Filters": [ { "Type": "ParticipantRole", "Data": "CUSTOMER" | "AGENT" | "ANY" }, ] }
  • Negate - false

Parameters that represent the end score
  • Operator - "NumberLessOrEqualTo | "NumberGreaterOrEqualTo"

  • Operands – An array of number, array length can only be 1. Value is an integer between -5 and 5, inclusive.

  • ComparisonValue – "$.ContactLens.PostCall.Sentiment.Score.End"

  • FilterClause –

    { "LogicOperator": "AND", // Only "AND" is supported "Filters": [ { "Type": "ParticipantRole", "Data": "CUSTOMER" | "AGENT" | "ANY" }, ] }
  • Negate - false

Following is an example:

{ "Operator": "AND", "Operands": [ { "Operator": "NumberGreaterOrEqualTo", "Operands": [ 2 ], "ComparisonValue": "$.ContactLens.PostCall.Sentiment.Score.Beginning", "FilterClause": { "LogicOperator": "AND", "Filters": [ { "Type": "ParticipantRole", "Data": "AGENT" } ] }, "Negate": false }, { "Operator": "NumberGreaterOrEqualTo", "Operands": [ 3 ], "ComparisonValue": "$.ContactLens.PostCall.Sentiment.Score.End", "FilterClause": { "LogicOperator": "AND", "Filters": [ { "Type": "ParticipantRole", "Data": "AGENT" } ] }, "Negate": false } ] }
Parameters for overall score
  • Operator - "NumberLessOrEqualTo | "NumberGreaterOrEqualTo"

  • Operands – An array of number, array length can only be 1. Value is an integer between -5 and 5, inclusive.

  • ComparisonValue – "$.ContactLens.PostCall.Sentiment.OverallScore"

  • FilterClause –

    { "LogicOperator": "AND", // Only "AND" is supported "Filters": [ { "Type": "ParticipantRole", "Data": "CUSTOMER" | "AGENT" | "ANY" }, ] }
  • Negate - false

PostCall total non-talk time condition

Parameters
  • Operator - "NumberLessOrEqualTo | "NumberGreaterOrEqualTo"

  • Operands – An array of number, array length can only be 1. Value is an integer with minimum value 1.

  • ComparisonValue – "$.ContactLens.PostCall.NonTalkTime.TotalTimeSecs"

  • Negate - false

PostCall longest non-talk time condition

Parameters
  • Operator - "NumberLessOrEqualTo" | "NumberGreaterOrEqualTo"

  • Operands – An array of number, array length can only be 1. Value is an integer with minimum value 1.

  • ComparisonValue – "$.ContactLens.PostCall.NonTalkTime.LongestTimeSecs"

  • Negate - false

PostCall interruption condition

Parameters
  • Operator - "NumberLessOrEqualTo" | "NumberGreaterOrEqualTo"

  • Operands – An array of number, array length can only be 1. Value is an integer with minimum value 1.

  • ComparisonValue – "$.ContactLens.PostCall.Interruptions.Instances"

  • Negate - false

PostCall total hold time condition

Parameters
  • Operator - "NumberLessOrEqualTo" | "NumberGreaterOrEqualTo"

  • Operands – An array of number, array length can only be 1. Value is an integer with minimum value 1.

  • ComparisonValue – "$.ContactLens.PostCall.Agent.CustomerHoldDurationSecs"

  • Negate - false

PostCall longest hold time condition

Parameters
  • Operator - "NumberLessOrEqualTo" | "NumberGreaterOrEqualTo"

  • Operands – An array of number, array length can only be 1. Value is an integer with minimum value 1.

  • ComparisonValue – "$.ContactLens.PostCall.Agent.LongestHoldDurationSecs"

  • Negate - false

PostCall number of holds condition

Parameters
  • Operator - "NumberLessOrEqualTo" | "NumberGreaterOrEqualTo"

  • Operands – An array of number, array length can only be 1. Value is an integer with minimum value 1.

  • ComparisonValue – "$.ContactLens.PostCall.Agent.NumberOfHolds"

  • Negate - false

PostCall agent interaction duration condition

Parameters
  • Operator - "NumberLessOrEqualTo" | "NumberGreaterOrEqualTo"

  • Operands – An array of number, array length can only be 1. Value is an integer with minimum value 1.

  • "$.ContactLens.PostCall.Agent.AgentInteractionDurationSecs"

  • Negate - false