OnPostChatAnalysisAvailable - Amazon Connect

OnPostChatAnalysisAvailable

PostChat words or phrases - Exact match

Parameters
  • Operator - "CONTAINS_ANY"

  • Operands – A list of strings

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

  • FilterClause –

    { "LogicOperator": "AND", // Only "AND" is supported "Filters": [ { "Type": "PostChatContactPeriodSeconds", // 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.

PostChat words or phrases - Semantic match

Parameters
  • Operator - "CONTAINS_ANY"

  • Operands – A list of strings

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

  • FilterClause –

    { "LogicOperator": "AND", // Only "AND" is supported "Filters": [ { "Type": "PostChatContactPeriodSeconds", // 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.

PostChat natural language - Semantic match

Parameters
  • Operator - "EQUALS"

  • Operands – A list with a single string

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

  • FilterClause –

    { Operator: "EQUALS", Operands: [ "Customer called to change their address and agent proceeded with the address change during the call." ], ComparisonValue: "$.ContactLens.PostChat.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.

PostChat words or phrases - Pattern match

Parameters
  • Operator - "CONTAINS_ANY"

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

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

  • FilterClause –

    { "LogicOperator": "AND", // Only "AND" is supported "Filters": [ { "Type": "PostChatContactPeriodSeconds", // 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 the transcript does not contain any of the words mentioned in the Operands.

PostChat agent condition

Parameters
  • Operator - "CONTAINS_ANY"

  • Operands – A list of agent IDs

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

  • Negate - false

PostChat queue condition

Parameters
  • Operator - "CONTAINS_ANY"

  • Operands – A list of queue IDs

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

  • Negate - true/false. If set to true, it means If queue is not any of the queues mentioned in the Operands.

PostChat 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.PostChat.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 .

PostChat 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.PostChat.Sentiment.State"

  • FilterClause –

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

PostChat 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.PostChat.Sentiment.OverallScore"

  • FilterClause –

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

Postchat sentiment score shift condition

PostChat 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.PostChat.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.PostChat.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.PostChat.Sentiment.Score.Beginning", "FilterClause": { "LogicOperator": "AND", "Filters": [ { "Type": "ParticipantRole", "Data": "AGENT" } ] }, "Negate": false }, { "Operator": "NumberGreaterOrEqualTo", "Operands": [ 3 ], "ComparisonValue": "$.ContactLens.PostChat.Sentiment.Score.End", "FilterClause": { "LogicOperator": "AND", "Filters": [ { "Type": "ParticipantRole", "Data": "AGENT" } ] }, "Negate": false } ] }

PostChat agent first response 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.PostChat.ResponseTime.Agent.FirstResponseTimeSecs"

  • Negate - false

PostChat agent average response 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.PostChat.ResponseTime.Agent.AverageTimeSecs"

  • Negate - false

PostChat agent longest response 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.PostChat.ResponseTime.Agent.LongestTimeSecs"

  • Negate - false