2026/11/30 - Amazon Connect Service - 21 updated api methods
Changes This is the combined reInvent release for Amazon Connect.
{'Items': {'Question': {'Enablement': {'Condition': {'Operands': {'Expression': {'Source': {'AiMetricsField': {'AI_AGENT_GOAL_SUCCESS',
'AI_AGENT_INVOCATION_SUCCESS'}}}}}},
'QuestionTypeProperties': {'Numeric': {'Automation': {'PropertyValue': {'Label': {'AI_AGENT_CONTEXT_FIDELITY_SCORE',
'AI_AGENT_CONVERSATION_TURNS',
'LEX_BOT_INTENTS_SUCCESS_RATE'}}}},
'SingleSelect': {'Automation': {'Options': {'AutomationRule': {'Condition': {'Operands': {'Expression': {'Source': {'AiMetricsField': {'AI_AGENT_GOAL_SUCCESS',
'AI_AGENT_INVOCATION_SUCCESS'}}}}}}}}}}},
'Section': {'Enablement': {'Condition': {'Operands': {'Expression': {'Source': {'AiMetricsField': {'AI_AGENT_GOAL_SUCCESS',
'AI_AGENT_INVOCATION_SUCCESS'}}}}}}}},
'TargetConfiguration': {'AutomatedParticipantRole': 'LEX_BOT | AI_AGENT | '
'SYSTEM'}}
Creates an evaluation form in the specified Connect Customer instance. The form can be used to define questions related to agent performance, and create sections to organize such questions. Question and section identifiers cannot be duplicated within the same evaluation form.
See also: AWS API Documentation
Request Syntax
client.create_evaluation_form(
InstanceId='string',
Title='string',
Description='string',
Items=[
{
'Section': {
'Title': 'string',
'RefId': 'string',
'Instructions': 'string',
'Items': {'... recursive ...'},
'Weight': 123.0,
'IsExcludedFromScoring': True|False,
'ScoreThresholds': [
{
'PerformanceCategory': 'NEEDS_IMPROVEMENT'|'EXCEEDS_EXPECTATIONS',
'MinScorePercentage': 123.0,
'MaxScorePercentage': 123.0
},
],
'Enablement': {
'Condition': {
'Operands': [
{
'Expression': {
'Source': {
'Type': 'QUESTION_REF_ID'|'CONTACT'|'EVALUATION_METADATA'|'FORM_METADATA'|'AI_METRICS',
'RefId': 'string',
'ContactField': 'CATEGORIES'|'AGENT_ARN'|'QUEUE_ARN'|'ROUTING_PROFILE_ARN'|'CHANNEL'|'INITIATION_METHOD'|'IS_QUEUED'|'OVERALL_CUSTOMER_SENTIMENT_SCORE'|'OVERALL_AGENT_SENTIMENT_SCORE'|'CUSTOMER_SENTIMENT_SCORE_WITHOUT_AGENT'|'CUSTOMER_SENTIMENT_SCORE_WITH_AGENT'|'NON_TALK_TIME'|'NON_TALK_TIME_PERCENTAGE'|'NUMBER_OF_INTERRUPTIONS'|'CONTACT_DURATION'|'AGENT_INTERACTION_DURATION'|'CUSTOMER_HOLD_TIME'|'LONGEST_HOLD_DURATION'|'NUMBER_OF_HOLDS'|'AGENT_INTERACTION_AND_HOLD_DURATION'|'RECORDING_MEDIA_STREAM_TYPES',
'ContactAttributeKey': 'string',
'SegmentAttributeKey': 'string',
'EvaluationMetadataField': 'EVALUATION_TYPE',
'AiMetricsField': 'AI_SESSION_IS_HANDED_OFF'|'AI_SESSION_SELF_SERVICE_DURATION'|'AI_SESSION_GOAL_SUCCESS_RATE'|'AI_SESSION_COMPLETENESS_SCORE'|'AI_SESSION_FAITHFULNESS_SCORE'|'AI_AGENT_MAX_PROMPT_LATENCY'|'AI_AGENT_INVOCATION_SUCCESS'|'AI_AGENT_GOAL_SUCCESS'|'AI_TOOL_MAX_LATENCY'|'AI_TOOL_SELECTION_ACCURACY'|'AI_TOOL_PARAMETER_ACCURACY'|'AI_TOOL_UTILIZATION_ACCURACY'
},
'Values': [
{
'Type': 'OPTION_REF_ID'|'STRING_VALUE'|'NUMERIC_VALUE'|'BOOLEAN_VALUE'|'DATETIME_VALUE',
'RefId': 'string',
'StringValue': 'string',
'NumericValue': 123.0,
'BooleanValue': True|False,
'DateTimeValue': datetime(2015, 1, 1)
},
],
'Comparator': 'IN'|'NOT_IN'|'ALL_IN'|'EXACT'|'GREATER_THAN'|'LESS_THAN'|'GREATER_THAN_OR_EQUAL_TO'|'LESS_THAN_OR_EQUAL_TO'|'EQUAL_TO'|'NOT_EQUAL_TO'
},
'Condition': {'... recursive ...'}
},
],
'Operator': 'OR'|'AND'
},
'Action': 'DISABLE'|'ENABLE',
'DefaultAction': 'DISABLE'|'ENABLE'
}
},
'Question': {
'Title': 'string',
'Instructions': 'string',
'RefId': 'string',
'NotApplicableEnabled': True|False,
'QuestionType': 'TEXT'|'SINGLESELECT'|'NUMERIC'|'MULTISELECT'|'DATETIME',
'QuestionTypeProperties': {
'Numeric': {
'MinValue': 123,
'MaxValue': 123,
'Options': [
{
'MinValue': 123,
'MaxValue': 123,
'Score': 123,
'AutomaticFail': True|False,
'AutomaticFailConfiguration': {
'TargetSection': 'string'
},
'PointsConfiguration': {
'PointValue': 123,
'IsBonus': True|False
}
},
],
'Automation': {
'PropertyValue': {
'Label': 'OVERALL_CUSTOMER_SENTIMENT_SCORE'|'OVERALL_AGENT_SENTIMENT_SCORE'|'CUSTOMER_SENTIMENT_SCORE_WITHOUT_AGENT'|'CUSTOMER_SENTIMENT_SCORE_WITH_AGENT'|'NON_TALK_TIME'|'NON_TALK_TIME_PERCENTAGE'|'NUMBER_OF_INTERRUPTIONS'|'CONTACT_DURATION'|'AGENT_INTERACTION_DURATION'|'CUSTOMER_HOLD_TIME'|'LONGEST_HOLD_DURATION'|'NUMBER_OF_HOLDS'|'AGENT_INTERACTION_AND_HOLD_DURATION'|'AI_SESSION_SELF_SERVICE_DURATION'|'AI_SESSION_GOAL_SUCCESS_RATE'|'AI_SESSION_COMPLETENESS_SCORE'|'AI_SESSION_FAITHFULNESS_SCORE'|'AI_AGENT_MAX_PROMPT_LATENCY'|'AI_TOOL_MAX_LATENCY'|'AI_TOOL_SELECTION_ACCURACY'|'AI_TOOL_PARAMETER_ACCURACY'|'AI_TOOL_UTILIZATION_ACCURACY'|'AI_AGENT_CONVERSATION_TURNS'|'AI_AGENT_CONTEXT_FIDELITY_SCORE'|'LEX_BOT_INTENTS_SUCCESS_RATE'
},
'AnswerSource': {
'SourceType': 'CONTACT_LENS_DATA'|'GEN_AI'|'CONDITION'
}
}
},
'SingleSelect': {
'Options': [
{
'RefId': 'string',
'Text': 'string',
'Score': 123,
'AutomaticFail': True|False,
'AutomaticFailConfiguration': {
'TargetSection': 'string'
},
'PointsConfiguration': {
'PointValue': 123,
'IsBonus': True|False
}
},
],
'DisplayAs': 'DROPDOWN'|'RADIO',
'Automation': {
'Options': [
{
'RuleCategory': {
'Category': 'string',
'Condition': 'PRESENT'|'NOT_PRESENT',
'OptionRefId': 'string'
},
'AutomationRule': {
'Condition': {
'Operands': [
{
'Expression': {
'Source': {
'Type': 'QUESTION_REF_ID'|'CONTACT'|'EVALUATION_METADATA'|'FORM_METADATA'|'AI_METRICS',
'RefId': 'string',
'ContactField': 'CATEGORIES'|'AGENT_ARN'|'QUEUE_ARN'|'ROUTING_PROFILE_ARN'|'CHANNEL'|'INITIATION_METHOD'|'IS_QUEUED'|'OVERALL_CUSTOMER_SENTIMENT_SCORE'|'OVERALL_AGENT_SENTIMENT_SCORE'|'CUSTOMER_SENTIMENT_SCORE_WITHOUT_AGENT'|'CUSTOMER_SENTIMENT_SCORE_WITH_AGENT'|'NON_TALK_TIME'|'NON_TALK_TIME_PERCENTAGE'|'NUMBER_OF_INTERRUPTIONS'|'CONTACT_DURATION'|'AGENT_INTERACTION_DURATION'|'CUSTOMER_HOLD_TIME'|'LONGEST_HOLD_DURATION'|'NUMBER_OF_HOLDS'|'AGENT_INTERACTION_AND_HOLD_DURATION'|'RECORDING_MEDIA_STREAM_TYPES',
'ContactAttributeKey': 'string',
'SegmentAttributeKey': 'string',
'EvaluationMetadataField': 'EVALUATION_TYPE',
'AiMetricsField': 'AI_SESSION_IS_HANDED_OFF'|'AI_SESSION_SELF_SERVICE_DURATION'|'AI_SESSION_GOAL_SUCCESS_RATE'|'AI_SESSION_COMPLETENESS_SCORE'|'AI_SESSION_FAITHFULNESS_SCORE'|'AI_AGENT_MAX_PROMPT_LATENCY'|'AI_AGENT_INVOCATION_SUCCESS'|'AI_AGENT_GOAL_SUCCESS'|'AI_TOOL_MAX_LATENCY'|'AI_TOOL_SELECTION_ACCURACY'|'AI_TOOL_PARAMETER_ACCURACY'|'AI_TOOL_UTILIZATION_ACCURACY'
},
'Values': [
{
'Type': 'OPTION_REF_ID'|'STRING_VALUE'|'NUMERIC_VALUE'|'BOOLEAN_VALUE'|'DATETIME_VALUE',
'RefId': 'string',
'StringValue': 'string',
'NumericValue': 123.0,
'BooleanValue': True|False,
'DateTimeValue': datetime(2015, 1, 1)
},
],
'Comparator': 'IN'|'NOT_IN'|'ALL_IN'|'EXACT'|'GREATER_THAN'|'LESS_THAN'|'GREATER_THAN_OR_EQUAL_TO'|'LESS_THAN_OR_EQUAL_TO'|'EQUAL_TO'|'NOT_EQUAL_TO'
},
'Condition': {'... recursive ...'}
},
],
'Operator': 'OR'|'AND'
},
'OptionRefId': 'string'
}
},
],
'DefaultOptionRefId': 'string',
'AnswerSource': {
'SourceType': 'CONTACT_LENS_DATA'|'GEN_AI'|'CONDITION'
}
}
},
'Text': {
'Automation': {
'AnswerSource': {
'SourceType': 'CONTACT_LENS_DATA'|'GEN_AI'|'CONDITION'
}
}
},
'MultiSelect': {
'Options': [
{
'RefId': 'string',
'Text': 'string',
'Score': 123,
'AutomaticFail': True|False,
'AutomaticFailConfiguration': {
'TargetSection': 'string'
},
'PointsConfiguration': {
'PointValue': 123,
'IsBonus': True|False
}
},
],
'DisplayAs': 'DROPDOWN'|'CHECKBOX',
'Automation': {
'Options': [
{
'RuleCategory': {
'Category': 'string',
'Condition': 'PRESENT'|'NOT_PRESENT',
'OptionRefIds': [
'string',
]
}
},
],
'DefaultOptionRefIds': [
'string',
],
'AnswerSource': {
'SourceType': 'CONTACT_LENS_DATA'|'GEN_AI'|'CONDITION'
}
}
}
},
'Enablement': {
'Condition': {
'Operands': [
{
'Expression': {
'Source': {
'Type': 'QUESTION_REF_ID'|'CONTACT'|'EVALUATION_METADATA'|'FORM_METADATA'|'AI_METRICS',
'RefId': 'string',
'ContactField': 'CATEGORIES'|'AGENT_ARN'|'QUEUE_ARN'|'ROUTING_PROFILE_ARN'|'CHANNEL'|'INITIATION_METHOD'|'IS_QUEUED'|'OVERALL_CUSTOMER_SENTIMENT_SCORE'|'OVERALL_AGENT_SENTIMENT_SCORE'|'CUSTOMER_SENTIMENT_SCORE_WITHOUT_AGENT'|'CUSTOMER_SENTIMENT_SCORE_WITH_AGENT'|'NON_TALK_TIME'|'NON_TALK_TIME_PERCENTAGE'|'NUMBER_OF_INTERRUPTIONS'|'CONTACT_DURATION'|'AGENT_INTERACTION_DURATION'|'CUSTOMER_HOLD_TIME'|'LONGEST_HOLD_DURATION'|'NUMBER_OF_HOLDS'|'AGENT_INTERACTION_AND_HOLD_DURATION'|'RECORDING_MEDIA_STREAM_TYPES',
'ContactAttributeKey': 'string',
'SegmentAttributeKey': 'string',
'EvaluationMetadataField': 'EVALUATION_TYPE',
'AiMetricsField': 'AI_SESSION_IS_HANDED_OFF'|'AI_SESSION_SELF_SERVICE_DURATION'|'AI_SESSION_GOAL_SUCCESS_RATE'|'AI_SESSION_COMPLETENESS_SCORE'|'AI_SESSION_FAITHFULNESS_SCORE'|'AI_AGENT_MAX_PROMPT_LATENCY'|'AI_AGENT_INVOCATION_SUCCESS'|'AI_AGENT_GOAL_SUCCESS'|'AI_TOOL_MAX_LATENCY'|'AI_TOOL_SELECTION_ACCURACY'|'AI_TOOL_PARAMETER_ACCURACY'|'AI_TOOL_UTILIZATION_ACCURACY'
},
'Values': [
{
'Type': 'OPTION_REF_ID'|'STRING_VALUE'|'NUMERIC_VALUE'|'BOOLEAN_VALUE'|'DATETIME_VALUE',
'RefId': 'string',
'StringValue': 'string',
'NumericValue': 123.0,
'BooleanValue': True|False,
'DateTimeValue': datetime(2015, 1, 1)
},
],
'Comparator': 'IN'|'NOT_IN'|'ALL_IN'|'EXACT'|'GREATER_THAN'|'LESS_THAN'|'GREATER_THAN_OR_EQUAL_TO'|'LESS_THAN_OR_EQUAL_TO'|'EQUAL_TO'|'NOT_EQUAL_TO'
},
'Condition': {'... recursive ...'}
},
],
'Operator': 'OR'|'AND'
},
'Action': 'DISABLE'|'ENABLE',
'DefaultAction': 'DISABLE'|'ENABLE'
},
'Weight': 123.0,
'ScoringConfiguration': {
'PointsConfiguration': {
'MaxPointValue': 123,
'MinPointValue': 123,
'IsBonus': True|False
},
'IsExcludedFromScoring': True|False,
'ScoreThresholds': [
{
'PerformanceCategory': 'NEEDS_IMPROVEMENT'|'EXCEEDS_EXPECTATIONS',
'MinScorePercentage': 123.0,
'MaxScorePercentage': 123.0
},
]
},
'MetricConfiguration': {
'MetricType': 'BUSINESS_OUTCOME',
'MetricName': 'string'
}
}
},
],
ScoringStrategy={
'Mode': 'QUESTION_ONLY'|'SECTION_ONLY'|'POINTS_BASED',
'Status': 'ENABLED'|'DISABLED',
'ScoreThresholds': [
{
'PerformanceCategory': 'NEEDS_IMPROVEMENT'|'EXCEEDS_EXPECTATIONS',
'MinScorePercentage': 123.0,
'MaxScorePercentage': 123.0
},
]
},
AutoEvaluationConfiguration={
'Enabled': True|False
},
ClientToken='string',
AsDraft=True|False,
Tags={
'string': 'string'
},
ReviewConfiguration={
'ReviewNotificationRecipients': [
{
'Type': 'USER_ID',
'Value': {
'UserId': 'string'
}
},
],
'EligibilityDays': 123
},
TargetConfiguration={
'ContactInteractionType': 'AGENT'|'AUTOMATED'|'CUSTOMER',
'AutomatedParticipantRole': 'LEX_BOT'|'AI_AGENT'|'SYSTEM'
},
LanguageConfiguration={
'FormLanguage': 'de-DE'|'en-US'|'es-ES'|'fr-FR'|'it-IT'|'pt-BR'|'ja-JP'|'ko-KR'|'zh-CN'|'ms-MY'|'af-ZA'|'sq-AL'|'am-ET'|'ar-AE'|'ar-SA'|'hy-AM'|'eu-ES'|'be-BY'|'bs-BA'|'bg-BG'|'ca-ES'|'ckb-IR'|'ckb-IQ'|'zh-TW'|'hr-HR'|'cs-CZ'|'da-DK'|'nl-BE'|'nl-NL'|'en-AU'|'en-IN'|'en-IE'|'en-NZ'|'en-AB'|'en-SG'|'en-ZA'|'en-GB'|'en-WL'|'fa-IR'|'fa-AF'|'fi-FI'|'fr-BE'|'fr-CA'|'ga-IE'|'gl-ES'|'ka-GE'|'de-AT'|'de-CH'|'el-GR'|'gu-IN'|'ht-HT'|'he-IL'|'hi-IN'|'hu-HU'|'is-IS'|'id-ID'|'jv-ID'|'km-KH'|'kn-IN'|'kk-KZ'|'lo-LA'|'lv-LV'|'lt-LT'|'mk-MK'|'ml-IN'|'mr-IN'|'ne-NP'|'no-NO'|'or-IN'|'ps-AF'|'pl-PL'|'pt-PT'|'pa-IN'|'ro-RO'|'ru-RU'|'sr-RS'|'si-LK'|'sk-SK'|'sl-SI'|'es-MX'|'es-US'|'su-ID'|'sw-BI'|'sw-KE'|'sw-RW'|'sw-TZ'|'sw-UG'|'sv-SE'|'tl-PH'|'ta-IN'|'te-IN'|'th-TH'|'tr-TR'|'uk-UA'|'uz-UZ'|'vi-VN'|'zu-ZA'|'my-MM'|'so-SO'|'yue-HK'|'et-EE'|'hmn'|'lg-UG'|'cy-GB'|'xh-ZA'|'bn-BD'
},
AIVersion='string'
)
string
[REQUIRED]
The identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
string
[REQUIRED]
A title of the evaluation form.
string
The description of the evaluation form.
list
[REQUIRED]
Items that are part of the evaluation form. The total number of sections and questions must not exceed 100 each. Questions must be contained in a section.
(dict) --
Information about an item from an evaluation form. The item must be either a section or a question.
Section (dict) --
The information of the section.
Title (string) -- [REQUIRED]
The title of the section.
RefId (string) -- [REQUIRED]
The identifier of the section. An identifier must be unique within the evaluation form.
Instructions (string) --
The instructions of the section.
Items (list) --
The items of the section.
Weight (float) --
The scoring weight of the section.
IsExcludedFromScoring (boolean) --
The flag to exclude the section from scoring.
ScoreThresholds (list) --
The score thresholds for performance categories.
(dict) --
Information about a score threshold for a performance category.
PerformanceCategory (string) -- [REQUIRED]
The performance category name.
MinScorePercentage (float) --
The minimum score percentage for the performance category.
MaxScorePercentage (float) --
The maximum score percentage for the performance category.
Enablement (dict) --
The conditional enablement configuration of the section. Sections use the same enablement model as questions.
Condition (dict) -- [REQUIRED]
A condition for item enablement configuration.
Operands (list) -- [REQUIRED]
Operands of the enablement condition.
(dict) --
An operand of the enablement condition.
Expression (dict) --
An expression of the enablement condition.
Source (dict) -- [REQUIRED]
A source item of enablement expression.
Type (string) -- [REQUIRED]
A type of source item. Valid values:
QUESTION_REF_ID - The answer to another question in the evaluation form.
CONTACT - Data from the evaluated contact.
EVALUATION_METADATA - Metadata of the evaluation, such as the evaluation type.
AI_METRICS - Metrics about AI agents, AI sessions, and AI tools on the contact.
RefId (string) --
A referenceId of the source item. Use when Type is QUESTION_REF_ID.
ContactField (string) --
The contact field to use as the source, such as CHANNEL, QUEUE_ARN, OVERALL_CUSTOMER_SENTIMENT_SCORE, or RECORDING_MEDIA_STREAM_TYPES. Use when Type is CONTACT.
ContactAttributeKey (string) --
The key of the contact attribute to use as the source. Use when Type is CONTACT.
SegmentAttributeKey (string) --
The key of the contact segment attribute to use as the source. Use when Type is CONTACT.
EvaluationMetadataField (string) --
The evaluation metadata field to use as the source. Use when Type is EVALUATION_METADATA.
AiMetricsField (string) --
The AI metrics field to use as the source. Use when Type is AI_METRICS.
Values (list) -- [REQUIRED]
A list of values from source item.
(dict) --
An enablement expression source value. Provide only the value member that matches the specified Type.
Type (string) -- [REQUIRED]
A type of source item value. Valid values: OPTION_REF_ID | STRING_VALUE | NUMERIC_VALUE | BOOLEAN_VALUE | DATETIME_VALUE.
RefId (string) --
A referenceId of the source value. Use when Type is OPTION_REF_ID.
StringValue (string) --
A string value to compare against the source. Use when Type is STRING_VALUE.
NumericValue (float) --
A numeric value to compare against the source. Use when Type is NUMERIC_VALUE.
BooleanValue (boolean) --
A Boolean value to compare against the source. Use when Type is BOOLEAN_VALUE.
DateTimeValue (datetime) --
A date and time value to compare against the source. Use when Type is DATETIME_VALUE.
Comparator (string) -- [REQUIRED]
A comparator to be used against a list of values. IN, NOT_IN, ALL_IN, and EXACT compare sets of values. GREATER_THAN, LESS_THAN, GREATER_THAN_OR_EQUAL_TO, and LESS_THAN_OR_EQUAL_TO compare a single numeric or date and time value. EQUAL_TO and NOT_EQUAL_TO compare a single value.
Condition (dict) --
A condition for item enablement.
Operator (string) --
The operator to apply to the operands when more than one operand is provided.
Action (string) -- [REQUIRED]
The enablement action to apply if the condition is satisfied.
DefaultAction (string) --
The enablement action to apply if the condition is not satisfied. This action is also applied when the condition depends on an external source that is still pending or could not be resolved.
Question (dict) --
The information of the question.
Title (string) -- [REQUIRED]
The title of the question.
Instructions (string) --
The instructions of the section.
RefId (string) -- [REQUIRED]
The identifier of the question. An identifier must be unique within the evaluation form.
NotApplicableEnabled (boolean) --
The flag to enable not applicable answers to the question.
QuestionType (string) -- [REQUIRED]
The type of the question.
QuestionTypeProperties (dict) --
The properties of the type of question. Text questions do not have to define question type properties.
Numeric (dict) --
The properties of the numeric question.
MinValue (integer) -- [REQUIRED]
The minimum answer value.
MaxValue (integer) -- [REQUIRED]
The maximum answer value.
Options (list) --
The scoring options of the numeric question.
(dict) --
Information about the option range used for scoring in numeric questions.
MinValue (integer) -- [REQUIRED]
The minimum answer value of the range option.
MaxValue (integer) -- [REQUIRED]
The maximum answer value of the range option.
Score (integer) --
The score assigned to answer values within the range option.
AutomaticFail (boolean) --
The flag to mark the option as automatic fail. If an automatic fail answer is provided, the overall evaluation gets a score of 0.
AutomaticFailConfiguration (dict) --
A configuration for automatic fail.
TargetSection (string) --
The referenceId of the target section for auto failure.
PointsConfiguration (dict) --
The points configuration for point-based scoring.
PointValue (integer) -- [REQUIRED]
The point value assigned to the answer option.
IsBonus (boolean) --
The flag to mark the option as a bonus option.
Automation (dict) --
The automation properties of the numeric question.
PropertyValue (dict) --
The property value of the automation.
Label (string) -- [REQUIRED]
The property label of the automation.
AnswerSource (dict) --
A source of automation answer for numeric question.
SourceType (string) -- [REQUIRED]
The automation answer source type. Valid values:
CONTACT_LENS_DATA - The answer is based on Contact Lens data, such as rule categories and metrics.
GEN_AI - The answer is generated by generative AI.
CONDITION - The answer is determined by evaluating the conditions defined in the automation rules of the question.
SingleSelect (dict) --
The properties of the numeric question.
Options (list) -- [REQUIRED]
The answer options of the single select question.
(dict) --
Information about the automation configuration in single select questions.
RefId (string) -- [REQUIRED]
The identifier of the answer option. An identifier must be unique within the question.
Text (string) -- [REQUIRED]
The title of the answer option.
Score (integer) --
The score assigned to the answer option.
AutomaticFail (boolean) --
The flag to mark the option as automatic fail. If an automatic fail answer is provided, the overall evaluation gets a score of 0.
AutomaticFailConfiguration (dict) --
Whether automatic fail is configured on a single select question.
TargetSection (string) --
The referenceId of the target section for auto failure.
PointsConfiguration (dict) --
The points configuration for point-based scoring.
PointValue (integer) -- [REQUIRED]
The point value assigned to the answer option.
IsBonus (boolean) --
The flag to mark the option as a bonus option.
DisplayAs (string) --
The display mode of the single select question.
Automation (dict) --
The display mode of the single select question.
Options (list) --
The automation options of the single select question.
(dict) --
Information about the automation option of a single select question.
RuleCategory (dict) --
The automation option based on a rule category for the single select question.
Category (string) -- [REQUIRED]
The category name, as defined in Rules. This is equivalent to a conversational analytics rule with the same name: the automation option is applied based on whether that rule matched the contact. For more information about creating rules, see Create rules in the Connect Customer Administrator Guide.
Condition (string) -- [REQUIRED]
The condition to apply for the automation option. If the condition is PRESENT, then the option is applied when the contact data includes the category. Similarly, if the condition is NOT_PRESENT, then the option is applied when the contact data does not include the category.
OptionRefId (string) -- [REQUIRED]
The identifier of the answer option.
AutomationRule (dict) --
The automation option based on a condition for the single select question. Use with the CONDITION answer source type.
Condition (dict) -- [REQUIRED]
The condition that must be satisfied for the answer option to be selected. The condition uses the same sources, comparators, and operators as item enablement conditions.
Operands (list) -- [REQUIRED]
Operands of the enablement condition.
(dict) --
An operand of the enablement condition.
Expression (dict) --
An expression of the enablement condition.
Source (dict) -- [REQUIRED]
A source item of enablement expression.
Type (string) -- [REQUIRED]
A type of source item. Valid values:
QUESTION_REF_ID - The answer to another question in the evaluation form.
CONTACT - Data from the evaluated contact.
EVALUATION_METADATA - Metadata of the evaluation, such as the evaluation type.
AI_METRICS - Metrics about AI agents, AI sessions, and AI tools on the contact.
RefId (string) --
A referenceId of the source item. Use when Type is QUESTION_REF_ID.
ContactField (string) --
The contact field to use as the source, such as CHANNEL, QUEUE_ARN, OVERALL_CUSTOMER_SENTIMENT_SCORE, or RECORDING_MEDIA_STREAM_TYPES. Use when Type is CONTACT.
ContactAttributeKey (string) --
The key of the contact attribute to use as the source. Use when Type is CONTACT.
SegmentAttributeKey (string) --
The key of the contact segment attribute to use as the source. Use when Type is CONTACT.
EvaluationMetadataField (string) --
The evaluation metadata field to use as the source. Use when Type is EVALUATION_METADATA.
AiMetricsField (string) --
The AI metrics field to use as the source. Use when Type is AI_METRICS.
Values (list) -- [REQUIRED]
A list of values from source item.
(dict) --
An enablement expression source value. Provide only the value member that matches the specified Type.
Type (string) -- [REQUIRED]
A type of source item value. Valid values: OPTION_REF_ID | STRING_VALUE | NUMERIC_VALUE | BOOLEAN_VALUE | DATETIME_VALUE.
RefId (string) --
A referenceId of the source value. Use when Type is OPTION_REF_ID.
StringValue (string) --
A string value to compare against the source. Use when Type is STRING_VALUE.
NumericValue (float) --
A numeric value to compare against the source. Use when Type is NUMERIC_VALUE.
BooleanValue (boolean) --
A Boolean value to compare against the source. Use when Type is BOOLEAN_VALUE.
DateTimeValue (datetime) --
A date and time value to compare against the source. Use when Type is DATETIME_VALUE.
Comparator (string) -- [REQUIRED]
A comparator to be used against a list of values. IN, NOT_IN, ALL_IN, and EXACT compare sets of values. GREATER_THAN, LESS_THAN, GREATER_THAN_OR_EQUAL_TO, and LESS_THAN_OR_EQUAL_TO compare a single numeric or date and time value. EQUAL_TO and NOT_EQUAL_TO compare a single value.
Condition (dict) --
A condition for item enablement.
Operator (string) --
The operator to apply to the operands when more than one operand is provided.
OptionRefId (string) -- [REQUIRED]
The identifier of the answer option to select when the condition is satisfied.
DefaultOptionRefId (string) --
The identifier of the default answer option, when none of the automation options match the criteria.
AnswerSource (dict) --
Automation answer source.
SourceType (string) -- [REQUIRED]
The automation answer source type. Valid values:
CONTACT_LENS_DATA - The answer is based on Contact Lens data, such as rule categories and metrics.
GEN_AI - The answer is generated by generative AI.
CONDITION - The answer is determined by evaluating the conditions defined in the automation rules of the question.
Text (dict) --
The properties of the text question.
Automation (dict) --
The automation properties of the text question.
AnswerSource (dict) --
Automation answer source.
SourceType (string) -- [REQUIRED]
The automation answer source type. Valid values:
CONTACT_LENS_DATA - The answer is based on Contact Lens data, such as rule categories and metrics.
GEN_AI - The answer is generated by generative AI.
CONDITION - The answer is determined by evaluating the conditions defined in the automation rules of the question.
MultiSelect (dict) --
Properties for multi-select question types.
Options (list) -- [REQUIRED]
Options available for this multi-select question.
(dict) --
An option for a multi-select question in an evaluation form.
RefId (string) -- [REQUIRED]
Reference identifier for this option.
Text (string) -- [REQUIRED]
Display text for this option.
Score (integer) --
The score assigned to the answer option.
AutomaticFail (boolean) --
The flag to mark the option as automatic fail. If an automatic fail answer is provided, the overall evaluation gets a score of 0.
AutomaticFailConfiguration (dict) --
Information about automatic fail configuration for an evaluation form.
TargetSection (string) --
The referenceId of the target section for auto failure.
PointsConfiguration (dict) --
The points configuration for point-based scoring.
PointValue (integer) -- [REQUIRED]
The point value assigned to the answer option.
IsBonus (boolean) --
The flag to mark the option as a bonus option.
DisplayAs (string) --
Display format for the multi-select question.
Automation (dict) --
Automation configuration for this multi-select question.
Options (list) --
Automation options for the multi-select question.
(dict) --
An automation option for a multi-select question.
RuleCategory (dict) --
Rule category configuration for this automation option.
Category (string) -- [REQUIRED]
The category name for this automation rule.
Condition (string) -- [REQUIRED]
The condition for this automation rule.
OptionRefIds (list) -- [REQUIRED]
Reference IDs of options for this automation rule.
(string) --
DefaultOptionRefIds (list) --
Reference IDs of default options.
(string) --
AnswerSource (dict) --
Automation answer source.
SourceType (string) -- [REQUIRED]
The automation answer source type. Valid values:
CONTACT_LENS_DATA - The answer is based on Contact Lens data, such as rule categories and metrics.
GEN_AI - The answer is generated by generative AI.
CONDITION - The answer is determined by evaluating the conditions defined in the automation rules of the question.
Enablement (dict) --
A question conditional enablement.
Condition (dict) -- [REQUIRED]
A condition for item enablement configuration.
Operands (list) -- [REQUIRED]
Operands of the enablement condition.
(dict) --
An operand of the enablement condition.
Expression (dict) --
An expression of the enablement condition.
Source (dict) -- [REQUIRED]
A source item of enablement expression.
Type (string) -- [REQUIRED]
A type of source item. Valid values:
QUESTION_REF_ID - The answer to another question in the evaluation form.
CONTACT - Data from the evaluated contact.
EVALUATION_METADATA - Metadata of the evaluation, such as the evaluation type.
AI_METRICS - Metrics about AI agents, AI sessions, and AI tools on the contact.
RefId (string) --
A referenceId of the source item. Use when Type is QUESTION_REF_ID.
ContactField (string) --
The contact field to use as the source, such as CHANNEL, QUEUE_ARN, OVERALL_CUSTOMER_SENTIMENT_SCORE, or RECORDING_MEDIA_STREAM_TYPES. Use when Type is CONTACT.
ContactAttributeKey (string) --
The key of the contact attribute to use as the source. Use when Type is CONTACT.
SegmentAttributeKey (string) --
The key of the contact segment attribute to use as the source. Use when Type is CONTACT.
EvaluationMetadataField (string) --
The evaluation metadata field to use as the source. Use when Type is EVALUATION_METADATA.
AiMetricsField (string) --
The AI metrics field to use as the source. Use when Type is AI_METRICS.
Values (list) -- [REQUIRED]
A list of values from source item.
(dict) --
An enablement expression source value. Provide only the value member that matches the specified Type.
Type (string) -- [REQUIRED]
A type of source item value. Valid values: OPTION_REF_ID | STRING_VALUE | NUMERIC_VALUE | BOOLEAN_VALUE | DATETIME_VALUE.
RefId (string) --
A referenceId of the source value. Use when Type is OPTION_REF_ID.
StringValue (string) --
A string value to compare against the source. Use when Type is STRING_VALUE.
NumericValue (float) --
A numeric value to compare against the source. Use when Type is NUMERIC_VALUE.
BooleanValue (boolean) --
A Boolean value to compare against the source. Use when Type is BOOLEAN_VALUE.
DateTimeValue (datetime) --
A date and time value to compare against the source. Use when Type is DATETIME_VALUE.
Comparator (string) -- [REQUIRED]
A comparator to be used against a list of values. IN, NOT_IN, ALL_IN, and EXACT compare sets of values. GREATER_THAN, LESS_THAN, GREATER_THAN_OR_EQUAL_TO, and LESS_THAN_OR_EQUAL_TO compare a single numeric or date and time value. EQUAL_TO and NOT_EQUAL_TO compare a single value.
Condition (dict) --
A condition for item enablement.
Operator (string) --
The operator to apply to the operands when more than one operand is provided.
Action (string) -- [REQUIRED]
The enablement action to apply if the condition is satisfied.
DefaultAction (string) --
The enablement action to apply if the condition is not satisfied. This action is also applied when the condition depends on an external source that is still pending or could not be resolved.
Weight (float) --
The scoring weight of the section.
ScoringConfiguration (dict) --
The scoring configuration of the question.
PointsConfiguration (dict) --
The points configuration for point-based scoring.
MaxPointValue (integer) --
The maximum point value.
MinPointValue (integer) --
The minimum point value.
IsBonus (boolean) --
The flag to mark the question as a bonus question.
IsExcludedFromScoring (boolean) --
The flag to exclude the question from scoring.
ScoreThresholds (list) --
The score thresholds for performance categories.
(dict) --
Information about a score threshold for a performance category.
PerformanceCategory (string) -- [REQUIRED]
The performance category name.
MinScorePercentage (float) --
The minimum score percentage for the performance category.
MaxScorePercentage (float) --
The maximum score percentage for the performance category.
MetricConfiguration (dict) --
The metric configuration for the question. Use this to associate a business outcome metric with the question.
MetricType (string) -- [REQUIRED]
The type of metric. Currently, only BUSINESS_OUTCOME is supported.
MetricName (string) -- [REQUIRED]
The name of the metric. Valid values are:
SALE_SUCCESS – Sale success.
CSAT – Customer satisfaction.
CHURN_PROPENSITY – Churn propensity.
SELF_SERVICE_SUCCESS – Self-service success.
PARTIAL_SELF_SERVICE_SUCCESS – Partial self-service success.
dict
A scoring strategy of the evaluation form.
Mode (string) -- [REQUIRED]
The scoring mode of the evaluation form.
Status (string) -- [REQUIRED]
The scoring status of the evaluation form.
ScoreThresholds (list) --
The score thresholds for performance categories.
(dict) --
Information about a score threshold for a performance category.
PerformanceCategory (string) -- [REQUIRED]
The performance category name.
MinScorePercentage (float) --
The minimum score percentage for the performance category.
MaxScorePercentage (float) --
The maximum score percentage for the performance category.
dict
Configuration information about automated evaluations.
Enabled (boolean) -- [REQUIRED]
When automated evaluation is enabled.
string
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.
This field is autopopulated if not provided.
boolean
A boolean flag indicating whether to create evaluation form in draft state.
dict
The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.
(string) --
(string) --
dict
Configuration information about evaluation reviews.
ReviewNotificationRecipients (list) -- [REQUIRED]
List of recipients who should be notified when a review is requested.
(dict) --
Information about a recipient who should be notified when an evaluation review is requested.
Type (string) -- [REQUIRED]
The type of notification recipient.
Value (dict) -- [REQUIRED]
The value associated with the notification recipient type.
UserId (string) --
The user identifier for the notification recipient.
EligibilityDays (integer) --
Number of days during which a request for review can be submitted for evaluations created from this form.
dict
Configuration that specifies the target for the evaluation form.
ContactInteractionType (string) -- [REQUIRED]
The contact interaction type for this evaluation form.
AutomatedParticipantRole (string) --
The role of the automated participant that this evaluation form targets. This applies when the ContactInteractionType is AUTOMATED, and identifies which automated participant the evaluation is for, such as an Amazon Lex bot ( LEX_BOT), an AI agent ( AI_AGENT), or the system ( SYSTEM).
dict
Configuration for language settings of the evaluation form.
FormLanguage (string) --
The language for the evaluation form.
string
The AI version to use for the evaluation form. This specifies which AI model version is used for automated evaluations.
dict
Response Syntax
{
'EvaluationFormId': 'string',
'EvaluationFormArn': 'string'
}
Response Structure
(dict) --
EvaluationFormId (string) --
The unique identifier for the evaluation form.
EvaluationFormArn (string) --
The Amazon Resource Name (ARN) for the evaluation form resource.
{'Actions': {'SubmitAutoEvaluationAction': {'ParticipantSelection': {'ParticipantIdentifiers': ['string'],
'ParticipantType': 'AI_AGENT '
'| '
'LEX_BOT',
'SelectionMode': 'ALL '
'| '
'SPECIFIC'}}},
'TriggerEventSource': {'EventSourceName': {'OnAIAgentLogAvailable'}}}
Creates a rule for the specified Connect Customer instance.
Use the Rules Function language to code conditions for the rule.
See also: AWS API Documentation
Request Syntax
client.create_rule(
InstanceId='string',
Name='string',
TriggerEventSource={
'EventSourceName': 'OnPostCallAnalysisAvailable'|'OnRealTimeCallAnalysisAvailable'|'OnRealTimeChatAnalysisAvailable'|'OnPostChatAnalysisAvailable'|'OnAfterCallWorkAvailable'|'OnAfterChatWorkAvailable'|'OnEmailAnalysisAvailable'|'OnZendeskTicketCreate'|'OnZendeskTicketStatusUpdate'|'OnSalesforceCaseCreate'|'OnContactEvaluationSubmit'|'OnMetricDataUpdate'|'OnCaseCreate'|'OnCaseUpdate'|'OnSlaBreach'|'OnAlertUpdate'|'OnSchedulePublish'|'OnScheduleUpdate'|'OnScheduleTimeOffRequestActivity'|'OnAIAgentLogAvailable',
'IntegrationAssociationId': 'string'
},
Function='string',
Actions=[
{
'ActionType': 'CREATE_TASK'|'ASSIGN_CONTACT_CATEGORY'|'GENERATE_EVENTBRIDGE_EVENT'|'SEND_NOTIFICATION'|'CREATE_CASE'|'UPDATE_CASE'|'ASSIGN_SLA'|'END_ASSOCIATED_TASKS'|'END_ASSOCIATED_EMAILS'|'SUBMIT_AUTO_EVALUATION'|'EXTRACT_INFORMATION'|'SEND_IN_APP_NOTIFICATION',
'TaskAction': {
'Name': 'string',
'Description': 'string',
'ContactFlowId': 'string',
'References': {
'string': {
'Value': 'string',
'Type': 'URL'|'ATTACHMENT'|'CONTACT_ANALYSIS'|'NUMBER'|'STRING'|'DATE'|'EMAIL'|'EMAIL_MESSAGE'|'EMAIL_MESSAGE_PLAIN_TEXT'|'EMAIL_MESSAGE_PLAIN_TEXT_REDACTED'|'EMAIL_MESSAGE_REDACTED'|'VOICEMAIL_RECORDING'|'VOICEMAIL_RECORDING_REDACTED'|'VOICEMAIL_ANALYSIS'|'VOICEMAIL_ANALYSIS_REDACTED',
'Status': 'AVAILABLE'|'DELETED'|'APPROVED'|'REJECTED'|'PROCESSING'|'FAILED'|'DRAFTING',
'Arn': 'string',
'StatusReason': 'string'
}
}
},
'EventBridgeAction': {
'Name': 'string'
},
'AssignContactCategoryAction': {}
,
'SendNotificationAction': {
'DeliveryMethod': 'EMAIL',
'Subject': 'string',
'Content': 'string',
'ContentType': 'PLAIN_TEXT',
'Recipient': {
'UserTags': {
'string': 'string'
},
'UserIds': [
'string',
]
},
'Exclusion': {
'UserTags': {
'string': 'string'
},
'UserIds': [
'string',
]
}
},
'CreateCaseAction': {
'Fields': [
{
'Id': 'string',
'Value': {
'BooleanValue': True|False,
'DoubleValue': 123.0,
'EmptyValue': {}
,
'StringValue': 'string'
}
},
],
'TemplateId': 'string'
},
'UpdateCaseAction': {
'Fields': [
{
'Id': 'string',
'Value': {
'BooleanValue': True|False,
'DoubleValue': 123.0,
'EmptyValue': {}
,
'StringValue': 'string'
}
},
]
},
'AssignSlaAction': {
'SlaAssignmentType': 'CASES',
'CaseSlaConfiguration': {
'Name': 'string',
'Type': 'CaseField',
'FieldId': 'string',
'TargetFieldValues': [
{
'BooleanValue': True|False,
'DoubleValue': 123.0,
'EmptyValue': {}
,
'StringValue': 'string'
},
],
'TargetSlaMinutes': 123
}
},
'EndAssociatedTasksAction': {}
,
'EndAssociatedEmailsAction': {}
,
'SubmitAutoEvaluationAction': {
'EvaluationFormId': 'string',
'ParticipantSelection': {
'ParticipantType': 'AI_AGENT'|'LEX_BOT',
'SelectionMode': 'ALL'|'SPECIFIC',
'ParticipantIdentifiers': [
'string',
]
}
},
'ExtractInformationAction': {
'RulesExtractionDefinitions': [
{
'Identifier': 'string'
},
]
},
'SendInAppNotificationAction': {
'Content': {
'string': 'string'
},
'Recipient': {
'UserTags': {
'string': 'string'
},
'UserIds': [
'string',
]
},
'Exclusion': {
'UserTags': {
'string': 'string'
},
'UserIds': [
'string',
]
},
'Priority': 'HIGH'|'LOW'
}
},
],
PublishStatus='DRAFT'|'PUBLISHED',
PreEvaluationFilters={
'AndConditions': [
{
'ResourceType': 'CONTACT'|'CONTACT_EVALUATION',
'FilterType': 'TAG',
'FilterKey': 'string',
'FilterValue': 'string',
'Operator': 'EQUALS'
},
]
},
ClientToken='string',
Tags={
'string': 'string'
}
)
string
[REQUIRED]
The identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
string
[REQUIRED]
A unique name for the rule.
dict
[REQUIRED]
The event source to trigger the rule.
EventSourceName (string) -- [REQUIRED]
The name of the event source.
IntegrationAssociationId (string) --
The identifier for the integration association.
string
[REQUIRED]
The conditions of the rule.
list
[REQUIRED]
A list of actions to be run when the rule is triggered.
(dict) --
Information about the action to be performed when a rule is triggered.
ActionType (string) -- [REQUIRED]
The type of action that creates a rule.
TaskAction (dict) --
Information about the task action. This field is required if TriggerEventSource is one of the following values: OnZendeskTicketCreate | OnZendeskTicketStatusUpdate | OnSalesforceCaseCreate
Name (string) -- [REQUIRED]
The name. Supports variable injection. For more information, see JSONPath reference in the Connect Customer Administrators Guide.
Description (string) --
The description. Supports variable injection. For more information, see JSONPath reference in the Connect Customer Administrators Guide.
ContactFlowId (string) -- [REQUIRED]
The identifier of the flow.
References (dict) --
Information about the reference when the referenceType is URL. Otherwise, null. (Supports variable injection in the Value field.)
(string) --
(dict) --
Well-formed data on a contact, used by agents to complete a contact request. You can have up to 4,096 UTF-8 bytes across all references for a contact.
Value (string) --
A valid value for the reference. For example, for a URL reference, a formatted URL that is displayed to an agent in the Contact Control Panel (CCP).
Type (string) -- [REQUIRED]
The type of the reference. DATE must be of type Epoch timestamp.
Status (string) --
Status of the attachment reference type.
Arn (string) --
The Amazon Resource Name (ARN) of the reference
StatusReason (string) --
Relevant details why the reference was not successfully created.
EventBridgeAction (dict) --
Information about the EventBridge action.
Supported only for TriggerEventSource values: OnPostCallAnalysisAvailable | OnRealTimeCallAnalysisAvailable | OnRealTimeChatAnalysisAvailable | OnPostChatAnalysisAvailable | OnContactEvaluationSubmit | OnMetricDataUpdate
Name (string) -- [REQUIRED]
The name.
AssignContactCategoryAction (dict) --
Information about the contact category action.
Supported only for TriggerEventSource values: OnPostCallAnalysisAvailable | OnRealTimeCallAnalysisAvailable | OnRealTimeChatAnalysisAvailable | OnPostChatAnalysisAvailable | OnZendeskTicketCreate | OnZendeskTicketStatusUpdate | OnSalesforceCaseCreate
SendNotificationAction (dict) --
Information about the send notification action.
Supported only for TriggerEventSource values: OnPostCallAnalysisAvailable | OnRealTimeCallAnalysisAvailable | OnRealTimeChatAnalysisAvailable | OnPostChatAnalysisAvailable | OnContactEvaluationSubmit | OnMetricDataUpdate
DeliveryMethod (string) -- [REQUIRED]
Notification delivery method.
Subject (string) --
The subject of the email if the delivery method is EMAIL. Supports variable injection. For more information, see JSONPath reference in the Connect Customer Administrators Guide.
Content (string) -- [REQUIRED]
Notification content. Supports variable injection. For more information, see JSONPath reference in the Connect Customer Administrators Guide.
ContentType (string) -- [REQUIRED]
Content type format.
Recipient (dict) -- [REQUIRED]
Notification recipient.
UserTags (dict) --
The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }. Connect Customer users with the specified tags will be notified.
(string) --
(string) --
UserIds (list) --
A list of user IDs. Supports variable injection of $.ContactLens.ContactEvaluation.Agent.AgentId for OnContactEvaluationSubmit event source.
(string) --
Exclusion (dict) --
Recipients to exclude from notification.
UserTags (dict) --
The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }. Connect Customer users with the specified tags will be notified.
(string) --
(string) --
UserIds (list) --
A list of user IDs. Supports variable injection of $.ContactLens.ContactEvaluation.Agent.AgentId for OnContactEvaluationSubmit event source.
(string) --
CreateCaseAction (dict) --
Information about the create case action.
Supported only for TriggerEventSource values: OnPostCallAnalysisAvailable | OnPostChatAnalysisAvailable.
Fields (list) -- [REQUIRED]
An array of objects with Field ID and Value data.
(dict) --
Object for case field values.
Id (string) -- [REQUIRED]
Unique identifier of a field.
Value (dict) -- [REQUIRED]
Union of potential field value types.
BooleanValue (boolean) --
A Boolean number value type.
DoubleValue (float) --
A Double number value type.
EmptyValue (dict) --
An empty value.
StringValue (string) --
String value type.
TemplateId (string) -- [REQUIRED]
A unique identifier of a template.
UpdateCaseAction (dict) --
Information about the update case action.
Supported only for TriggerEventSource values: OnCaseCreate | OnCaseUpdate.
Fields (list) -- [REQUIRED]
An array of objects with Field ID and Value data.
(dict) --
Object for case field values.
Id (string) -- [REQUIRED]
Unique identifier of a field.
Value (dict) -- [REQUIRED]
Union of potential field value types.
BooleanValue (boolean) --
A Boolean number value type.
DoubleValue (float) --
A Double number value type.
EmptyValue (dict) --
An empty value.
StringValue (string) --
String value type.
AssignSlaAction (dict) --
Information about the assign SLA action.
SlaAssignmentType (string) -- [REQUIRED]
Type of SLA assignment.
CaseSlaConfiguration (dict) --
The SLA configuration for Case SLA Assignment.
Name (string) -- [REQUIRED]
Name of an SLA.
Type (string) -- [REQUIRED]
Type of SLA for Case SlaAssignmentType.
FieldId (string) --
Unique identifier of a Case field.
TargetFieldValues (list) --
Represents a list of target field values for the fieldId specified in CaseSlaConfiguration. The SLA is considered met if any one of these target field values matches the actual field value.
(dict) --
Object to store union of Field values.
BooleanValue (boolean) --
A Boolean number value type.
DoubleValue (float) --
A Double number value type.
EmptyValue (dict) --
An empty value.
StringValue (string) --
String value type.
TargetSlaMinutes (integer) -- [REQUIRED]
Target duration in minutes within which an SLA should be completed.
EndAssociatedTasksAction (dict) --
Information about the end associated tasks action.
Supported only for TriggerEventSource values: OnCaseUpdate.
EndAssociatedEmailsAction (dict) --
Information about the end associated emails action.
Supported only for TriggerEventSource values: OnCaseUpdate.
SubmitAutoEvaluationAction (dict) --
Information about the submit automated evaluation action.
EvaluationFormId (string) -- [REQUIRED]
The identifier of the auto-evaluation enabled form.
ParticipantSelection (dict) --
The automated participants in the contact to evaluate. Amazon Connect submits one evaluation for each selected participant. This field is required when TriggerEventSource is OnAIAgentLogAvailable, and is not supported for any other event source.
ParticipantType (string) -- [REQUIRED]
The type of automated participant to evaluate. If the evaluation form specifies an automated participant role, this value must match it.
SelectionMode (string) -- [REQUIRED]
Whether to evaluate all participants of the specified type in the contact ( ALL) or only the participants listed in ParticipantIdentifiers ( SPECIFIC).
ParticipantIdentifiers (list) --
The identifiers of the participants to evaluate. Each entry can be a resource ID or an ARN of an AI agent or an Amazon Lex bot alias; version qualifiers are ignored. This field is required when SelectionMode is SPECIFIC, and is not supported when SelectionMode is ALL.
(string) --
ExtractInformationAction (dict) --
Information about the extract information action.
RulesExtractionDefinitions (list) -- [REQUIRED]
The list of extraction definition identifiers that specify what data to extract.
(dict) --
An identifier that references an extraction definition resource.
Identifier (string) -- [REQUIRED]
The identifier of the extraction definition.
SendInAppNotificationAction (dict) --
Information about the send in-app notification action.
Supported only for TriggerEventSource values: OnPostCallAnalysisAvailable | OnRealTimeCallAnalysisAvailable | OnRealTimeChatAnalysisAvailable | OnPostChatAnalysisAvailable | OnAfterCallWorkAvailable | OnAfterChatWorkAvailable | OnEmailAnalysisAvailable | OnContactEvaluationSubmit | OnCaseCreate | OnCaseUpdate | OnSlaBreach | OnSchedulePublish | OnScheduleUpdate | OnScheduleTimeOffRequestActivity
Content (dict) -- [REQUIRED]
Notification content. Supports variable injection. For more information, see JSONPath reference in the Connect Customer Administrators Guide.
(string) --
The locale code for localized content. Supported values include en_US, de_DE, es_ES, fr_FR, id_ID, it_IT, ja_JP, ko_KR, pt_BR, zh_CN, and zh_TW.
(string) --
A localized string value. Maximum length is 500 visible characters. In a markdown link of the form [label](url), only the label counts toward the limit.
Recipient (dict) -- [REQUIRED]
Notification recipient.
UserTags (dict) --
The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }. Connect Customer users with the specified tags will be notified.
(string) --
(string) --
UserIds (list) --
A list of user IDs. Supports variable injection of $.ContactLens.ContactEvaluation.Agent.AgentId for OnContactEvaluationSubmit event source.
(string) --
Exclusion (dict) --
Recipients to exclude from notification.
UserTags (dict) --
The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }. Connect Customer users with the specified tags will be notified.
(string) --
(string) --
UserIds (list) --
A list of user IDs. Supports variable injection of $.ContactLens.ContactEvaluation.Agent.AgentId for OnContactEvaluationSubmit event source.
(string) --
Priority (string) --
Notification priority.
string
[REQUIRED]
The publish status of the rule.
dict
The pre-evaluation filters for the rule, that restrict the rule to be applied to only certain resources based on the resource's attributes, such as tags assigned to a contact. The pre-evaluation filters are applied even before rule conditions are evaluated and are used to enforce tag-based-access-control while applying rules.
AndConditions (list) --
A list of conditions that the rule evaluates together using AND logic. All conditions must be met for the event to be evaluated by the rule.
(dict) --
A single pre-evaluation filter condition. Specifies a resource type, filter type, key, value, and operator to match against a resource attribute.
ResourceType (string) -- [REQUIRED]
The type of resource to filter on. Valid values:
CONTACT - Filter on attributes of the contact, such as tags assigned to the contact.
CONTACT_EVALUATION - Filter on attributes of the contact evaluation, such as tags assigned to the contact evaluation, for rules triggered on the OnContactEvaluationSubmit event source.
FilterType (string) -- [REQUIRED]
The type of filter to apply. Valid values: TAG.
FilterKey (string) -- [REQUIRED]
The key of the attribute to filter on. For tag filters, this is the tag key.
FilterValue (string) -- [REQUIRED]
The value to match against. For tag filters, this is the tag value.
Operator (string) -- [REQUIRED]
The comparison operator for the filter condition. Valid values: EQUALS.
string
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.
This field is autopopulated if not provided.
dict
The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.
(string) --
(string) --
dict
Response Syntax
{
'RuleArn': 'string',
'RuleId': 'string'
}
Response Structure
(dict) --
RuleArn (string) --
The Amazon Resource Name (ARN) of the rule.
RuleId (string) --
A unique identifier for the rule.
{'EntryPoint': {'VoiceCallEntryPointParameters': {'TranscriptionLanguageCodes': ['string']}},
'SyntheticCustomerConfiguration': {'Enabled': 'boolean',
'Persona': {'CommunicationStyle': 'STANDARD '
'| '
'VERBOSE '
'| '
'CONCISE '
'| TERSE',
'Cooperativeness': 'NEUTRAL | '
'COOPERATIVE '
'| '
'UNCOOPERATIVE',
'DomainKnowledge': 'string',
'EmotionalState': 'NEUTRAL | '
'FRUSTRATED '
'| ANGRY | '
'ANXIOUS | '
'HAPPY | '
'CONFUSED',
'Language': 'string',
'Name': 'string',
'Voice': 'string',
'VoiceEngine': 'STANDARD | '
'NEURAL | '
'GENERATIVE'},
'Scenario': {'ExpectedOutcome': 'string',
'Goal': 'string',
'InitialQuery': 'string',
'KnownInputs': [{'InputName': 'string',
'InputValue': 'string'}],
'Name': 'string',
'StopConditions': {'MaxTurns': 'integer'}}}}
Creates a test case with its content and metadata for the specified Amazon Connect instance.
See also: AWS API Documentation
Request Syntax
client.create_test_case(
InstanceId='string',
Name='string',
Description='string',
Content='string',
EntryPoint={
'Type': 'VOICE_CALL'|'CHAT',
'VoiceCallEntryPointParameters': {
'SourcePhoneNumber': 'string',
'DestinationPhoneNumber': 'string',
'FlowId': 'string',
'TranscriptionLanguageCodes': [
'string',
]
},
'ChatEntryPointParameters': {
'FlowId': 'string'
}
},
InitializationData='string',
SyntheticCustomerConfiguration={
'Enabled': True|False,
'Persona': {
'Name': 'string',
'CommunicationStyle': 'STANDARD'|'VERBOSE'|'CONCISE'|'TERSE',
'Language': 'string',
'Voice': 'string',
'VoiceEngine': 'STANDARD'|'NEURAL'|'GENERATIVE',
'DomainKnowledge': 'string',
'EmotionalState': 'NEUTRAL'|'FRUSTRATED'|'ANGRY'|'ANXIOUS'|'HAPPY'|'CONFUSED',
'Cooperativeness': 'NEUTRAL'|'COOPERATIVE'|'UNCOOPERATIVE'
},
'Scenario': {
'Name': 'string',
'Goal': 'string',
'ExpectedOutcome': 'string',
'InitialQuery': 'string',
'StopConditions': {
'MaxTurns': 123
},
'KnownInputs': [
{
'InputName': 'string',
'InputValue': 'string'
},
]
}
},
Status='PUBLISHED'|'SAVED',
TestCaseId='string',
Tags={
'string': 'string'
},
LastModifiedTime=datetime(2015, 1, 1),
LastModifiedRegion='string'
)
string
[REQUIRED]
The identifier of the Amazon Connect instance.
string
[REQUIRED]
The name of the test.
string
The description of the test.
string
[REQUIRED]
The JSON string that represents the content of the test.
dict
Defines the starting point for your test.
Type (string) --
The type of entry point.
VoiceCallEntryPointParameters (dict) --
Parameters for voice call entry point.
SourcePhoneNumber (string) --
The source phone number for the test.
DestinationPhoneNumber (string) --
The destination phone number for the test.
FlowId (string) --
The flow identifier for the test.
TranscriptionLanguageCodes (list) --
The language codes that Amazon Connect uses to transcribe the voice call during the test, for example en-US. You can specify up to 5 unique codes. If you specify more than one code, Amazon Connect identifies the language automatically from those codes.
(string) --
ChatEntryPointParameters (dict) --
Parameters for chat entry point.
FlowId (string) --
The flow identifier for the test.
string
Defines the initial custom attributes for your test.
dict
The configuration of an AI-driven synthetic customer that you use to simulate the customer side of the test. If you set Enabled to true and the test case status to PUBLISHED, you must provide a Persona with a Name, and a Scenario with a Name, Goal, and ExpectedOutcome. If the test case status is SAVED, you can provide a partial configuration.
Enabled (boolean) -- [REQUIRED]
Specifies whether the test case runs with the AI-driven synthetic customer. If you set this to true, the synthetic customer interacts with your flow, and you must include a Persona with a Name, and a Scenario with a Name, Goal, and ExpectedOutcome, before you publish the test case. If you set this to false, the test case runs from its observations. Your Persona and Scenario remain part of the test case, so you can turn the synthetic customer back on later, but they aren't used in the test.
Persona (dict) --
Who the synthetic customer is.
Name (string) --
The name of the persona.
CommunicationStyle (string) --
How the synthetic customer communicates.
Language (string) --
The language that the synthetic customer uses, for example en-US.
Voice (string) --
The Amazon Polly voice for the synthetic customer, for example Joanna.
VoiceEngine (string) --
The Amazon Polly engine that synthesizes the speech of the synthetic customer. Choose an engine that the selected Voice supports. If you don't specify an engine, Amazon Polly uses the standard engine.
DomainKnowledge (string) --
The background knowledge that the synthetic customer brings to the conversation.
EmotionalState (string) --
How the synthetic customer feels during the conversation.
Cooperativeness (string) --
How cooperative the synthetic customer is.
Scenario (dict) --
The situation and goal of the synthetic customer.
Name (string) --
The name of the scenario.
Goal (string) --
What the synthetic customer is trying to accomplish.
ExpectedOutcome (string) --
The result that counts as a successful test.
InitialQuery (string) --
The opening message of the synthetic customer.
StopConditions (dict) --
The limits that end the simulation if the expected outcome isn't reached.
MaxTurns (integer) --
The maximum number of exchanges between the synthetic customer and your flow. If you don't specify a value, the default is 50.
KnownInputs (list) --
The information that the synthetic customer knows and provides when asked, such as a reservation number. You can specify up to 20 inputs.
(dict) --
Contains a named value that the synthetic customer provides when asked.
InputName (string) -- [REQUIRED]
The name of the input, for example ReservationId.
InputValue (string) -- [REQUIRED]
The value of the input.
string
Indicates the test status as either SAVED or PUBLISHED. The PUBLISHED status will initiate validation on the content. The SAVED status does not initiate validation of the content.
string
Id of the test case if you want to create it in a replica region using Amazon Connect Global Resiliency
dict
The tags used to organize, track, or control access for this resource.
(string) --
(string) --
datetime
The time at which the resource was last modified.
string
The region in which the resource was last modified
dict
Response Syntax
{
'TestCaseId': 'string',
'TestCaseArn': 'string'
}
Response Structure
(dict) --
TestCaseId (string) --
The identifier of the test.
TestCaseArn (string) --
The Amazon Resource Name (ARN) of the test.
{'Evaluation': {'Metadata': {'ContactParticipant': {'ContactParticipantRole': {'AI_AGENT',
'LEX_BOT'}}},
'SourceValues': {'Source': {'AiMetricsField': {'AI_AGENT_GOAL_SUCCESS',
'AI_AGENT_INVOCATION_SUCCESS'}}}},
'EvaluationForm': {'Items': {'Question': {'Enablement': {'Condition': {'Operands': {'Expression': {'Source': {'AiMetricsField': {'AI_AGENT_GOAL_SUCCESS',
'AI_AGENT_INVOCATION_SUCCESS'}}}}}},
'QuestionTypeProperties': {'Numeric': {'Automation': {'PropertyValue': {'Label': {'AI_AGENT_CONTEXT_FIDELITY_SCORE',
'AI_AGENT_CONVERSATION_TURNS',
'LEX_BOT_INTENTS_SUCCESS_RATE'}}}},
'SingleSelect': {'Automation': {'Options': {'AutomationRule': {'Condition': {'Operands': {'Expression': {'Source': {'AiMetricsField': {'AI_AGENT_GOAL_SUCCESS',
'AI_AGENT_INVOCATION_SUCCESS'}}}}}}}}}}},
'Section': {'Enablement': {'Condition': {'Operands': {'Expression': {'Source': {'AiMetricsField': {'AI_AGENT_GOAL_SUCCESS',
'AI_AGENT_INVOCATION_SUCCESS'}}}}}}}},
'TargetConfiguration': {'AutomatedParticipantRole': 'LEX_BOT '
'| '
'AI_AGENT '
'| '
'SYSTEM'}}}
Describes a contact evaluation in the specified Connect Customer instance.
See also: AWS API Documentation
Request Syntax
client.describe_contact_evaluation(
InstanceId='string',
EvaluationId='string'
)
string
[REQUIRED]
The identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
string
[REQUIRED]
A unique identifier for the contact evaluation.
dict
Response Syntax
{
'Evaluation': {
'EvaluationId': 'string',
'EvaluationArn': 'string',
'Metadata': {
'ContactId': 'string',
'EvaluatorArn': 'string',
'ContactAgentId': 'string',
'CalibrationSessionId': 'string',
'Score': {
'Percentage': 123.0,
'NotApplicable': True|False,
'AutomaticFail': True|False,
'AppliedWeight': 123.0,
'EarnedPoints': 123,
'MaxBasePoint': 123,
'PerformanceCategory': 'NEEDS_IMPROVEMENT'|'EXCEEDS_EXPECTATIONS'
},
'AutoEvaluation': {
'AutoEvaluationEnabled': True|False,
'AutoEvaluationStatus': 'IN_PROGRESS'|'FAILED'|'SUCCEEDED'
},
'Acknowledgement': {
'AcknowledgedTime': datetime(2015, 1, 1),
'AcknowledgedBy': 'string',
'AcknowledgerComment': 'string'
},
'Review': {
'ReviewId': 'string',
'RequestedTime': datetime(2015, 1, 1),
'RequestedBy': 'string',
'CreatedTime': datetime(2015, 1, 1),
'CreatedBy': 'string',
'ReviewRequestComments': [
{
'Comment': 'string',
'CreatedTime': datetime(2015, 1, 1),
'CreatedBy': 'string'
},
]
},
'ContactParticipant': {
'ContactParticipantRole': 'AGENT'|'SYSTEM'|'CUSTOM_BOT'|'CUSTOMER'|'LEX_BOT'|'AI_AGENT',
'ContactParticipantId': 'string'
},
'SamplingJobId': 'string'
},
'Answers': {
'string': {
'Value': {
'StringValue': 'string',
'NumericValue': 123.0,
'StringValues': [
'string',
],
'DateTimeValue': 'string',
'NotApplicable': True|False
},
'SystemSuggestedValue': {
'StringValue': 'string',
'NumericValue': 123.0,
'StringValues': [
'string',
],
'DateTimeValue': 'string',
'NotApplicable': True|False
},
'SuggestedAnswers': [
{
'Value': {
'StringValue': 'string',
'NumericValue': 123.0,
'StringValues': [
'string',
],
'DateTimeValue': 'string',
'NotApplicable': True|False
},
'Status': 'IN_PROGRESS'|'FAILED'|'SUCCEEDED',
'Input': {
'TranscriptType': 'RAW'|'REDACTED'
},
'AnalysisType': 'CONTACT_LENS_DATA'|'GEN_AI'|'CONDITION',
'AnalysisDetails': {
'GenAI': {
'Justification': 'string',
'PointsOfInterest': [
{
'MillisecondOffsets': {
'BeginOffsetMillis': 123
},
'TranscriptSegment': 'string'
},
]
},
'ContactLens': {
'MatchedRuleCategories': [
{
'Category': 'string',
'Condition': 'PRESENT'|'NOT_PRESENT',
'PointsOfInterest': [
{
'MillisecondOffsets': {
'BeginOffsetMillis': 123
},
'TranscriptSegment': 'string'
},
]
},
]
}
}
},
]
}
},
'Notes': {
'string': {
'Value': 'string'
}
},
'Status': 'DRAFT'|'SUBMITTED'|'REVIEW_REQUESTED'|'UNDER_REVIEW',
'Scores': {
'string': {
'Percentage': 123.0,
'NotApplicable': True|False,
'AutomaticFail': True|False,
'AppliedWeight': 123.0,
'EarnedPoints': 123,
'MaxBasePoint': 123,
'PerformanceCategory': 'NEEDS_IMPROVEMENT'|'EXCEEDS_EXPECTATIONS'
}
},
'CreatedTime': datetime(2015, 1, 1),
'LastModifiedTime': datetime(2015, 1, 1),
'EvaluationType': 'STANDARD'|'CALIBRATION',
'Tags': {
'string': 'string'
},
'ItemEnablementStatus': {
'string': 'ENABLED'|'DISABLED'
},
'SourceResolutionStatus': 'PENDING'|'RESOLVED'|'FAILED',
'SourceValues': [
{
'Source': {
'Type': 'QUESTION_REF_ID'|'CONTACT'|'EVALUATION_METADATA'|'FORM_METADATA'|'AI_METRICS',
'RefId': 'string',
'ContactField': 'CATEGORIES'|'AGENT_ARN'|'QUEUE_ARN'|'ROUTING_PROFILE_ARN'|'CHANNEL'|'INITIATION_METHOD'|'IS_QUEUED'|'OVERALL_CUSTOMER_SENTIMENT_SCORE'|'OVERALL_AGENT_SENTIMENT_SCORE'|'CUSTOMER_SENTIMENT_SCORE_WITHOUT_AGENT'|'CUSTOMER_SENTIMENT_SCORE_WITH_AGENT'|'NON_TALK_TIME'|'NON_TALK_TIME_PERCENTAGE'|'NUMBER_OF_INTERRUPTIONS'|'CONTACT_DURATION'|'AGENT_INTERACTION_DURATION'|'CUSTOMER_HOLD_TIME'|'LONGEST_HOLD_DURATION'|'NUMBER_OF_HOLDS'|'AGENT_INTERACTION_AND_HOLD_DURATION'|'RECORDING_MEDIA_STREAM_TYPES',
'ContactAttributeKey': 'string',
'SegmentAttributeKey': 'string',
'EvaluationMetadataField': 'EVALUATION_TYPE',
'AiMetricsField': 'AI_SESSION_IS_HANDED_OFF'|'AI_SESSION_SELF_SERVICE_DURATION'|'AI_SESSION_GOAL_SUCCESS_RATE'|'AI_SESSION_COMPLETENESS_SCORE'|'AI_SESSION_FAITHFULNESS_SCORE'|'AI_AGENT_MAX_PROMPT_LATENCY'|'AI_AGENT_INVOCATION_SUCCESS'|'AI_AGENT_GOAL_SUCCESS'|'AI_TOOL_MAX_LATENCY'|'AI_TOOL_SELECTION_ACCURACY'|'AI_TOOL_PARAMETER_ACCURACY'|'AI_TOOL_UTILIZATION_ACCURACY'
},
'Status': 'PENDING'|'RESOLVED'|'FAILED',
'Values': [
{
'Type': 'OPTION_REF_ID'|'STRING_VALUE'|'NUMERIC_VALUE'|'BOOLEAN_VALUE'|'DATETIME_VALUE',
'RefId': 'string',
'StringValue': 'string',
'NumericValue': 123.0,
'BooleanValue': True|False,
'DateTimeValue': datetime(2015, 1, 1)
},
]
},
]
},
'EvaluationForm': {
'EvaluationFormVersion': 123,
'EvaluationFormId': 'string',
'EvaluationFormArn': 'string',
'Title': 'string',
'Description': 'string',
'Items': [
{
'Section': {
'Title': 'string',
'RefId': 'string',
'Instructions': 'string',
'Items': {'... recursive ...'},
'Weight': 123.0,
'IsExcludedFromScoring': True|False,
'ScoreThresholds': [
{
'PerformanceCategory': 'NEEDS_IMPROVEMENT'|'EXCEEDS_EXPECTATIONS',
'MinScorePercentage': 123.0,
'MaxScorePercentage': 123.0
},
],
'Enablement': {
'Condition': {
'Operands': [
{
'Expression': {
'Source': {
'Type': 'QUESTION_REF_ID'|'CONTACT'|'EVALUATION_METADATA'|'FORM_METADATA'|'AI_METRICS',
'RefId': 'string',
'ContactField': 'CATEGORIES'|'AGENT_ARN'|'QUEUE_ARN'|'ROUTING_PROFILE_ARN'|'CHANNEL'|'INITIATION_METHOD'|'IS_QUEUED'|'OVERALL_CUSTOMER_SENTIMENT_SCORE'|'OVERALL_AGENT_SENTIMENT_SCORE'|'CUSTOMER_SENTIMENT_SCORE_WITHOUT_AGENT'|'CUSTOMER_SENTIMENT_SCORE_WITH_AGENT'|'NON_TALK_TIME'|'NON_TALK_TIME_PERCENTAGE'|'NUMBER_OF_INTERRUPTIONS'|'CONTACT_DURATION'|'AGENT_INTERACTION_DURATION'|'CUSTOMER_HOLD_TIME'|'LONGEST_HOLD_DURATION'|'NUMBER_OF_HOLDS'|'AGENT_INTERACTION_AND_HOLD_DURATION'|'RECORDING_MEDIA_STREAM_TYPES',
'ContactAttributeKey': 'string',
'SegmentAttributeKey': 'string',
'EvaluationMetadataField': 'EVALUATION_TYPE',
'AiMetricsField': 'AI_SESSION_IS_HANDED_OFF'|'AI_SESSION_SELF_SERVICE_DURATION'|'AI_SESSION_GOAL_SUCCESS_RATE'|'AI_SESSION_COMPLETENESS_SCORE'|'AI_SESSION_FAITHFULNESS_SCORE'|'AI_AGENT_MAX_PROMPT_LATENCY'|'AI_AGENT_INVOCATION_SUCCESS'|'AI_AGENT_GOAL_SUCCESS'|'AI_TOOL_MAX_LATENCY'|'AI_TOOL_SELECTION_ACCURACY'|'AI_TOOL_PARAMETER_ACCURACY'|'AI_TOOL_UTILIZATION_ACCURACY'
},
'Values': [
{
'Type': 'OPTION_REF_ID'|'STRING_VALUE'|'NUMERIC_VALUE'|'BOOLEAN_VALUE'|'DATETIME_VALUE',
'RefId': 'string',
'StringValue': 'string',
'NumericValue': 123.0,
'BooleanValue': True|False,
'DateTimeValue': datetime(2015, 1, 1)
},
],
'Comparator': 'IN'|'NOT_IN'|'ALL_IN'|'EXACT'|'GREATER_THAN'|'LESS_THAN'|'GREATER_THAN_OR_EQUAL_TO'|'LESS_THAN_OR_EQUAL_TO'|'EQUAL_TO'|'NOT_EQUAL_TO'
},
'Condition': {'... recursive ...'}
},
],
'Operator': 'OR'|'AND'
},
'Action': 'DISABLE'|'ENABLE',
'DefaultAction': 'DISABLE'|'ENABLE'
}
},
'Question': {
'Title': 'string',
'Instructions': 'string',
'RefId': 'string',
'NotApplicableEnabled': True|False,
'QuestionType': 'TEXT'|'SINGLESELECT'|'NUMERIC'|'MULTISELECT'|'DATETIME',
'QuestionTypeProperties': {
'Numeric': {
'MinValue': 123,
'MaxValue': 123,
'Options': [
{
'MinValue': 123,
'MaxValue': 123,
'Score': 123,
'AutomaticFail': True|False,
'AutomaticFailConfiguration': {
'TargetSection': 'string'
},
'PointsConfiguration': {
'PointValue': 123,
'IsBonus': True|False
}
},
],
'Automation': {
'PropertyValue': {
'Label': 'OVERALL_CUSTOMER_SENTIMENT_SCORE'|'OVERALL_AGENT_SENTIMENT_SCORE'|'CUSTOMER_SENTIMENT_SCORE_WITHOUT_AGENT'|'CUSTOMER_SENTIMENT_SCORE_WITH_AGENT'|'NON_TALK_TIME'|'NON_TALK_TIME_PERCENTAGE'|'NUMBER_OF_INTERRUPTIONS'|'CONTACT_DURATION'|'AGENT_INTERACTION_DURATION'|'CUSTOMER_HOLD_TIME'|'LONGEST_HOLD_DURATION'|'NUMBER_OF_HOLDS'|'AGENT_INTERACTION_AND_HOLD_DURATION'|'AI_SESSION_SELF_SERVICE_DURATION'|'AI_SESSION_GOAL_SUCCESS_RATE'|'AI_SESSION_COMPLETENESS_SCORE'|'AI_SESSION_FAITHFULNESS_SCORE'|'AI_AGENT_MAX_PROMPT_LATENCY'|'AI_TOOL_MAX_LATENCY'|'AI_TOOL_SELECTION_ACCURACY'|'AI_TOOL_PARAMETER_ACCURACY'|'AI_TOOL_UTILIZATION_ACCURACY'|'AI_AGENT_CONVERSATION_TURNS'|'AI_AGENT_CONTEXT_FIDELITY_SCORE'|'LEX_BOT_INTENTS_SUCCESS_RATE'
},
'AnswerSource': {
'SourceType': 'CONTACT_LENS_DATA'|'GEN_AI'|'CONDITION'
}
}
},
'SingleSelect': {
'Options': [
{
'RefId': 'string',
'Text': 'string',
'Score': 123,
'AutomaticFail': True|False,
'AutomaticFailConfiguration': {
'TargetSection': 'string'
},
'PointsConfiguration': {
'PointValue': 123,
'IsBonus': True|False
}
},
],
'DisplayAs': 'DROPDOWN'|'RADIO',
'Automation': {
'Options': [
{
'RuleCategory': {
'Category': 'string',
'Condition': 'PRESENT'|'NOT_PRESENT',
'OptionRefId': 'string'
},
'AutomationRule': {
'Condition': {
'Operands': [
{
'Expression': {
'Source': {
'Type': 'QUESTION_REF_ID'|'CONTACT'|'EVALUATION_METADATA'|'FORM_METADATA'|'AI_METRICS',
'RefId': 'string',
'ContactField': 'CATEGORIES'|'AGENT_ARN'|'QUEUE_ARN'|'ROUTING_PROFILE_ARN'|'CHANNEL'|'INITIATION_METHOD'|'IS_QUEUED'|'OVERALL_CUSTOMER_SENTIMENT_SCORE'|'OVERALL_AGENT_SENTIMENT_SCORE'|'CUSTOMER_SENTIMENT_SCORE_WITHOUT_AGENT'|'CUSTOMER_SENTIMENT_SCORE_WITH_AGENT'|'NON_TALK_TIME'|'NON_TALK_TIME_PERCENTAGE'|'NUMBER_OF_INTERRUPTIONS'|'CONTACT_DURATION'|'AGENT_INTERACTION_DURATION'|'CUSTOMER_HOLD_TIME'|'LONGEST_HOLD_DURATION'|'NUMBER_OF_HOLDS'|'AGENT_INTERACTION_AND_HOLD_DURATION'|'RECORDING_MEDIA_STREAM_TYPES',
'ContactAttributeKey': 'string',
'SegmentAttributeKey': 'string',
'EvaluationMetadataField': 'EVALUATION_TYPE',
'AiMetricsField': 'AI_SESSION_IS_HANDED_OFF'|'AI_SESSION_SELF_SERVICE_DURATION'|'AI_SESSION_GOAL_SUCCESS_RATE'|'AI_SESSION_COMPLETENESS_SCORE'|'AI_SESSION_FAITHFULNESS_SCORE'|'AI_AGENT_MAX_PROMPT_LATENCY'|'AI_AGENT_INVOCATION_SUCCESS'|'AI_AGENT_GOAL_SUCCESS'|'AI_TOOL_MAX_LATENCY'|'AI_TOOL_SELECTION_ACCURACY'|'AI_TOOL_PARAMETER_ACCURACY'|'AI_TOOL_UTILIZATION_ACCURACY'
},
'Values': [
{
'Type': 'OPTION_REF_ID'|'STRING_VALUE'|'NUMERIC_VALUE'|'BOOLEAN_VALUE'|'DATETIME_VALUE',
'RefId': 'string',
'StringValue': 'string',
'NumericValue': 123.0,
'BooleanValue': True|False,
'DateTimeValue': datetime(2015, 1, 1)
},
],
'Comparator': 'IN'|'NOT_IN'|'ALL_IN'|'EXACT'|'GREATER_THAN'|'LESS_THAN'|'GREATER_THAN_OR_EQUAL_TO'|'LESS_THAN_OR_EQUAL_TO'|'EQUAL_TO'|'NOT_EQUAL_TO'
},
'Condition': {'... recursive ...'}
},
],
'Operator': 'OR'|'AND'
},
'OptionRefId': 'string'
}
},
],
'DefaultOptionRefId': 'string',
'AnswerSource': {
'SourceType': 'CONTACT_LENS_DATA'|'GEN_AI'|'CONDITION'
}
}
},
'Text': {
'Automation': {
'AnswerSource': {
'SourceType': 'CONTACT_LENS_DATA'|'GEN_AI'|'CONDITION'
}
}
},
'MultiSelect': {
'Options': [
{
'RefId': 'string',
'Text': 'string',
'Score': 123,
'AutomaticFail': True|False,
'AutomaticFailConfiguration': {
'TargetSection': 'string'
},
'PointsConfiguration': {
'PointValue': 123,
'IsBonus': True|False
}
},
],
'DisplayAs': 'DROPDOWN'|'CHECKBOX',
'Automation': {
'Options': [
{
'RuleCategory': {
'Category': 'string',
'Condition': 'PRESENT'|'NOT_PRESENT',
'OptionRefIds': [
'string',
]
}
},
],
'DefaultOptionRefIds': [
'string',
],
'AnswerSource': {
'SourceType': 'CONTACT_LENS_DATA'|'GEN_AI'|'CONDITION'
}
}
}
},
'Enablement': {
'Condition': {
'Operands': [
{
'Expression': {
'Source': {
'Type': 'QUESTION_REF_ID'|'CONTACT'|'EVALUATION_METADATA'|'FORM_METADATA'|'AI_METRICS',
'RefId': 'string',
'ContactField': 'CATEGORIES'|'AGENT_ARN'|'QUEUE_ARN'|'ROUTING_PROFILE_ARN'|'CHANNEL'|'INITIATION_METHOD'|'IS_QUEUED'|'OVERALL_CUSTOMER_SENTIMENT_SCORE'|'OVERALL_AGENT_SENTIMENT_SCORE'|'CUSTOMER_SENTIMENT_SCORE_WITHOUT_AGENT'|'CUSTOMER_SENTIMENT_SCORE_WITH_AGENT'|'NON_TALK_TIME'|'NON_TALK_TIME_PERCENTAGE'|'NUMBER_OF_INTERRUPTIONS'|'CONTACT_DURATION'|'AGENT_INTERACTION_DURATION'|'CUSTOMER_HOLD_TIME'|'LONGEST_HOLD_DURATION'|'NUMBER_OF_HOLDS'|'AGENT_INTERACTION_AND_HOLD_DURATION'|'RECORDING_MEDIA_STREAM_TYPES',
'ContactAttributeKey': 'string',
'SegmentAttributeKey': 'string',
'EvaluationMetadataField': 'EVALUATION_TYPE',
'AiMetricsField': 'AI_SESSION_IS_HANDED_OFF'|'AI_SESSION_SELF_SERVICE_DURATION'|'AI_SESSION_GOAL_SUCCESS_RATE'|'AI_SESSION_COMPLETENESS_SCORE'|'AI_SESSION_FAITHFULNESS_SCORE'|'AI_AGENT_MAX_PROMPT_LATENCY'|'AI_AGENT_INVOCATION_SUCCESS'|'AI_AGENT_GOAL_SUCCESS'|'AI_TOOL_MAX_LATENCY'|'AI_TOOL_SELECTION_ACCURACY'|'AI_TOOL_PARAMETER_ACCURACY'|'AI_TOOL_UTILIZATION_ACCURACY'
},
'Values': [
{
'Type': 'OPTION_REF_ID'|'STRING_VALUE'|'NUMERIC_VALUE'|'BOOLEAN_VALUE'|'DATETIME_VALUE',
'RefId': 'string',
'StringValue': 'string',
'NumericValue': 123.0,
'BooleanValue': True|False,
'DateTimeValue': datetime(2015, 1, 1)
},
],
'Comparator': 'IN'|'NOT_IN'|'ALL_IN'|'EXACT'|'GREATER_THAN'|'LESS_THAN'|'GREATER_THAN_OR_EQUAL_TO'|'LESS_THAN_OR_EQUAL_TO'|'EQUAL_TO'|'NOT_EQUAL_TO'
},
'Condition': {'... recursive ...'}
},
],
'Operator': 'OR'|'AND'
},
'Action': 'DISABLE'|'ENABLE',
'DefaultAction': 'DISABLE'|'ENABLE'
},
'Weight': 123.0,
'ScoringConfiguration': {
'PointsConfiguration': {
'MaxPointValue': 123,
'MinPointValue': 123,
'IsBonus': True|False
},
'IsExcludedFromScoring': True|False,
'ScoreThresholds': [
{
'PerformanceCategory': 'NEEDS_IMPROVEMENT'|'EXCEEDS_EXPECTATIONS',
'MinScorePercentage': 123.0,
'MaxScorePercentage': 123.0
},
]
},
'MetricConfiguration': {
'MetricType': 'BUSINESS_OUTCOME',
'MetricName': 'string'
}
}
},
],
'ScoringStrategy': {
'Mode': 'QUESTION_ONLY'|'SECTION_ONLY'|'POINTS_BASED',
'Status': 'ENABLED'|'DISABLED',
'ScoreThresholds': [
{
'PerformanceCategory': 'NEEDS_IMPROVEMENT'|'EXCEEDS_EXPECTATIONS',
'MinScorePercentage': 123.0,
'MaxScorePercentage': 123.0
},
]
},
'AutoEvaluationConfiguration': {
'Enabled': True|False
},
'TargetConfiguration': {
'ContactInteractionType': 'AGENT'|'AUTOMATED'|'CUSTOMER',
'AutomatedParticipantRole': 'LEX_BOT'|'AI_AGENT'|'SYSTEM'
},
'LanguageConfiguration': {
'FormLanguage': 'de-DE'|'en-US'|'es-ES'|'fr-FR'|'it-IT'|'pt-BR'|'ja-JP'|'ko-KR'|'zh-CN'|'ms-MY'|'af-ZA'|'sq-AL'|'am-ET'|'ar-AE'|'ar-SA'|'hy-AM'|'eu-ES'|'be-BY'|'bs-BA'|'bg-BG'|'ca-ES'|'ckb-IR'|'ckb-IQ'|'zh-TW'|'hr-HR'|'cs-CZ'|'da-DK'|'nl-BE'|'nl-NL'|'en-AU'|'en-IN'|'en-IE'|'en-NZ'|'en-AB'|'en-SG'|'en-ZA'|'en-GB'|'en-WL'|'fa-IR'|'fa-AF'|'fi-FI'|'fr-BE'|'fr-CA'|'ga-IE'|'gl-ES'|'ka-GE'|'de-AT'|'de-CH'|'el-GR'|'gu-IN'|'ht-HT'|'he-IL'|'hi-IN'|'hu-HU'|'is-IS'|'id-ID'|'jv-ID'|'km-KH'|'kn-IN'|'kk-KZ'|'lo-LA'|'lv-LV'|'lt-LT'|'mk-MK'|'ml-IN'|'mr-IN'|'ne-NP'|'no-NO'|'or-IN'|'ps-AF'|'pl-PL'|'pt-PT'|'pa-IN'|'ro-RO'|'ru-RU'|'sr-RS'|'si-LK'|'sk-SK'|'sl-SI'|'es-MX'|'es-US'|'su-ID'|'sw-BI'|'sw-KE'|'sw-RW'|'sw-TZ'|'sw-UG'|'sv-SE'|'tl-PH'|'ta-IN'|'te-IN'|'th-TH'|'tr-TR'|'uk-UA'|'uz-UZ'|'vi-VN'|'zu-ZA'|'my-MM'|'so-SO'|'yue-HK'|'et-EE'|'hmn'|'lg-UG'|'cy-GB'|'xh-ZA'|'bn-BD'
},
'ReviewConfiguration': {
'ReviewNotificationRecipients': [
{
'Type': 'USER_ID',
'Value': {
'UserId': 'string'
}
},
],
'EligibilityDays': 123
},
'AIVersion': 'string'
}
}
Response Structure
(dict) --
Evaluation (dict) --
Information about the evaluation form completed for a specific contact.
EvaluationId (string) --
A unique identifier for the contact evaluation.
EvaluationArn (string) --
The Amazon Resource Name (ARN) for the contact evaluation resource.
Metadata (dict) --
Metadata about the contact evaluation.
ContactId (string) --
The identifier of the contact in this instance of Connect Customer.
EvaluatorArn (string) --
The Amazon Resource Name (ARN) of the user who last updated the evaluation.
ContactAgentId (string) --
The identifier of the agent who performed the contact.
CalibrationSessionId (string) --
The calibration session ID that this evaluation belongs to.
Score (dict) --
The overall score of the contact evaluation.
Percentage (float) --
The score percentage for an item in a contact evaluation.
NotApplicable (boolean) --
The flag to mark the item as not applicable for scoring.
AutomaticFail (boolean) --
The flag that marks the item as automatic fail. If the item or a child item gets an automatic fail answer, this flag will be true.
AppliedWeight (float) --
Weight applied to this evaluation score.
EarnedPoints (integer) --
The points earned for the item.
MaxBasePoint (integer) --
The maximum base points possible for the item.
PerformanceCategory (string) --
The performance category for the score.
AutoEvaluation (dict) --
Information related to automated evaluation.
AutoEvaluationEnabled (boolean) --
Whether automated evaluation is enabled.
AutoEvaluationStatus (string) --
The status of the contact auto-evaluation.
Acknowledgement (dict) --
Information related to evaluation acknowledgement.
AcknowledgedTime (datetime) --
When the agent acknowledged the evaluation.
AcknowledgedBy (string) --
The agent who acknowledged the evaluation.
AcknowledgerComment (string) --
A comment from the agent when they confirmed they acknowledged the evaluation.
Review (dict) --
Information about reviews of this evaluation.
ReviewId (string) --
The unique identifier for the evaluation review.
RequestedTime (datetime) --
The timestamp when the evaluation review was requested.
RequestedBy (string) --
The user who requested the evaluation review.
CreatedTime (datetime) --
The timestamp when the evaluation review was created.
CreatedBy (string) --
The user who created the evaluation review.
ReviewRequestComments (list) --
Comments provided when requesting the evaluation review.
(dict) --
A comment provided when requesting an evaluation review.
Comment (string) --
The text content of the review request comment.
CreatedTime (datetime) --
The timestamp when the evaluation review request comment was created.
CreatedBy (string) --
The user who created the evaluation review request comment.
ContactParticipant (dict) --
Information about a contact participant in this evaluation.
ContactParticipantRole (string) --
The role of the contact participant.
ContactParticipantId (string) --
The identifier for the contact participant.
SamplingJobId (string) --
Identifier of the sampling job.
Answers (dict) --
A map of question identifiers to answer value.
(string) --
(dict) --
Information about output answers for a contact evaluation.
Value (dict) --
The value for an answer in a contact evaluation.
StringValue (string) --
The string value for an answer in a contact evaluation.
NumericValue (float) --
The numeric value for an answer in a contact evaluation.
StringValues (list) --
String values provided as answers to evaluation questions.
(string) --
DateTimeValue (string) --
Date and time value provided as an answer to an evaluation question.
NotApplicable (boolean) --
The flag to mark the question as not applicable.
SystemSuggestedValue (dict) --
The system suggested value for an answer in a contact evaluation.
StringValue (string) --
The string value for an answer in a contact evaluation.
NumericValue (float) --
The numeric value for an answer in a contact evaluation.
StringValues (list) --
String values provided as answers to evaluation questions.
(string) --
DateTimeValue (string) --
Date and time value provided as an answer to an evaluation question.
NotApplicable (boolean) --
The flag to mark the question as not applicable.
SuggestedAnswers (list) --
Automation suggested answers for the questions.
(dict) --
The information about the suggested answer for the question.
Value (dict) --
Information about answer data for a contact evaluation. Answer data must be either string, numeric, or not applicable.
StringValue (string) --
The string value for an answer in a contact evaluation.
NumericValue (float) --
The numeric value for an answer in a contact evaluation.
StringValues (list) --
String values provided as answers to evaluation questions.
(string) --
DateTimeValue (string) --
Date and time value provided as an answer to an evaluation question.
NotApplicable (boolean) --
The flag to mark the question as not applicable.
Status (string) --
The status of the suggested answer. D
Input (dict) --
Details about the input used to question automation.
TranscriptType (string) --
Transcript type.
AnalysisType (string) --
Type of analysis used to provide suggested answer. Valid values: CONTACT_LENS_DATA | GEN_AI | CONDITION.
AnalysisDetails (dict) --
Detailed analysis results.
GenAI (dict) --
Analysis results from the generative AI automation for the question.
Justification (string) --
Generative AI automation answer justification.
PointsOfInterest (list) --
Generative AI automation answer analysis points of interest.
(dict) --
Information about the point of interest in transcript provided to evaluation.
MillisecondOffsets (dict) --
Offset in milliseconds from the beginning of transcript.
BeginOffsetMillis (integer) --
Offset in milliseconds from the beginning of the transcript.
TranscriptSegment (string) --
Segment of transcript.
ContactLens (dict) --
Analysis results from the Contact Lens automation for the question.
MatchedRuleCategories (list) --
A list of match rule categories.
(dict) --
The Contact Lens category used by evaluation automation.
Category (string) --
A category label.
Condition (string) --
An automation condition for a Contact Lens category.
PointsOfInterest (list) --
A point of interest in a contact transcript that indicates match of condition.
(dict) --
Information about the point of interest in transcript provided to evaluation.
MillisecondOffsets (dict) --
Offset in milliseconds from the beginning of transcript.
BeginOffsetMillis (integer) --
Offset in milliseconds from the beginning of the transcript.
TranscriptSegment (string) --
Segment of transcript.
Notes (dict) --
A map of question identifiers to note value.
(string) --
(dict) --
Information about notes for a contact evaluation.
Value (string) --
The note for an item (section or question) in a contact evaluation.
Status (string) --
The status of the contact evaluation.
Scores (dict) --
A map of item (section or question) identifiers to score value.
(string) --
(dict) --
Information about scores of a contact evaluation item (section or question).
Percentage (float) --
The score percentage for an item in a contact evaluation.
NotApplicable (boolean) --
The flag to mark the item as not applicable for scoring.
AutomaticFail (boolean) --
The flag that marks the item as automatic fail. If the item or a child item gets an automatic fail answer, this flag will be true.
AppliedWeight (float) --
Weight applied to this evaluation score.
EarnedPoints (integer) --
The points earned for the item.
MaxBasePoint (integer) --
The maximum base points possible for the item.
PerformanceCategory (string) --
The performance category for the score.
CreatedTime (datetime) --
The timestamp for when the evaluation was created.
LastModifiedTime (datetime) --
The timestamp for when the evaluation was last updated.
EvaluationType (string) --
Type of the evaluation.
Tags (dict) --
The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.
(string) --
(string) --
ItemEnablementStatus (dict) --
A map of item (section or question) identifiers to their enablement status, computed by the service from each item's conditional enablement configuration. Disabled items are excluded from scoring. Valid values: ENABLED | DISABLED.
(string) --
(string) --
SourceResolutionStatus (string) --
The aggregate status of resolving the external source data (such as Contact Lens analysis and AI metrics) that is used by conditional enablement in the evaluation. Source data is resolved asynchronously after the evaluation is started. While a source is pending or after it fails to resolve, conditions that depend on it evaluate to the item's DefaultAction. Valid values:
PENDING - One or more sources have not been resolved yet. Call DescribeContactEvaluation again to get updated ItemEnablementStatus values.
RESOLVED - All sources have been resolved.
FAILED - One or more sources could not be resolved. Dependent conditions use the item's DefaultAction.
SourceValues (list) --
The resolved values of the external sources (such as contact data, evaluation metadata, form metadata, and AI metrics) that are used by the conditions in the evaluation form. You can use these values to evaluate the conditions against the current answers without calling DescribeContactEvaluation again.
(dict) --
The resolved value of an external source that is used by the conditions in an evaluation form.
Source (dict) --
The external source, such as contact data, evaluation metadata, form metadata, or AI metrics.
Type (string) --
A type of source item. Valid values:
QUESTION_REF_ID - The answer to another question in the evaluation form.
CONTACT - Data from the evaluated contact.
EVALUATION_METADATA - Metadata of the evaluation, such as the evaluation type.
AI_METRICS - Metrics about AI agents, AI sessions, and AI tools on the contact.
RefId (string) --
A referenceId of the source item. Use when Type is QUESTION_REF_ID.
ContactField (string) --
The contact field to use as the source, such as CHANNEL, QUEUE_ARN, OVERALL_CUSTOMER_SENTIMENT_SCORE, or RECORDING_MEDIA_STREAM_TYPES. Use when Type is CONTACT.
ContactAttributeKey (string) --
The key of the contact attribute to use as the source. Use when Type is CONTACT.
SegmentAttributeKey (string) --
The key of the contact segment attribute to use as the source. Use when Type is CONTACT.
EvaluationMetadataField (string) --
The evaluation metadata field to use as the source. Use when Type is EVALUATION_METADATA.
AiMetricsField (string) --
The AI metrics field to use as the source. Use when Type is AI_METRICS.
Status (string) --
The status of resolving the source. Valid values:
PENDING - The source has not been resolved yet.
RESOLVED - The source has been resolved.
FAILED - The source could not be resolved.
Values (list) --
The resolved values of the source. Present when Status is RESOLVED. Contains one value for a single-valued source, any number of values for a multi-valued source, and no values when the source is not present on the contact.
(dict) --
An enablement expression source value. Provide only the value member that matches the specified Type.
Type (string) --
A type of source item value. Valid values: OPTION_REF_ID | STRING_VALUE | NUMERIC_VALUE | BOOLEAN_VALUE | DATETIME_VALUE.
RefId (string) --
A referenceId of the source value. Use when Type is OPTION_REF_ID.
StringValue (string) --
A string value to compare against the source. Use when Type is STRING_VALUE.
NumericValue (float) --
A numeric value to compare against the source. Use when Type is NUMERIC_VALUE.
BooleanValue (boolean) --
A Boolean value to compare against the source. Use when Type is BOOLEAN_VALUE.
DateTimeValue (datetime) --
A date and time value to compare against the source. Use when Type is DATETIME_VALUE.
EvaluationForm (dict) --
Information about the evaluation form.
EvaluationFormVersion (integer) --
A version of the evaluation form.
EvaluationFormId (string) --
The unique identifier for the evaluation form.
EvaluationFormArn (string) --
The Amazon Resource Name (ARN) for the evaluation form resource.
Title (string) --
A title of the evaluation form.
Description (string) --
The description of the evaluation form.
Items (list) --
Items that are part of the evaluation form. The total number of sections and questions must not exceed 100 each. Questions must be contained in a section.
(dict) --
Information about an item from an evaluation form. The item must be either a section or a question.
Section (dict) --
The information of the section.
Title (string) --
The title of the section.
RefId (string) --
The identifier of the section. An identifier must be unique within the evaluation form.
Instructions (string) --
The instructions of the section.
Items (list) --
The items of the section.
Weight (float) --
The scoring weight of the section.
IsExcludedFromScoring (boolean) --
The flag to exclude the section from scoring.
ScoreThresholds (list) --
The score thresholds for performance categories.
(dict) --
Information about a score threshold for a performance category.
PerformanceCategory (string) --
The performance category name.
MinScorePercentage (float) --
The minimum score percentage for the performance category.
MaxScorePercentage (float) --
The maximum score percentage for the performance category.
Enablement (dict) --
The conditional enablement configuration of the section. Sections use the same enablement model as questions.
Condition (dict) --
A condition for item enablement configuration.
Operands (list) --
Operands of the enablement condition.
(dict) --
An operand of the enablement condition.
Expression (dict) --
An expression of the enablement condition.
Source (dict) --
A source item of enablement expression.
Type (string) --
A type of source item. Valid values:
QUESTION_REF_ID - The answer to another question in the evaluation form.
CONTACT - Data from the evaluated contact.
EVALUATION_METADATA - Metadata of the evaluation, such as the evaluation type.
AI_METRICS - Metrics about AI agents, AI sessions, and AI tools on the contact.
RefId (string) --
A referenceId of the source item. Use when Type is QUESTION_REF_ID.
ContactField (string) --
The contact field to use as the source, such as CHANNEL, QUEUE_ARN, OVERALL_CUSTOMER_SENTIMENT_SCORE, or RECORDING_MEDIA_STREAM_TYPES. Use when Type is CONTACT.
ContactAttributeKey (string) --
The key of the contact attribute to use as the source. Use when Type is CONTACT.
SegmentAttributeKey (string) --
The key of the contact segment attribute to use as the source. Use when Type is CONTACT.
EvaluationMetadataField (string) --
The evaluation metadata field to use as the source. Use when Type is EVALUATION_METADATA.
AiMetricsField (string) --
The AI metrics field to use as the source. Use when Type is AI_METRICS.
Values (list) --
A list of values from source item.
(dict) --
An enablement expression source value. Provide only the value member that matches the specified Type.
Type (string) --
A type of source item value. Valid values: OPTION_REF_ID | STRING_VALUE | NUMERIC_VALUE | BOOLEAN_VALUE | DATETIME_VALUE.
RefId (string) --
A referenceId of the source value. Use when Type is OPTION_REF_ID.
StringValue (string) --
A string value to compare against the source. Use when Type is STRING_VALUE.
NumericValue (float) --
A numeric value to compare against the source. Use when Type is NUMERIC_VALUE.
BooleanValue (boolean) --
A Boolean value to compare against the source. Use when Type is BOOLEAN_VALUE.
DateTimeValue (datetime) --
A date and time value to compare against the source. Use when Type is DATETIME_VALUE.
Comparator (string) --
A comparator to be used against a list of values. IN, NOT_IN, ALL_IN, and EXACT compare sets of values. GREATER_THAN, LESS_THAN, GREATER_THAN_OR_EQUAL_TO, and LESS_THAN_OR_EQUAL_TO compare a single numeric or date and time value. EQUAL_TO and NOT_EQUAL_TO compare a single value.
Condition (dict) --
A condition for item enablement.
Operator (string) --
The operator to apply to the operands when more than one operand is provided.
Action (string) --
The enablement action to apply if the condition is satisfied.
DefaultAction (string) --
The enablement action to apply if the condition is not satisfied. This action is also applied when the condition depends on an external source that is still pending or could not be resolved.
Question (dict) --
The information of the question.
Title (string) --
The title of the question.
Instructions (string) --
The instructions of the section.
RefId (string) --
The identifier of the question. An identifier must be unique within the evaluation form.
NotApplicableEnabled (boolean) --
The flag to enable not applicable answers to the question.
QuestionType (string) --
The type of the question.
QuestionTypeProperties (dict) --
The properties of the type of question. Text questions do not have to define question type properties.
Numeric (dict) --
The properties of the numeric question.
MinValue (integer) --
The minimum answer value.
MaxValue (integer) --
The maximum answer value.
Options (list) --
The scoring options of the numeric question.
(dict) --
Information about the option range used for scoring in numeric questions.
MinValue (integer) --
The minimum answer value of the range option.
MaxValue (integer) --
The maximum answer value of the range option.
Score (integer) --
The score assigned to answer values within the range option.
AutomaticFail (boolean) --
The flag to mark the option as automatic fail. If an automatic fail answer is provided, the overall evaluation gets a score of 0.
AutomaticFailConfiguration (dict) --
A configuration for automatic fail.
TargetSection (string) --
The referenceId of the target section for auto failure.
PointsConfiguration (dict) --
The points configuration for point-based scoring.
PointValue (integer) --
The point value assigned to the answer option.
IsBonus (boolean) --
The flag to mark the option as a bonus option.
Automation (dict) --
The automation properties of the numeric question.
PropertyValue (dict) --
The property value of the automation.
Label (string) --
The property label of the automation.
AnswerSource (dict) --
A source of automation answer for numeric question.
SourceType (string) --
The automation answer source type. Valid values:
CONTACT_LENS_DATA - The answer is based on Contact Lens data, such as rule categories and metrics.
GEN_AI - The answer is generated by generative AI.
CONDITION - The answer is determined by evaluating the conditions defined in the automation rules of the question.
SingleSelect (dict) --
The properties of the numeric question.
Options (list) --
The answer options of the single select question.
(dict) --
Information about the automation configuration in single select questions.
RefId (string) --
The identifier of the answer option. An identifier must be unique within the question.
Text (string) --
The title of the answer option.
Score (integer) --
The score assigned to the answer option.
AutomaticFail (boolean) --
The flag to mark the option as automatic fail. If an automatic fail answer is provided, the overall evaluation gets a score of 0.
AutomaticFailConfiguration (dict) --
Whether automatic fail is configured on a single select question.
TargetSection (string) --
The referenceId of the target section for auto failure.
PointsConfiguration (dict) --
The points configuration for point-based scoring.
PointValue (integer) --
The point value assigned to the answer option.
IsBonus (boolean) --
The flag to mark the option as a bonus option.
DisplayAs (string) --
The display mode of the single select question.
Automation (dict) --
The display mode of the single select question.
Options (list) --
The automation options of the single select question.
(dict) --
Information about the automation option of a single select question.
RuleCategory (dict) --
The automation option based on a rule category for the single select question.
Category (string) --
The category name, as defined in Rules. This is equivalent to a conversational analytics rule with the same name: the automation option is applied based on whether that rule matched the contact. For more information about creating rules, see Create rules in the Connect Customer Administrator Guide.
Condition (string) --
The condition to apply for the automation option. If the condition is PRESENT, then the option is applied when the contact data includes the category. Similarly, if the condition is NOT_PRESENT, then the option is applied when the contact data does not include the category.
OptionRefId (string) --
The identifier of the answer option.
AutomationRule (dict) --
The automation option based on a condition for the single select question. Use with the CONDITION answer source type.
Condition (dict) --
The condition that must be satisfied for the answer option to be selected. The condition uses the same sources, comparators, and operators as item enablement conditions.
Operands (list) --
Operands of the enablement condition.
(dict) --
An operand of the enablement condition.
Expression (dict) --
An expression of the enablement condition.
Source (dict) --
A source item of enablement expression.
Type (string) --
A type of source item. Valid values:
QUESTION_REF_ID - The answer to another question in the evaluation form.
CONTACT - Data from the evaluated contact.
EVALUATION_METADATA - Metadata of the evaluation, such as the evaluation type.
AI_METRICS - Metrics about AI agents, AI sessions, and AI tools on the contact.
RefId (string) --
A referenceId of the source item. Use when Type is QUESTION_REF_ID.
ContactField (string) --
The contact field to use as the source, such as CHANNEL, QUEUE_ARN, OVERALL_CUSTOMER_SENTIMENT_SCORE, or RECORDING_MEDIA_STREAM_TYPES. Use when Type is CONTACT.
ContactAttributeKey (string) --
The key of the contact attribute to use as the source. Use when Type is CONTACT.
SegmentAttributeKey (string) --
The key of the contact segment attribute to use as the source. Use when Type is CONTACT.
EvaluationMetadataField (string) --
The evaluation metadata field to use as the source. Use when Type is EVALUATION_METADATA.
AiMetricsField (string) --
The AI metrics field to use as the source. Use when Type is AI_METRICS.
Values (list) --
A list of values from source item.
(dict) --
An enablement expression source value. Provide only the value member that matches the specified Type.
Type (string) --
A type of source item value. Valid values: OPTION_REF_ID | STRING_VALUE | NUMERIC_VALUE | BOOLEAN_VALUE | DATETIME_VALUE.
RefId (string) --
A referenceId of the source value. Use when Type is OPTION_REF_ID.
StringValue (string) --
A string value to compare against the source. Use when Type is STRING_VALUE.
NumericValue (float) --
A numeric value to compare against the source. Use when Type is NUMERIC_VALUE.
BooleanValue (boolean) --
A Boolean value to compare against the source. Use when Type is BOOLEAN_VALUE.
DateTimeValue (datetime) --
A date and time value to compare against the source. Use when Type is DATETIME_VALUE.
Comparator (string) --
A comparator to be used against a list of values. IN, NOT_IN, ALL_IN, and EXACT compare sets of values. GREATER_THAN, LESS_THAN, GREATER_THAN_OR_EQUAL_TO, and LESS_THAN_OR_EQUAL_TO compare a single numeric or date and time value. EQUAL_TO and NOT_EQUAL_TO compare a single value.
Condition (dict) --
A condition for item enablement.
Operator (string) --
The operator to apply to the operands when more than one operand is provided.
OptionRefId (string) --
The identifier of the answer option to select when the condition is satisfied.
DefaultOptionRefId (string) --
The identifier of the default answer option, when none of the automation options match the criteria.
AnswerSource (dict) --
Automation answer source.
SourceType (string) --
The automation answer source type. Valid values:
CONTACT_LENS_DATA - The answer is based on Contact Lens data, such as rule categories and metrics.
GEN_AI - The answer is generated by generative AI.
CONDITION - The answer is determined by evaluating the conditions defined in the automation rules of the question.
Text (dict) --
The properties of the text question.
Automation (dict) --
The automation properties of the text question.
AnswerSource (dict) --
Automation answer source.
SourceType (string) --
The automation answer source type. Valid values:
CONTACT_LENS_DATA - The answer is based on Contact Lens data, such as rule categories and metrics.
GEN_AI - The answer is generated by generative AI.
CONDITION - The answer is determined by evaluating the conditions defined in the automation rules of the question.
MultiSelect (dict) --
Properties for multi-select question types.
Options (list) --
Options available for this multi-select question.
(dict) --
An option for a multi-select question in an evaluation form.
RefId (string) --
Reference identifier for this option.
Text (string) --
Display text for this option.
Score (integer) --
The score assigned to the answer option.
AutomaticFail (boolean) --
The flag to mark the option as automatic fail. If an automatic fail answer is provided, the overall evaluation gets a score of 0.
AutomaticFailConfiguration (dict) --
Information about automatic fail configuration for an evaluation form.
TargetSection (string) --
The referenceId of the target section for auto failure.
PointsConfiguration (dict) --
The points configuration for point-based scoring.
PointValue (integer) --
The point value assigned to the answer option.
IsBonus (boolean) --
The flag to mark the option as a bonus option.
DisplayAs (string) --
Display format for the multi-select question.
Automation (dict) --
Automation configuration for this multi-select question.
Options (list) --
Automation options for the multi-select question.
(dict) --
An automation option for a multi-select question.
RuleCategory (dict) --
Rule category configuration for this automation option.
Category (string) --
The category name for this automation rule.
Condition (string) --
The condition for this automation rule.
OptionRefIds (list) --
Reference IDs of options for this automation rule.
(string) --
DefaultOptionRefIds (list) --
Reference IDs of default options.
(string) --
AnswerSource (dict) --
Automation answer source.
SourceType (string) --
The automation answer source type. Valid values:
CONTACT_LENS_DATA - The answer is based on Contact Lens data, such as rule categories and metrics.
GEN_AI - The answer is generated by generative AI.
CONDITION - The answer is determined by evaluating the conditions defined in the automation rules of the question.
Enablement (dict) --
A question conditional enablement.
Condition (dict) --
A condition for item enablement configuration.
Operands (list) --
Operands of the enablement condition.
(dict) --
An operand of the enablement condition.
Expression (dict) --
An expression of the enablement condition.
Source (dict) --
A source item of enablement expression.
Type (string) --
A type of source item. Valid values:
QUESTION_REF_ID - The answer to another question in the evaluation form.
CONTACT - Data from the evaluated contact.
EVALUATION_METADATA - Metadata of the evaluation, such as the evaluation type.
AI_METRICS - Metrics about AI agents, AI sessions, and AI tools on the contact.
RefId (string) --
A referenceId of the source item. Use when Type is QUESTION_REF_ID.
ContactField (string) --
The contact field to use as the source, such as CHANNEL, QUEUE_ARN, OVERALL_CUSTOMER_SENTIMENT_SCORE, or RECORDING_MEDIA_STREAM_TYPES. Use when Type is CONTACT.
ContactAttributeKey (string) --
The key of the contact attribute to use as the source. Use when Type is CONTACT.
SegmentAttributeKey (string) --
The key of the contact segment attribute to use as the source. Use when Type is CONTACT.
EvaluationMetadataField (string) --
The evaluation metadata field to use as the source. Use when Type is EVALUATION_METADATA.
AiMetricsField (string) --
The AI metrics field to use as the source. Use when Type is AI_METRICS.
Values (list) --
A list of values from source item.
(dict) --
An enablement expression source value. Provide only the value member that matches the specified Type.
Type (string) --
A type of source item value. Valid values: OPTION_REF_ID | STRING_VALUE | NUMERIC_VALUE | BOOLEAN_VALUE | DATETIME_VALUE.
RefId (string) --
A referenceId of the source value. Use when Type is OPTION_REF_ID.
StringValue (string) --
A string value to compare against the source. Use when Type is STRING_VALUE.
NumericValue (float) --
A numeric value to compare against the source. Use when Type is NUMERIC_VALUE.
BooleanValue (boolean) --
A Boolean value to compare against the source. Use when Type is BOOLEAN_VALUE.
DateTimeValue (datetime) --
A date and time value to compare against the source. Use when Type is DATETIME_VALUE.
Comparator (string) --
A comparator to be used against a list of values. IN, NOT_IN, ALL_IN, and EXACT compare sets of values. GREATER_THAN, LESS_THAN, GREATER_THAN_OR_EQUAL_TO, and LESS_THAN_OR_EQUAL_TO compare a single numeric or date and time value. EQUAL_TO and NOT_EQUAL_TO compare a single value.
Condition (dict) --
A condition for item enablement.
Operator (string) --
The operator to apply to the operands when more than one operand is provided.
Action (string) --
The enablement action to apply if the condition is satisfied.
DefaultAction (string) --
The enablement action to apply if the condition is not satisfied. This action is also applied when the condition depends on an external source that is still pending or could not be resolved.
Weight (float) --
The scoring weight of the section.
ScoringConfiguration (dict) --
The scoring configuration of the question.
PointsConfiguration (dict) --
The points configuration for point-based scoring.
MaxPointValue (integer) --
The maximum point value.
MinPointValue (integer) --
The minimum point value.
IsBonus (boolean) --
The flag to mark the question as a bonus question.
IsExcludedFromScoring (boolean) --
The flag to exclude the question from scoring.
ScoreThresholds (list) --
The score thresholds for performance categories.
(dict) --
Information about a score threshold for a performance category.
PerformanceCategory (string) --
The performance category name.
MinScorePercentage (float) --
The minimum score percentage for the performance category.
MaxScorePercentage (float) --
The maximum score percentage for the performance category.
MetricConfiguration (dict) --
The metric configuration for the question. Use this to associate a business outcome metric with the question.
MetricType (string) --
The type of metric. Currently, only BUSINESS_OUTCOME is supported.
MetricName (string) --
The name of the metric. Valid values are:
SALE_SUCCESS – Sale success.
CSAT – Customer satisfaction.
CHURN_PROPENSITY – Churn propensity.
SELF_SERVICE_SUCCESS – Self-service success.
PARTIAL_SELF_SERVICE_SUCCESS – Partial self-service success.
ScoringStrategy (dict) --
A scoring strategy of the evaluation form.
Mode (string) --
The scoring mode of the evaluation form.
Status (string) --
The scoring status of the evaluation form.
ScoreThresholds (list) --
The score thresholds for performance categories.
(dict) --
Information about a score threshold for a performance category.
PerformanceCategory (string) --
The performance category name.
MinScorePercentage (float) --
The minimum score percentage for the performance category.
MaxScorePercentage (float) --
The maximum score percentage for the performance category.
AutoEvaluationConfiguration (dict) --
The configuration of the automated evaluation.
Enabled (boolean) --
When automated evaluation is enabled.
TargetConfiguration (dict) --
Configuration that specifies the target for this evaluation form content.
ContactInteractionType (string) --
The contact interaction type for this evaluation form.
AutomatedParticipantRole (string) --
The role of the automated participant that this evaluation form targets. This applies when the ContactInteractionType is AUTOMATED, and identifies which automated participant the evaluation is for, such as an Amazon Lex bot ( LEX_BOT), an AI agent ( AI_AGENT), or the system ( SYSTEM).
LanguageConfiguration (dict) --
Configuration for language settings of this evaluation form content.
FormLanguage (string) --
The language for the evaluation form.
ReviewConfiguration (dict) --
Configuration for evaluation review settings of this evaluation form content.
ReviewNotificationRecipients (list) --
List of recipients who should be notified when a review is requested.
(dict) --
Information about a recipient who should be notified when an evaluation review is requested.
Type (string) --
The type of notification recipient.
Value (dict) --
The value associated with the notification recipient type.
UserId (string) --
The user identifier for the notification recipient.
EligibilityDays (integer) --
Number of days during which a request for review can be submitted for evaluations created from this form.
AIVersion (string) --
The AI version to use for the evaluation form. This specifies which AI model version is used for automated evaluations.
{'EvaluationForm': {'Items': {'Question': {'Enablement': {'Condition': {'Operands': {'Expression': {'Source': {'AiMetricsField': {'AI_AGENT_GOAL_SUCCESS',
'AI_AGENT_INVOCATION_SUCCESS'}}}}}},
'QuestionTypeProperties': {'Numeric': {'Automation': {'PropertyValue': {'Label': {'AI_AGENT_CONTEXT_FIDELITY_SCORE',
'AI_AGENT_CONVERSATION_TURNS',
'LEX_BOT_INTENTS_SUCCESS_RATE'}}}},
'SingleSelect': {'Automation': {'Options': {'AutomationRule': {'Condition': {'Operands': {'Expression': {'Source': {'AiMetricsField': {'AI_AGENT_GOAL_SUCCESS',
'AI_AGENT_INVOCATION_SUCCESS'}}}}}}}}}}},
'Section': {'Enablement': {'Condition': {'Operands': {'Expression': {'Source': {'AiMetricsField': {'AI_AGENT_GOAL_SUCCESS',
'AI_AGENT_INVOCATION_SUCCESS'}}}}}}}},
'TargetConfiguration': {'AutomatedParticipantRole': 'LEX_BOT '
'| '
'AI_AGENT '
'| '
'SYSTEM'}}}
Describes an evaluation form in the specified Connect Customer instance. If the version property is not provided, the latest version of the evaluation form is described.
See also: AWS API Documentation
Request Syntax
client.describe_evaluation_form(
InstanceId='string',
EvaluationFormId='string',
EvaluationFormVersion=123
)
string
[REQUIRED]
The identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
string
[REQUIRED]
A unique identifier for the contact evaluation.
integer
A version of the evaluation form.
dict
Response Syntax
{
'EvaluationForm': {
'EvaluationFormId': 'string',
'EvaluationFormVersion': 123,
'Locked': True|False,
'EvaluationFormArn': 'string',
'Title': 'string',
'Description': 'string',
'Status': 'DRAFT'|'ACTIVE',
'Items': [
{
'Section': {
'Title': 'string',
'RefId': 'string',
'Instructions': 'string',
'Items': {'... recursive ...'},
'Weight': 123.0,
'IsExcludedFromScoring': True|False,
'ScoreThresholds': [
{
'PerformanceCategory': 'NEEDS_IMPROVEMENT'|'EXCEEDS_EXPECTATIONS',
'MinScorePercentage': 123.0,
'MaxScorePercentage': 123.0
},
],
'Enablement': {
'Condition': {
'Operands': [
{
'Expression': {
'Source': {
'Type': 'QUESTION_REF_ID'|'CONTACT'|'EVALUATION_METADATA'|'FORM_METADATA'|'AI_METRICS',
'RefId': 'string',
'ContactField': 'CATEGORIES'|'AGENT_ARN'|'QUEUE_ARN'|'ROUTING_PROFILE_ARN'|'CHANNEL'|'INITIATION_METHOD'|'IS_QUEUED'|'OVERALL_CUSTOMER_SENTIMENT_SCORE'|'OVERALL_AGENT_SENTIMENT_SCORE'|'CUSTOMER_SENTIMENT_SCORE_WITHOUT_AGENT'|'CUSTOMER_SENTIMENT_SCORE_WITH_AGENT'|'NON_TALK_TIME'|'NON_TALK_TIME_PERCENTAGE'|'NUMBER_OF_INTERRUPTIONS'|'CONTACT_DURATION'|'AGENT_INTERACTION_DURATION'|'CUSTOMER_HOLD_TIME'|'LONGEST_HOLD_DURATION'|'NUMBER_OF_HOLDS'|'AGENT_INTERACTION_AND_HOLD_DURATION'|'RECORDING_MEDIA_STREAM_TYPES',
'ContactAttributeKey': 'string',
'SegmentAttributeKey': 'string',
'EvaluationMetadataField': 'EVALUATION_TYPE',
'AiMetricsField': 'AI_SESSION_IS_HANDED_OFF'|'AI_SESSION_SELF_SERVICE_DURATION'|'AI_SESSION_GOAL_SUCCESS_RATE'|'AI_SESSION_COMPLETENESS_SCORE'|'AI_SESSION_FAITHFULNESS_SCORE'|'AI_AGENT_MAX_PROMPT_LATENCY'|'AI_AGENT_INVOCATION_SUCCESS'|'AI_AGENT_GOAL_SUCCESS'|'AI_TOOL_MAX_LATENCY'|'AI_TOOL_SELECTION_ACCURACY'|'AI_TOOL_PARAMETER_ACCURACY'|'AI_TOOL_UTILIZATION_ACCURACY'
},
'Values': [
{
'Type': 'OPTION_REF_ID'|'STRING_VALUE'|'NUMERIC_VALUE'|'BOOLEAN_VALUE'|'DATETIME_VALUE',
'RefId': 'string',
'StringValue': 'string',
'NumericValue': 123.0,
'BooleanValue': True|False,
'DateTimeValue': datetime(2015, 1, 1)
},
],
'Comparator': 'IN'|'NOT_IN'|'ALL_IN'|'EXACT'|'GREATER_THAN'|'LESS_THAN'|'GREATER_THAN_OR_EQUAL_TO'|'LESS_THAN_OR_EQUAL_TO'|'EQUAL_TO'|'NOT_EQUAL_TO'
},
'Condition': {'... recursive ...'}
},
],
'Operator': 'OR'|'AND'
},
'Action': 'DISABLE'|'ENABLE',
'DefaultAction': 'DISABLE'|'ENABLE'
}
},
'Question': {
'Title': 'string',
'Instructions': 'string',
'RefId': 'string',
'NotApplicableEnabled': True|False,
'QuestionType': 'TEXT'|'SINGLESELECT'|'NUMERIC'|'MULTISELECT'|'DATETIME',
'QuestionTypeProperties': {
'Numeric': {
'MinValue': 123,
'MaxValue': 123,
'Options': [
{
'MinValue': 123,
'MaxValue': 123,
'Score': 123,
'AutomaticFail': True|False,
'AutomaticFailConfiguration': {
'TargetSection': 'string'
},
'PointsConfiguration': {
'PointValue': 123,
'IsBonus': True|False
}
},
],
'Automation': {
'PropertyValue': {
'Label': 'OVERALL_CUSTOMER_SENTIMENT_SCORE'|'OVERALL_AGENT_SENTIMENT_SCORE'|'CUSTOMER_SENTIMENT_SCORE_WITHOUT_AGENT'|'CUSTOMER_SENTIMENT_SCORE_WITH_AGENT'|'NON_TALK_TIME'|'NON_TALK_TIME_PERCENTAGE'|'NUMBER_OF_INTERRUPTIONS'|'CONTACT_DURATION'|'AGENT_INTERACTION_DURATION'|'CUSTOMER_HOLD_TIME'|'LONGEST_HOLD_DURATION'|'NUMBER_OF_HOLDS'|'AGENT_INTERACTION_AND_HOLD_DURATION'|'AI_SESSION_SELF_SERVICE_DURATION'|'AI_SESSION_GOAL_SUCCESS_RATE'|'AI_SESSION_COMPLETENESS_SCORE'|'AI_SESSION_FAITHFULNESS_SCORE'|'AI_AGENT_MAX_PROMPT_LATENCY'|'AI_TOOL_MAX_LATENCY'|'AI_TOOL_SELECTION_ACCURACY'|'AI_TOOL_PARAMETER_ACCURACY'|'AI_TOOL_UTILIZATION_ACCURACY'|'AI_AGENT_CONVERSATION_TURNS'|'AI_AGENT_CONTEXT_FIDELITY_SCORE'|'LEX_BOT_INTENTS_SUCCESS_RATE'
},
'AnswerSource': {
'SourceType': 'CONTACT_LENS_DATA'|'GEN_AI'|'CONDITION'
}
}
},
'SingleSelect': {
'Options': [
{
'RefId': 'string',
'Text': 'string',
'Score': 123,
'AutomaticFail': True|False,
'AutomaticFailConfiguration': {
'TargetSection': 'string'
},
'PointsConfiguration': {
'PointValue': 123,
'IsBonus': True|False
}
},
],
'DisplayAs': 'DROPDOWN'|'RADIO',
'Automation': {
'Options': [
{
'RuleCategory': {
'Category': 'string',
'Condition': 'PRESENT'|'NOT_PRESENT',
'OptionRefId': 'string'
},
'AutomationRule': {
'Condition': {
'Operands': [
{
'Expression': {
'Source': {
'Type': 'QUESTION_REF_ID'|'CONTACT'|'EVALUATION_METADATA'|'FORM_METADATA'|'AI_METRICS',
'RefId': 'string',
'ContactField': 'CATEGORIES'|'AGENT_ARN'|'QUEUE_ARN'|'ROUTING_PROFILE_ARN'|'CHANNEL'|'INITIATION_METHOD'|'IS_QUEUED'|'OVERALL_CUSTOMER_SENTIMENT_SCORE'|'OVERALL_AGENT_SENTIMENT_SCORE'|'CUSTOMER_SENTIMENT_SCORE_WITHOUT_AGENT'|'CUSTOMER_SENTIMENT_SCORE_WITH_AGENT'|'NON_TALK_TIME'|'NON_TALK_TIME_PERCENTAGE'|'NUMBER_OF_INTERRUPTIONS'|'CONTACT_DURATION'|'AGENT_INTERACTION_DURATION'|'CUSTOMER_HOLD_TIME'|'LONGEST_HOLD_DURATION'|'NUMBER_OF_HOLDS'|'AGENT_INTERACTION_AND_HOLD_DURATION'|'RECORDING_MEDIA_STREAM_TYPES',
'ContactAttributeKey': 'string',
'SegmentAttributeKey': 'string',
'EvaluationMetadataField': 'EVALUATION_TYPE',
'AiMetricsField': 'AI_SESSION_IS_HANDED_OFF'|'AI_SESSION_SELF_SERVICE_DURATION'|'AI_SESSION_GOAL_SUCCESS_RATE'|'AI_SESSION_COMPLETENESS_SCORE'|'AI_SESSION_FAITHFULNESS_SCORE'|'AI_AGENT_MAX_PROMPT_LATENCY'|'AI_AGENT_INVOCATION_SUCCESS'|'AI_AGENT_GOAL_SUCCESS'|'AI_TOOL_MAX_LATENCY'|'AI_TOOL_SELECTION_ACCURACY'|'AI_TOOL_PARAMETER_ACCURACY'|'AI_TOOL_UTILIZATION_ACCURACY'
},
'Values': [
{
'Type': 'OPTION_REF_ID'|'STRING_VALUE'|'NUMERIC_VALUE'|'BOOLEAN_VALUE'|'DATETIME_VALUE',
'RefId': 'string',
'StringValue': 'string',
'NumericValue': 123.0,
'BooleanValue': True|False,
'DateTimeValue': datetime(2015, 1, 1)
},
],
'Comparator': 'IN'|'NOT_IN'|'ALL_IN'|'EXACT'|'GREATER_THAN'|'LESS_THAN'|'GREATER_THAN_OR_EQUAL_TO'|'LESS_THAN_OR_EQUAL_TO'|'EQUAL_TO'|'NOT_EQUAL_TO'
},
'Condition': {'... recursive ...'}
},
],
'Operator': 'OR'|'AND'
},
'OptionRefId': 'string'
}
},
],
'DefaultOptionRefId': 'string',
'AnswerSource': {
'SourceType': 'CONTACT_LENS_DATA'|'GEN_AI'|'CONDITION'
}
}
},
'Text': {
'Automation': {
'AnswerSource': {
'SourceType': 'CONTACT_LENS_DATA'|'GEN_AI'|'CONDITION'
}
}
},
'MultiSelect': {
'Options': [
{
'RefId': 'string',
'Text': 'string',
'Score': 123,
'AutomaticFail': True|False,
'AutomaticFailConfiguration': {
'TargetSection': 'string'
},
'PointsConfiguration': {
'PointValue': 123,
'IsBonus': True|False
}
},
],
'DisplayAs': 'DROPDOWN'|'CHECKBOX',
'Automation': {
'Options': [
{
'RuleCategory': {
'Category': 'string',
'Condition': 'PRESENT'|'NOT_PRESENT',
'OptionRefIds': [
'string',
]
}
},
],
'DefaultOptionRefIds': [
'string',
],
'AnswerSource': {
'SourceType': 'CONTACT_LENS_DATA'|'GEN_AI'|'CONDITION'
}
}
}
},
'Enablement': {
'Condition': {
'Operands': [
{
'Expression': {
'Source': {
'Type': 'QUESTION_REF_ID'|'CONTACT'|'EVALUATION_METADATA'|'FORM_METADATA'|'AI_METRICS',
'RefId': 'string',
'ContactField': 'CATEGORIES'|'AGENT_ARN'|'QUEUE_ARN'|'ROUTING_PROFILE_ARN'|'CHANNEL'|'INITIATION_METHOD'|'IS_QUEUED'|'OVERALL_CUSTOMER_SENTIMENT_SCORE'|'OVERALL_AGENT_SENTIMENT_SCORE'|'CUSTOMER_SENTIMENT_SCORE_WITHOUT_AGENT'|'CUSTOMER_SENTIMENT_SCORE_WITH_AGENT'|'NON_TALK_TIME'|'NON_TALK_TIME_PERCENTAGE'|'NUMBER_OF_INTERRUPTIONS'|'CONTACT_DURATION'|'AGENT_INTERACTION_DURATION'|'CUSTOMER_HOLD_TIME'|'LONGEST_HOLD_DURATION'|'NUMBER_OF_HOLDS'|'AGENT_INTERACTION_AND_HOLD_DURATION'|'RECORDING_MEDIA_STREAM_TYPES',
'ContactAttributeKey': 'string',
'SegmentAttributeKey': 'string',
'EvaluationMetadataField': 'EVALUATION_TYPE',
'AiMetricsField': 'AI_SESSION_IS_HANDED_OFF'|'AI_SESSION_SELF_SERVICE_DURATION'|'AI_SESSION_GOAL_SUCCESS_RATE'|'AI_SESSION_COMPLETENESS_SCORE'|'AI_SESSION_FAITHFULNESS_SCORE'|'AI_AGENT_MAX_PROMPT_LATENCY'|'AI_AGENT_INVOCATION_SUCCESS'|'AI_AGENT_GOAL_SUCCESS'|'AI_TOOL_MAX_LATENCY'|'AI_TOOL_SELECTION_ACCURACY'|'AI_TOOL_PARAMETER_ACCURACY'|'AI_TOOL_UTILIZATION_ACCURACY'
},
'Values': [
{
'Type': 'OPTION_REF_ID'|'STRING_VALUE'|'NUMERIC_VALUE'|'BOOLEAN_VALUE'|'DATETIME_VALUE',
'RefId': 'string',
'StringValue': 'string',
'NumericValue': 123.0,
'BooleanValue': True|False,
'DateTimeValue': datetime(2015, 1, 1)
},
],
'Comparator': 'IN'|'NOT_IN'|'ALL_IN'|'EXACT'|'GREATER_THAN'|'LESS_THAN'|'GREATER_THAN_OR_EQUAL_TO'|'LESS_THAN_OR_EQUAL_TO'|'EQUAL_TO'|'NOT_EQUAL_TO'
},
'Condition': {'... recursive ...'}
},
],
'Operator': 'OR'|'AND'
},
'Action': 'DISABLE'|'ENABLE',
'DefaultAction': 'DISABLE'|'ENABLE'
},
'Weight': 123.0,
'ScoringConfiguration': {
'PointsConfiguration': {
'MaxPointValue': 123,
'MinPointValue': 123,
'IsBonus': True|False
},
'IsExcludedFromScoring': True|False,
'ScoreThresholds': [
{
'PerformanceCategory': 'NEEDS_IMPROVEMENT'|'EXCEEDS_EXPECTATIONS',
'MinScorePercentage': 123.0,
'MaxScorePercentage': 123.0
},
]
},
'MetricConfiguration': {
'MetricType': 'BUSINESS_OUTCOME',
'MetricName': 'string'
}
}
},
],
'ScoringStrategy': {
'Mode': 'QUESTION_ONLY'|'SECTION_ONLY'|'POINTS_BASED',
'Status': 'ENABLED'|'DISABLED',
'ScoreThresholds': [
{
'PerformanceCategory': 'NEEDS_IMPROVEMENT'|'EXCEEDS_EXPECTATIONS',
'MinScorePercentage': 123.0,
'MaxScorePercentage': 123.0
},
]
},
'CreatedTime': datetime(2015, 1, 1),
'CreatedBy': 'string',
'LastModifiedTime': datetime(2015, 1, 1),
'LastModifiedBy': 'string',
'AutoEvaluationConfiguration': {
'Enabled': True|False
},
'ReviewConfiguration': {
'ReviewNotificationRecipients': [
{
'Type': 'USER_ID',
'Value': {
'UserId': 'string'
}
},
],
'EligibilityDays': 123
},
'Tags': {
'string': 'string'
},
'TargetConfiguration': {
'ContactInteractionType': 'AGENT'|'AUTOMATED'|'CUSTOMER',
'AutomatedParticipantRole': 'LEX_BOT'|'AI_AGENT'|'SYSTEM'
},
'LanguageConfiguration': {
'FormLanguage': 'de-DE'|'en-US'|'es-ES'|'fr-FR'|'it-IT'|'pt-BR'|'ja-JP'|'ko-KR'|'zh-CN'|'ms-MY'|'af-ZA'|'sq-AL'|'am-ET'|'ar-AE'|'ar-SA'|'hy-AM'|'eu-ES'|'be-BY'|'bs-BA'|'bg-BG'|'ca-ES'|'ckb-IR'|'ckb-IQ'|'zh-TW'|'hr-HR'|'cs-CZ'|'da-DK'|'nl-BE'|'nl-NL'|'en-AU'|'en-IN'|'en-IE'|'en-NZ'|'en-AB'|'en-SG'|'en-ZA'|'en-GB'|'en-WL'|'fa-IR'|'fa-AF'|'fi-FI'|'fr-BE'|'fr-CA'|'ga-IE'|'gl-ES'|'ka-GE'|'de-AT'|'de-CH'|'el-GR'|'gu-IN'|'ht-HT'|'he-IL'|'hi-IN'|'hu-HU'|'is-IS'|'id-ID'|'jv-ID'|'km-KH'|'kn-IN'|'kk-KZ'|'lo-LA'|'lv-LV'|'lt-LT'|'mk-MK'|'ml-IN'|'mr-IN'|'ne-NP'|'no-NO'|'or-IN'|'ps-AF'|'pl-PL'|'pt-PT'|'pa-IN'|'ro-RO'|'ru-RU'|'sr-RS'|'si-LK'|'sk-SK'|'sl-SI'|'es-MX'|'es-US'|'su-ID'|'sw-BI'|'sw-KE'|'sw-RW'|'sw-TZ'|'sw-UG'|'sv-SE'|'tl-PH'|'ta-IN'|'te-IN'|'th-TH'|'tr-TR'|'uk-UA'|'uz-UZ'|'vi-VN'|'zu-ZA'|'my-MM'|'so-SO'|'yue-HK'|'et-EE'|'hmn'|'lg-UG'|'cy-GB'|'xh-ZA'|'bn-BD'
},
'LatestValidationStatus': 'IN_PROGRESS'|'COMPLETED'|'FAILED',
'LastValidationTime': datetime(2015, 1, 1),
'AIVersion': 'string'
}
}
Response Structure
(dict) --
EvaluationForm (dict) --
Information about the evaluation form.
EvaluationFormId (string) --
The unique identifier for the evaluation form.
EvaluationFormVersion (integer) --
A version of the evaluation form.
Locked (boolean) --
The flag indicating whether the evaluation form is locked for changes.
EvaluationFormArn (string) --
The Amazon Resource Name (ARN) for the evaluation form resource.
Title (string) --
A title of the evaluation form.
Description (string) --
The description of the evaluation form.
Status (string) --
The status of the evaluation form.
Items (list) --
Items that are part of the evaluation form. The total number of sections and questions must not exceed 100 each. Questions must be contained in a section.
(dict) --
Information about an item from an evaluation form. The item must be either a section or a question.
Section (dict) --
The information of the section.
Title (string) --
The title of the section.
RefId (string) --
The identifier of the section. An identifier must be unique within the evaluation form.
Instructions (string) --
The instructions of the section.
Items (list) --
The items of the section.
Weight (float) --
The scoring weight of the section.
IsExcludedFromScoring (boolean) --
The flag to exclude the section from scoring.
ScoreThresholds (list) --
The score thresholds for performance categories.
(dict) --
Information about a score threshold for a performance category.
PerformanceCategory (string) --
The performance category name.
MinScorePercentage (float) --
The minimum score percentage for the performance category.
MaxScorePercentage (float) --
The maximum score percentage for the performance category.
Enablement (dict) --
The conditional enablement configuration of the section. Sections use the same enablement model as questions.
Condition (dict) --
A condition for item enablement configuration.
Operands (list) --
Operands of the enablement condition.
(dict) --
An operand of the enablement condition.
Expression (dict) --
An expression of the enablement condition.
Source (dict) --
A source item of enablement expression.
Type (string) --
A type of source item. Valid values:
QUESTION_REF_ID - The answer to another question in the evaluation form.
CONTACT - Data from the evaluated contact.
EVALUATION_METADATA - Metadata of the evaluation, such as the evaluation type.
AI_METRICS - Metrics about AI agents, AI sessions, and AI tools on the contact.
RefId (string) --
A referenceId of the source item. Use when Type is QUESTION_REF_ID.
ContactField (string) --
The contact field to use as the source, such as CHANNEL, QUEUE_ARN, OVERALL_CUSTOMER_SENTIMENT_SCORE, or RECORDING_MEDIA_STREAM_TYPES. Use when Type is CONTACT.
ContactAttributeKey (string) --
The key of the contact attribute to use as the source. Use when Type is CONTACT.
SegmentAttributeKey (string) --
The key of the contact segment attribute to use as the source. Use when Type is CONTACT.
EvaluationMetadataField (string) --
The evaluation metadata field to use as the source. Use when Type is EVALUATION_METADATA.
AiMetricsField (string) --
The AI metrics field to use as the source. Use when Type is AI_METRICS.
Values (list) --
A list of values from source item.
(dict) --
An enablement expression source value. Provide only the value member that matches the specified Type.
Type (string) --
A type of source item value. Valid values: OPTION_REF_ID | STRING_VALUE | NUMERIC_VALUE | BOOLEAN_VALUE | DATETIME_VALUE.
RefId (string) --
A referenceId of the source value. Use when Type is OPTION_REF_ID.
StringValue (string) --
A string value to compare against the source. Use when Type is STRING_VALUE.
NumericValue (float) --
A numeric value to compare against the source. Use when Type is NUMERIC_VALUE.
BooleanValue (boolean) --
A Boolean value to compare against the source. Use when Type is BOOLEAN_VALUE.
DateTimeValue (datetime) --
A date and time value to compare against the source. Use when Type is DATETIME_VALUE.
Comparator (string) --
A comparator to be used against a list of values. IN, NOT_IN, ALL_IN, and EXACT compare sets of values. GREATER_THAN, LESS_THAN, GREATER_THAN_OR_EQUAL_TO, and LESS_THAN_OR_EQUAL_TO compare a single numeric or date and time value. EQUAL_TO and NOT_EQUAL_TO compare a single value.
Condition (dict) --
A condition for item enablement.
Operator (string) --
The operator to apply to the operands when more than one operand is provided.
Action (string) --
The enablement action to apply if the condition is satisfied.
DefaultAction (string) --
The enablement action to apply if the condition is not satisfied. This action is also applied when the condition depends on an external source that is still pending or could not be resolved.
Question (dict) --
The information of the question.
Title (string) --
The title of the question.
Instructions (string) --
The instructions of the section.
RefId (string) --
The identifier of the question. An identifier must be unique within the evaluation form.
NotApplicableEnabled (boolean) --
The flag to enable not applicable answers to the question.
QuestionType (string) --
The type of the question.
QuestionTypeProperties (dict) --
The properties of the type of question. Text questions do not have to define question type properties.
Numeric (dict) --
The properties of the numeric question.
MinValue (integer) --
The minimum answer value.
MaxValue (integer) --
The maximum answer value.
Options (list) --
The scoring options of the numeric question.
(dict) --
Information about the option range used for scoring in numeric questions.
MinValue (integer) --
The minimum answer value of the range option.
MaxValue (integer) --
The maximum answer value of the range option.
Score (integer) --
The score assigned to answer values within the range option.
AutomaticFail (boolean) --
The flag to mark the option as automatic fail. If an automatic fail answer is provided, the overall evaluation gets a score of 0.
AutomaticFailConfiguration (dict) --
A configuration for automatic fail.
TargetSection (string) --
The referenceId of the target section for auto failure.
PointsConfiguration (dict) --
The points configuration for point-based scoring.
PointValue (integer) --
The point value assigned to the answer option.
IsBonus (boolean) --
The flag to mark the option as a bonus option.
Automation (dict) --
The automation properties of the numeric question.
PropertyValue (dict) --
The property value of the automation.
Label (string) --
The property label of the automation.
AnswerSource (dict) --
A source of automation answer for numeric question.
SourceType (string) --
The automation answer source type. Valid values:
CONTACT_LENS_DATA - The answer is based on Contact Lens data, such as rule categories and metrics.
GEN_AI - The answer is generated by generative AI.
CONDITION - The answer is determined by evaluating the conditions defined in the automation rules of the question.
SingleSelect (dict) --
The properties of the numeric question.
Options (list) --
The answer options of the single select question.
(dict) --
Information about the automation configuration in single select questions.
RefId (string) --
The identifier of the answer option. An identifier must be unique within the question.
Text (string) --
The title of the answer option.
Score (integer) --
The score assigned to the answer option.
AutomaticFail (boolean) --
The flag to mark the option as automatic fail. If an automatic fail answer is provided, the overall evaluation gets a score of 0.
AutomaticFailConfiguration (dict) --
Whether automatic fail is configured on a single select question.
TargetSection (string) --
The referenceId of the target section for auto failure.
PointsConfiguration (dict) --
The points configuration for point-based scoring.
PointValue (integer) --
The point value assigned to the answer option.
IsBonus (boolean) --
The flag to mark the option as a bonus option.
DisplayAs (string) --
The display mode of the single select question.
Automation (dict) --
The display mode of the single select question.
Options (list) --
The automation options of the single select question.
(dict) --
Information about the automation option of a single select question.
RuleCategory (dict) --
The automation option based on a rule category for the single select question.
Category (string) --
The category name, as defined in Rules. This is equivalent to a conversational analytics rule with the same name: the automation option is applied based on whether that rule matched the contact. For more information about creating rules, see Create rules in the Connect Customer Administrator Guide.
Condition (string) --
The condition to apply for the automation option. If the condition is PRESENT, then the option is applied when the contact data includes the category. Similarly, if the condition is NOT_PRESENT, then the option is applied when the contact data does not include the category.
OptionRefId (string) --
The identifier of the answer option.
AutomationRule (dict) --
The automation option based on a condition for the single select question. Use with the CONDITION answer source type.
Condition (dict) --
The condition that must be satisfied for the answer option to be selected. The condition uses the same sources, comparators, and operators as item enablement conditions.
Operands (list) --
Operands of the enablement condition.
(dict) --
An operand of the enablement condition.
Expression (dict) --
An expression of the enablement condition.
Source (dict) --
A source item of enablement expression.
Type (string) --
A type of source item. Valid values:
QUESTION_REF_ID - The answer to another question in the evaluation form.
CONTACT - Data from the evaluated contact.
EVALUATION_METADATA - Metadata of the evaluation, such as the evaluation type.
AI_METRICS - Metrics about AI agents, AI sessions, and AI tools on the contact.
RefId (string) --
A referenceId of the source item. Use when Type is QUESTION_REF_ID.
ContactField (string) --
The contact field to use as the source, such as CHANNEL, QUEUE_ARN, OVERALL_CUSTOMER_SENTIMENT_SCORE, or RECORDING_MEDIA_STREAM_TYPES. Use when Type is CONTACT.
ContactAttributeKey (string) --
The key of the contact attribute to use as the source. Use when Type is CONTACT.
SegmentAttributeKey (string) --
The key of the contact segment attribute to use as the source. Use when Type is CONTACT.
EvaluationMetadataField (string) --
The evaluation metadata field to use as the source. Use when Type is EVALUATION_METADATA.
AiMetricsField (string) --
The AI metrics field to use as the source. Use when Type is AI_METRICS.
Values (list) --
A list of values from source item.
(dict) --
An enablement expression source value. Provide only the value member that matches the specified Type.
Type (string) --
A type of source item value. Valid values: OPTION_REF_ID | STRING_VALUE | NUMERIC_VALUE | BOOLEAN_VALUE | DATETIME_VALUE.
RefId (string) --
A referenceId of the source value. Use when Type is OPTION_REF_ID.
StringValue (string) --
A string value to compare against the source. Use when Type is STRING_VALUE.
NumericValue (float) --
A numeric value to compare against the source. Use when Type is NUMERIC_VALUE.
BooleanValue (boolean) --
A Boolean value to compare against the source. Use when Type is BOOLEAN_VALUE.
DateTimeValue (datetime) --
A date and time value to compare against the source. Use when Type is DATETIME_VALUE.
Comparator (string) --
A comparator to be used against a list of values. IN, NOT_IN, ALL_IN, and EXACT compare sets of values. GREATER_THAN, LESS_THAN, GREATER_THAN_OR_EQUAL_TO, and LESS_THAN_OR_EQUAL_TO compare a single numeric or date and time value. EQUAL_TO and NOT_EQUAL_TO compare a single value.
Condition (dict) --
A condition for item enablement.
Operator (string) --
The operator to apply to the operands when more than one operand is provided.
OptionRefId (string) --
The identifier of the answer option to select when the condition is satisfied.
DefaultOptionRefId (string) --
The identifier of the default answer option, when none of the automation options match the criteria.
AnswerSource (dict) --
Automation answer source.
SourceType (string) --
The automation answer source type. Valid values:
CONTACT_LENS_DATA - The answer is based on Contact Lens data, such as rule categories and metrics.
GEN_AI - The answer is generated by generative AI.
CONDITION - The answer is determined by evaluating the conditions defined in the automation rules of the question.
Text (dict) --
The properties of the text question.
Automation (dict) --
The automation properties of the text question.
AnswerSource (dict) --
Automation answer source.
SourceType (string) --
The automation answer source type. Valid values:
CONTACT_LENS_DATA - The answer is based on Contact Lens data, such as rule categories and metrics.
GEN_AI - The answer is generated by generative AI.
CONDITION - The answer is determined by evaluating the conditions defined in the automation rules of the question.
MultiSelect (dict) --
Properties for multi-select question types.
Options (list) --
Options available for this multi-select question.
(dict) --
An option for a multi-select question in an evaluation form.
RefId (string) --
Reference identifier for this option.
Text (string) --
Display text for this option.
Score (integer) --
The score assigned to the answer option.
AutomaticFail (boolean) --
The flag to mark the option as automatic fail. If an automatic fail answer is provided, the overall evaluation gets a score of 0.
AutomaticFailConfiguration (dict) --
Information about automatic fail configuration for an evaluation form.
TargetSection (string) --
The referenceId of the target section for auto failure.
PointsConfiguration (dict) --
The points configuration for point-based scoring.
PointValue (integer) --
The point value assigned to the answer option.
IsBonus (boolean) --
The flag to mark the option as a bonus option.
DisplayAs (string) --
Display format for the multi-select question.
Automation (dict) --
Automation configuration for this multi-select question.
Options (list) --
Automation options for the multi-select question.
(dict) --
An automation option for a multi-select question.
RuleCategory (dict) --
Rule category configuration for this automation option.
Category (string) --
The category name for this automation rule.
Condition (string) --
The condition for this automation rule.
OptionRefIds (list) --
Reference IDs of options for this automation rule.
(string) --
DefaultOptionRefIds (list) --
Reference IDs of default options.
(string) --
AnswerSource (dict) --
Automation answer source.
SourceType (string) --
The automation answer source type. Valid values:
CONTACT_LENS_DATA - The answer is based on Contact Lens data, such as rule categories and metrics.
GEN_AI - The answer is generated by generative AI.
CONDITION - The answer is determined by evaluating the conditions defined in the automation rules of the question.
Enablement (dict) --
A question conditional enablement.
Condition (dict) --
A condition for item enablement configuration.
Operands (list) --
Operands of the enablement condition.
(dict) --
An operand of the enablement condition.
Expression (dict) --
An expression of the enablement condition.
Source (dict) --
A source item of enablement expression.
Type (string) --
A type of source item. Valid values:
QUESTION_REF_ID - The answer to another question in the evaluation form.
CONTACT - Data from the evaluated contact.
EVALUATION_METADATA - Metadata of the evaluation, such as the evaluation type.
AI_METRICS - Metrics about AI agents, AI sessions, and AI tools on the contact.
RefId (string) --
A referenceId of the source item. Use when Type is QUESTION_REF_ID.
ContactField (string) --
The contact field to use as the source, such as CHANNEL, QUEUE_ARN, OVERALL_CUSTOMER_SENTIMENT_SCORE, or RECORDING_MEDIA_STREAM_TYPES. Use when Type is CONTACT.
ContactAttributeKey (string) --
The key of the contact attribute to use as the source. Use when Type is CONTACT.
SegmentAttributeKey (string) --
The key of the contact segment attribute to use as the source. Use when Type is CONTACT.
EvaluationMetadataField (string) --
The evaluation metadata field to use as the source. Use when Type is EVALUATION_METADATA.
AiMetricsField (string) --
The AI metrics field to use as the source. Use when Type is AI_METRICS.
Values (list) --
A list of values from source item.
(dict) --
An enablement expression source value. Provide only the value member that matches the specified Type.
Type (string) --
A type of source item value. Valid values: OPTION_REF_ID | STRING_VALUE | NUMERIC_VALUE | BOOLEAN_VALUE | DATETIME_VALUE.
RefId (string) --
A referenceId of the source value. Use when Type is OPTION_REF_ID.
StringValue (string) --
A string value to compare against the source. Use when Type is STRING_VALUE.
NumericValue (float) --
A numeric value to compare against the source. Use when Type is NUMERIC_VALUE.
BooleanValue (boolean) --
A Boolean value to compare against the source. Use when Type is BOOLEAN_VALUE.
DateTimeValue (datetime) --
A date and time value to compare against the source. Use when Type is DATETIME_VALUE.
Comparator (string) --
A comparator to be used against a list of values. IN, NOT_IN, ALL_IN, and EXACT compare sets of values. GREATER_THAN, LESS_THAN, GREATER_THAN_OR_EQUAL_TO, and LESS_THAN_OR_EQUAL_TO compare a single numeric or date and time value. EQUAL_TO and NOT_EQUAL_TO compare a single value.
Condition (dict) --
A condition for item enablement.
Operator (string) --
The operator to apply to the operands when more than one operand is provided.
Action (string) --
The enablement action to apply if the condition is satisfied.
DefaultAction (string) --
The enablement action to apply if the condition is not satisfied. This action is also applied when the condition depends on an external source that is still pending or could not be resolved.
Weight (float) --
The scoring weight of the section.
ScoringConfiguration (dict) --
The scoring configuration of the question.
PointsConfiguration (dict) --
The points configuration for point-based scoring.
MaxPointValue (integer) --
The maximum point value.
MinPointValue (integer) --
The minimum point value.
IsBonus (boolean) --
The flag to mark the question as a bonus question.
IsExcludedFromScoring (boolean) --
The flag to exclude the question from scoring.
ScoreThresholds (list) --
The score thresholds for performance categories.
(dict) --
Information about a score threshold for a performance category.
PerformanceCategory (string) --
The performance category name.
MinScorePercentage (float) --
The minimum score percentage for the performance category.
MaxScorePercentage (float) --
The maximum score percentage for the performance category.
MetricConfiguration (dict) --
The metric configuration for the question. Use this to associate a business outcome metric with the question.
MetricType (string) --
The type of metric. Currently, only BUSINESS_OUTCOME is supported.
MetricName (string) --
The name of the metric. Valid values are:
SALE_SUCCESS – Sale success.
CSAT – Customer satisfaction.
CHURN_PROPENSITY – Churn propensity.
SELF_SERVICE_SUCCESS – Self-service success.
PARTIAL_SELF_SERVICE_SUCCESS – Partial self-service success.
ScoringStrategy (dict) --
A scoring strategy of the evaluation form.
Mode (string) --
The scoring mode of the evaluation form.
Status (string) --
The scoring status of the evaluation form.
ScoreThresholds (list) --
The score thresholds for performance categories.
(dict) --
Information about a score threshold for a performance category.
PerformanceCategory (string) --
The performance category name.
MinScorePercentage (float) --
The minimum score percentage for the performance category.
MaxScorePercentage (float) --
The maximum score percentage for the performance category.
CreatedTime (datetime) --
The timestamp for when the evaluation form was created.
CreatedBy (string) --
The Amazon Resource Name (ARN) of the user who created the evaluation form.
LastModifiedTime (datetime) --
The timestamp for when the evaluation form was last updated.
LastModifiedBy (string) --
The Amazon Resource Name (ARN) of the user who last updated the evaluation form.
AutoEvaluationConfiguration (dict) --
The automatic evaluation configuration of an evaluation form.
Enabled (boolean) --
When automated evaluation is enabled.
ReviewConfiguration (dict) --
Configuration for evaluation review settings of this evaluation form.
ReviewNotificationRecipients (list) --
List of recipients who should be notified when a review is requested.
(dict) --
Information about a recipient who should be notified when an evaluation review is requested.
Type (string) --
The type of notification recipient.
Value (dict) --
The value associated with the notification recipient type.
UserId (string) --
The user identifier for the notification recipient.
EligibilityDays (integer) --
Number of days during which a request for review can be submitted for evaluations created from this form.
Tags (dict) --
The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.
(string) --
(string) --
TargetConfiguration (dict) --
Configuration that specifies the target for this evaluation form.
ContactInteractionType (string) --
The contact interaction type for this evaluation form.
AutomatedParticipantRole (string) --
The role of the automated participant that this evaluation form targets. This applies when the ContactInteractionType is AUTOMATED, and identifies which automated participant the evaluation is for, such as an Amazon Lex bot ( LEX_BOT), an AI agent ( AI_AGENT), or the system ( SYSTEM).
LanguageConfiguration (dict) --
Configuration for language settings of this evaluation form.
FormLanguage (string) --
The language for the evaluation form.
LatestValidationStatus (string) --
The status of the most recent validation run for this evaluation form. Valid values: IN_PROGRESS, COMPLETED, FAILED.
LastValidationTime (datetime) --
The timestamp when the most recent validation was started for this evaluation form.
AIVersion (string) --
The AI version to use for the evaluation form. This specifies which AI model version is used for automated evaluations.
{'Rule': {'Actions': {'SubmitAutoEvaluationAction': {'ParticipantSelection': {'ParticipantIdentifiers': ['string'],
'ParticipantType': 'AI_AGENT '
'| '
'LEX_BOT',
'SelectionMode': 'ALL '
'| '
'SPECIFIC'}}},
'TriggerEventSource': {'EventSourceName': {'OnAIAgentLogAvailable'}}}}
Describes a rule for the specified Connect Customer instance.
See also: AWS API Documentation
Request Syntax
client.describe_rule(
InstanceId='string',
RuleId='string'
)
string
[REQUIRED]
The identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
string
[REQUIRED]
A unique identifier for the rule.
dict
Response Syntax
{
'Rule': {
'Name': 'string',
'RuleId': 'string',
'RuleArn': 'string',
'TriggerEventSource': {
'EventSourceName': 'OnPostCallAnalysisAvailable'|'OnRealTimeCallAnalysisAvailable'|'OnRealTimeChatAnalysisAvailable'|'OnPostChatAnalysisAvailable'|'OnAfterCallWorkAvailable'|'OnAfterChatWorkAvailable'|'OnEmailAnalysisAvailable'|'OnZendeskTicketCreate'|'OnZendeskTicketStatusUpdate'|'OnSalesforceCaseCreate'|'OnContactEvaluationSubmit'|'OnMetricDataUpdate'|'OnCaseCreate'|'OnCaseUpdate'|'OnSlaBreach'|'OnAlertUpdate'|'OnSchedulePublish'|'OnScheduleUpdate'|'OnScheduleTimeOffRequestActivity'|'OnAIAgentLogAvailable',
'IntegrationAssociationId': 'string'
},
'RuleCapabilityTiers': [
'GenerativeAI',
],
'Function': 'string',
'Actions': [
{
'ActionType': 'CREATE_TASK'|'ASSIGN_CONTACT_CATEGORY'|'GENERATE_EVENTBRIDGE_EVENT'|'SEND_NOTIFICATION'|'CREATE_CASE'|'UPDATE_CASE'|'ASSIGN_SLA'|'END_ASSOCIATED_TASKS'|'END_ASSOCIATED_EMAILS'|'SUBMIT_AUTO_EVALUATION'|'EXTRACT_INFORMATION'|'SEND_IN_APP_NOTIFICATION',
'TaskAction': {
'Name': 'string',
'Description': 'string',
'ContactFlowId': 'string',
'References': {
'string': {
'Value': 'string',
'Type': 'URL'|'ATTACHMENT'|'CONTACT_ANALYSIS'|'NUMBER'|'STRING'|'DATE'|'EMAIL'|'EMAIL_MESSAGE'|'EMAIL_MESSAGE_PLAIN_TEXT'|'EMAIL_MESSAGE_PLAIN_TEXT_REDACTED'|'EMAIL_MESSAGE_REDACTED'|'VOICEMAIL_RECORDING'|'VOICEMAIL_RECORDING_REDACTED'|'VOICEMAIL_ANALYSIS'|'VOICEMAIL_ANALYSIS_REDACTED',
'Status': 'AVAILABLE'|'DELETED'|'APPROVED'|'REJECTED'|'PROCESSING'|'FAILED'|'DRAFTING',
'Arn': 'string',
'StatusReason': 'string'
}
}
},
'EventBridgeAction': {
'Name': 'string'
},
'AssignContactCategoryAction': {},
'SendNotificationAction': {
'DeliveryMethod': 'EMAIL',
'Subject': 'string',
'Content': 'string',
'ContentType': 'PLAIN_TEXT',
'Recipient': {
'UserTags': {
'string': 'string'
},
'UserIds': [
'string',
]
},
'Exclusion': {
'UserTags': {
'string': 'string'
},
'UserIds': [
'string',
]
}
},
'CreateCaseAction': {
'Fields': [
{
'Id': 'string',
'Value': {
'BooleanValue': True|False,
'DoubleValue': 123.0,
'EmptyValue': {},
'StringValue': 'string'
}
},
],
'TemplateId': 'string'
},
'UpdateCaseAction': {
'Fields': [
{
'Id': 'string',
'Value': {
'BooleanValue': True|False,
'DoubleValue': 123.0,
'EmptyValue': {},
'StringValue': 'string'
}
},
]
},
'AssignSlaAction': {
'SlaAssignmentType': 'CASES',
'CaseSlaConfiguration': {
'Name': 'string',
'Type': 'CaseField',
'FieldId': 'string',
'TargetFieldValues': [
{
'BooleanValue': True|False,
'DoubleValue': 123.0,
'EmptyValue': {},
'StringValue': 'string'
},
],
'TargetSlaMinutes': 123
}
},
'EndAssociatedTasksAction': {},
'EndAssociatedEmailsAction': {},
'SubmitAutoEvaluationAction': {
'EvaluationFormId': 'string',
'ParticipantSelection': {
'ParticipantType': 'AI_AGENT'|'LEX_BOT',
'SelectionMode': 'ALL'|'SPECIFIC',
'ParticipantIdentifiers': [
'string',
]
}
},
'ExtractInformationAction': {
'RulesExtractionDefinitions': [
{
'Identifier': 'string'
},
]
},
'SendInAppNotificationAction': {
'Content': {
'string': 'string'
},
'Recipient': {
'UserTags': {
'string': 'string'
},
'UserIds': [
'string',
]
},
'Exclusion': {
'UserTags': {
'string': 'string'
},
'UserIds': [
'string',
]
},
'Priority': 'HIGH'|'LOW'
}
},
],
'PublishStatus': 'DRAFT'|'PUBLISHED',
'PreEvaluationFilters': {
'AndConditions': [
{
'ResourceType': 'CONTACT'|'CONTACT_EVALUATION',
'FilterType': 'TAG',
'FilterKey': 'string',
'FilterValue': 'string',
'Operator': 'EQUALS'
},
]
},
'CreatedTime': datetime(2015, 1, 1),
'LastUpdatedTime': datetime(2015, 1, 1),
'LastUpdatedBy': 'string',
'Tags': {
'string': 'string'
}
}
}
Response Structure
(dict) --
Rule (dict) --
Information about the rule.
Name (string) --
The name of the rule.
RuleId (string) --
A unique identifier for the rule.
RuleArn (string) --
The Amazon Resource Name (ARN) of the rule.
TriggerEventSource (dict) --
The event source to trigger the rule.
EventSourceName (string) --
The name of the event source.
IntegrationAssociationId (string) --
The identifier for the integration association.
RuleCapabilityTiers (list) --
The list of capability tiers associated with the rule. Used for categorizing rules by capability (for example, GenerativeAI).
(string) --
Function (string) --
The conditions of the rule.
Actions (list) --
A list of actions to be run when the rule is triggered.
(dict) --
Information about the action to be performed when a rule is triggered.
ActionType (string) --
The type of action that creates a rule.
TaskAction (dict) --
Information about the task action. This field is required if TriggerEventSource is one of the following values: OnZendeskTicketCreate | OnZendeskTicketStatusUpdate | OnSalesforceCaseCreate
Name (string) --
The name. Supports variable injection. For more information, see JSONPath reference in the Connect Customer Administrators Guide.
Description (string) --
The description. Supports variable injection. For more information, see JSONPath reference in the Connect Customer Administrators Guide.
ContactFlowId (string) --
The identifier of the flow.
References (dict) --
Information about the reference when the referenceType is URL. Otherwise, null. (Supports variable injection in the Value field.)
(string) --
(dict) --
Well-formed data on a contact, used by agents to complete a contact request. You can have up to 4,096 UTF-8 bytes across all references for a contact.
Value (string) --
A valid value for the reference. For example, for a URL reference, a formatted URL that is displayed to an agent in the Contact Control Panel (CCP).
Type (string) --
The type of the reference. DATE must be of type Epoch timestamp.
Status (string) --
Status of the attachment reference type.
Arn (string) --
The Amazon Resource Name (ARN) of the reference
StatusReason (string) --
Relevant details why the reference was not successfully created.
EventBridgeAction (dict) --
Information about the EventBridge action.
Supported only for TriggerEventSource values: OnPostCallAnalysisAvailable | OnRealTimeCallAnalysisAvailable | OnRealTimeChatAnalysisAvailable | OnPostChatAnalysisAvailable | OnContactEvaluationSubmit | OnMetricDataUpdate
Name (string) --
The name.
AssignContactCategoryAction (dict) --
Information about the contact category action.
Supported only for TriggerEventSource values: OnPostCallAnalysisAvailable | OnRealTimeCallAnalysisAvailable | OnRealTimeChatAnalysisAvailable | OnPostChatAnalysisAvailable | OnZendeskTicketCreate | OnZendeskTicketStatusUpdate | OnSalesforceCaseCreate
SendNotificationAction (dict) --
Information about the send notification action.
Supported only for TriggerEventSource values: OnPostCallAnalysisAvailable | OnRealTimeCallAnalysisAvailable | OnRealTimeChatAnalysisAvailable | OnPostChatAnalysisAvailable | OnContactEvaluationSubmit | OnMetricDataUpdate
DeliveryMethod (string) --
Notification delivery method.
Subject (string) --
The subject of the email if the delivery method is EMAIL. Supports variable injection. For more information, see JSONPath reference in the Connect Customer Administrators Guide.
Content (string) --
Notification content. Supports variable injection. For more information, see JSONPath reference in the Connect Customer Administrators Guide.
ContentType (string) --
Content type format.
Recipient (dict) --
Notification recipient.
UserTags (dict) --
The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }. Connect Customer users with the specified tags will be notified.
(string) --
(string) --
UserIds (list) --
A list of user IDs. Supports variable injection of $.ContactLens.ContactEvaluation.Agent.AgentId for OnContactEvaluationSubmit event source.
(string) --
Exclusion (dict) --
Recipients to exclude from notification.
UserTags (dict) --
The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }. Connect Customer users with the specified tags will be notified.
(string) --
(string) --
UserIds (list) --
A list of user IDs. Supports variable injection of $.ContactLens.ContactEvaluation.Agent.AgentId for OnContactEvaluationSubmit event source.
(string) --
CreateCaseAction (dict) --
Information about the create case action.
Supported only for TriggerEventSource values: OnPostCallAnalysisAvailable | OnPostChatAnalysisAvailable.
Fields (list) --
An array of objects with Field ID and Value data.
(dict) --
Object for case field values.
Id (string) --
Unique identifier of a field.
Value (dict) --
Union of potential field value types.
BooleanValue (boolean) --
A Boolean number value type.
DoubleValue (float) --
A Double number value type.
EmptyValue (dict) --
An empty value.
StringValue (string) --
String value type.
TemplateId (string) --
A unique identifier of a template.
UpdateCaseAction (dict) --
Information about the update case action.
Supported only for TriggerEventSource values: OnCaseCreate | OnCaseUpdate.
Fields (list) --
An array of objects with Field ID and Value data.
(dict) --
Object for case field values.
Id (string) --
Unique identifier of a field.
Value (dict) --
Union of potential field value types.
BooleanValue (boolean) --
A Boolean number value type.
DoubleValue (float) --
A Double number value type.
EmptyValue (dict) --
An empty value.
StringValue (string) --
String value type.
AssignSlaAction (dict) --
Information about the assign SLA action.
SlaAssignmentType (string) --
Type of SLA assignment.
CaseSlaConfiguration (dict) --
The SLA configuration for Case SLA Assignment.
Name (string) --
Name of an SLA.
Type (string) --
Type of SLA for Case SlaAssignmentType.
FieldId (string) --
Unique identifier of a Case field.
TargetFieldValues (list) --
Represents a list of target field values for the fieldId specified in CaseSlaConfiguration. The SLA is considered met if any one of these target field values matches the actual field value.
(dict) --
Object to store union of Field values.
BooleanValue (boolean) --
A Boolean number value type.
DoubleValue (float) --
A Double number value type.
EmptyValue (dict) --
An empty value.
StringValue (string) --
String value type.
TargetSlaMinutes (integer) --
Target duration in minutes within which an SLA should be completed.
EndAssociatedTasksAction (dict) --
Information about the end associated tasks action.
Supported only for TriggerEventSource values: OnCaseUpdate.
EndAssociatedEmailsAction (dict) --
Information about the end associated emails action.
Supported only for TriggerEventSource values: OnCaseUpdate.
SubmitAutoEvaluationAction (dict) --
Information about the submit automated evaluation action.
EvaluationFormId (string) --
The identifier of the auto-evaluation enabled form.
ParticipantSelection (dict) --
The automated participants in the contact to evaluate. Amazon Connect submits one evaluation for each selected participant. This field is required when TriggerEventSource is OnAIAgentLogAvailable, and is not supported for any other event source.
ParticipantType (string) --
The type of automated participant to evaluate. If the evaluation form specifies an automated participant role, this value must match it.
SelectionMode (string) --
Whether to evaluate all participants of the specified type in the contact ( ALL) or only the participants listed in ParticipantIdentifiers ( SPECIFIC).
ParticipantIdentifiers (list) --
The identifiers of the participants to evaluate. Each entry can be a resource ID or an ARN of an AI agent or an Amazon Lex bot alias; version qualifiers are ignored. This field is required when SelectionMode is SPECIFIC, and is not supported when SelectionMode is ALL.
(string) --
ExtractInformationAction (dict) --
Information about the extract information action.
RulesExtractionDefinitions (list) --
The list of extraction definition identifiers that specify what data to extract.
(dict) --
An identifier that references an extraction definition resource.
Identifier (string) --
The identifier of the extraction definition.
SendInAppNotificationAction (dict) --
Information about the send in-app notification action.
Supported only for TriggerEventSource values: OnPostCallAnalysisAvailable | OnRealTimeCallAnalysisAvailable | OnRealTimeChatAnalysisAvailable | OnPostChatAnalysisAvailable | OnAfterCallWorkAvailable | OnAfterChatWorkAvailable | OnEmailAnalysisAvailable | OnContactEvaluationSubmit | OnCaseCreate | OnCaseUpdate | OnSlaBreach | OnSchedulePublish | OnScheduleUpdate | OnScheduleTimeOffRequestActivity
Content (dict) --
Notification content. Supports variable injection. For more information, see JSONPath reference in the Connect Customer Administrators Guide.
(string) --
The locale code for localized content. Supported values include en_US, de_DE, es_ES, fr_FR, id_ID, it_IT, ja_JP, ko_KR, pt_BR, zh_CN, and zh_TW.
(string) --
A localized string value. Maximum length is 500 visible characters. In a markdown link of the form [label](url), only the label counts toward the limit.
Recipient (dict) --
Notification recipient.
UserTags (dict) --
The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }. Connect Customer users with the specified tags will be notified.
(string) --
(string) --
UserIds (list) --
A list of user IDs. Supports variable injection of $.ContactLens.ContactEvaluation.Agent.AgentId for OnContactEvaluationSubmit event source.
(string) --
Exclusion (dict) --
Recipients to exclude from notification.
UserTags (dict) --
The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }. Connect Customer users with the specified tags will be notified.
(string) --
(string) --
UserIds (list) --
A list of user IDs. Supports variable injection of $.ContactLens.ContactEvaluation.Agent.AgentId for OnContactEvaluationSubmit event source.
(string) --
Priority (string) --
Notification priority.
PublishStatus (string) --
The publish status of the rule.
PreEvaluationFilters (dict) --
The pre-evaluation filters for the rule, that restrict the rule to be applied to only certain resources based on the resource's attributes, such as tags assigned to a contact. The pre-evaluation filters are applied even before rule conditions are evaluated and are used to enforce tag-based-access-control while applying rules.
AndConditions (list) --
A list of conditions that the rule evaluates together using AND logic. All conditions must be met for the event to be evaluated by the rule.
(dict) --
A single pre-evaluation filter condition. Specifies a resource type, filter type, key, value, and operator to match against a resource attribute.
ResourceType (string) --
The type of resource to filter on. Valid values:
CONTACT - Filter on attributes of the contact, such as tags assigned to the contact.
CONTACT_EVALUATION - Filter on attributes of the contact evaluation, such as tags assigned to the contact evaluation, for rules triggered on the OnContactEvaluationSubmit event source.
FilterType (string) --
The type of filter to apply. Valid values: TAG.
FilterKey (string) --
The key of the attribute to filter on. For tag filters, this is the tag key.
FilterValue (string) --
The value to match against. For tag filters, this is the tag value.
Operator (string) --
The comparison operator for the filter condition. Valid values: EQUALS.
CreatedTime (datetime) --
The timestamp for when the rule was created.
LastUpdatedTime (datetime) --
The timestamp for the when the rule was last updated.
LastUpdatedBy (string) --
The Amazon Resource Name (ARN) of the user who last updated the rule.
Tags (dict) --
The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.
(string) --
(string) --
{'TestCase': {'EntryPoint': {'VoiceCallEntryPointParameters': {'TranscriptionLanguageCodes': ['string']}},
'SyntheticCustomerConfiguration': {'Enabled': 'boolean',
'Persona': {'CommunicationStyle': 'STANDARD '
'| '
'VERBOSE '
'| '
'CONCISE '
'| '
'TERSE',
'Cooperativeness': 'NEUTRAL '
'| '
'COOPERATIVE '
'| '
'UNCOOPERATIVE',
'DomainKnowledge': 'string',
'EmotionalState': 'NEUTRAL '
'| '
'FRUSTRATED '
'| '
'ANGRY '
'| '
'ANXIOUS '
'| '
'HAPPY '
'| '
'CONFUSED',
'Language': 'string',
'Name': 'string',
'Voice': 'string',
'VoiceEngine': 'STANDARD '
'| '
'NEURAL '
'| '
'GENERATIVE'},
'Scenario': {'ExpectedOutcome': 'string',
'Goal': 'string',
'InitialQuery': 'string',
'KnownInputs': [{'InputName': 'string',
'InputValue': 'string'}],
'Name': 'string',
'StopConditions': {'MaxTurns': 'integer'}}}}}
Describes the specified test case and allows you to get the content and metadata of the test case for the specified Amazon Connect instance.
See also: AWS API Documentation
Request Syntax
client.describe_test_case(
InstanceId='string',
TestCaseId='string',
Status='PUBLISHED'|'SAVED'
)
string
[REQUIRED]
The identifier of the Amazon Connect instance.
string
[REQUIRED]
The identifier of the test case.
string
The status of the test case version to retrieve. If not specified, returns the published version if available, otherwise returns the saved version.
dict
Response Syntax
{
'TestCase': {
'Arn': 'string',
'Id': 'string',
'Name': 'string',
'Content': 'string',
'EntryPoint': {
'Type': 'VOICE_CALL'|'CHAT',
'VoiceCallEntryPointParameters': {
'SourcePhoneNumber': 'string',
'DestinationPhoneNumber': 'string',
'FlowId': 'string',
'TranscriptionLanguageCodes': [
'string',
]
},
'ChatEntryPointParameters': {
'FlowId': 'string'
}
},
'InitializationData': 'string',
'SyntheticCustomerConfiguration': {
'Enabled': True|False,
'Persona': {
'Name': 'string',
'CommunicationStyle': 'STANDARD'|'VERBOSE'|'CONCISE'|'TERSE',
'Language': 'string',
'Voice': 'string',
'VoiceEngine': 'STANDARD'|'NEURAL'|'GENERATIVE',
'DomainKnowledge': 'string',
'EmotionalState': 'NEUTRAL'|'FRUSTRATED'|'ANGRY'|'ANXIOUS'|'HAPPY'|'CONFUSED',
'Cooperativeness': 'NEUTRAL'|'COOPERATIVE'|'UNCOOPERATIVE'
},
'Scenario': {
'Name': 'string',
'Goal': 'string',
'ExpectedOutcome': 'string',
'InitialQuery': 'string',
'StopConditions': {
'MaxTurns': 123
},
'KnownInputs': [
{
'InputName': 'string',
'InputValue': 'string'
},
]
}
},
'Description': 'string',
'Status': 'PUBLISHED'|'SAVED',
'LastModifiedTime': datetime(2015, 1, 1),
'LastModifiedRegion': 'string',
'Tags': {
'string': 'string'
},
'TestCaseSha256': 'string'
}
}
Response Structure
(dict) --
TestCase (dict) --
The test case object containing all test case information.
Arn (string) --
The Amazon Resource Name (ARN) of the test case.
Id (string) --
The identifier of the test case.
Name (string) --
The name of the test case.
Content (string) --
The JSON string that represents the content of the test.
EntryPoint (dict) --
Defines the starting point for the test, including channel type and parameters.
Type (string) --
The type of entry point.
VoiceCallEntryPointParameters (dict) --
Parameters for voice call entry point.
SourcePhoneNumber (string) --
The source phone number for the test.
DestinationPhoneNumber (string) --
The destination phone number for the test.
FlowId (string) --
The flow identifier for the test.
TranscriptionLanguageCodes (list) --
The language codes that Amazon Connect uses to transcribe the voice call during the test, for example en-US. You can specify up to 5 unique codes. If you specify more than one code, Amazon Connect identifies the language automatically from those codes.
(string) --
ChatEntryPointParameters (dict) --
Parameters for chat entry point.
FlowId (string) --
The flow identifier for the test.
InitializationData (string) --
Defines the test attributes for precise data representation. The value must be a valid JSON string.
SyntheticCustomerConfiguration (dict) --
The configuration of the AI-driven synthetic customer that you use to simulate the customer side of the test.
Enabled (boolean) --
Specifies whether the test case runs with the AI-driven synthetic customer. If you set this to true, the synthetic customer interacts with your flow, and you must include a Persona with a Name, and a Scenario with a Name, Goal, and ExpectedOutcome, before you publish the test case. If you set this to false, the test case runs from its observations. Your Persona and Scenario remain part of the test case, so you can turn the synthetic customer back on later, but they aren't used in the test.
Persona (dict) --
Who the synthetic customer is.
Name (string) --
The name of the persona.
CommunicationStyle (string) --
How the synthetic customer communicates.
Language (string) --
The language that the synthetic customer uses, for example en-US.
Voice (string) --
The Amazon Polly voice for the synthetic customer, for example Joanna.
VoiceEngine (string) --
The Amazon Polly engine that synthesizes the speech of the synthetic customer. Choose an engine that the selected Voice supports. If you don't specify an engine, Amazon Polly uses the standard engine.
DomainKnowledge (string) --
The background knowledge that the synthetic customer brings to the conversation.
EmotionalState (string) --
How the synthetic customer feels during the conversation.
Cooperativeness (string) --
How cooperative the synthetic customer is.
Scenario (dict) --
The situation and goal of the synthetic customer.
Name (string) --
The name of the scenario.
Goal (string) --
What the synthetic customer is trying to accomplish.
ExpectedOutcome (string) --
The result that counts as a successful test.
InitialQuery (string) --
The opening message of the synthetic customer.
StopConditions (dict) --
The limits that end the simulation if the expected outcome isn't reached.
MaxTurns (integer) --
The maximum number of exchanges between the synthetic customer and your flow. If you don't specify a value, the default is 50.
KnownInputs (list) --
The information that the synthetic customer knows and provides when asked, such as a reservation number. You can specify up to 20 inputs.
(dict) --
Contains a named value that the synthetic customer provides when asked.
InputName (string) --
The name of the input, for example ReservationId.
InputValue (string) --
The value of the input.
Description (string) --
The description of the test case.
Status (string) --
Indicates the test status as either SAVED or PUBLISHED.
LastModifiedTime (datetime) --
The time at which the test case was last modified.
LastModifiedRegion (string) --
The region in which the test case was last modified.
Tags (dict) --
The tags used to organize, track, or control access for this resource.
(string) --
(string) --
TestCaseSha256 (string) --
The SHA256 hash of the test case content.
{'Workspace': {'Visibility': {'PUBLIC'}}}
Retrieves details about a workspace, including its configuration and metadata.
See also: AWS API Documentation
Request Syntax
client.describe_workspace(
InstanceId='string',
WorkspaceId='string'
)
string
[REQUIRED]
The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
string
[REQUIRED]
The identifier of the workspace.
dict
Response Syntax
{
'Workspace': {
'Visibility': 'ALL'|'ASSIGNED'|'PUBLIC'|'NONE',
'Id': 'string',
'Name': 'string',
'Arn': 'string',
'Description': 'string',
'Theme': {
'Light': {
'Palette': {
'Header': {
'Background': 'string',
'Text': 'string',
'TextHover': 'string',
'InvertActionsColors': True|False
},
'Navigation': {
'Background': 'string',
'TextBackgroundHover': 'string',
'TextBackgroundActive': 'string',
'Text': 'string',
'TextHover': 'string',
'TextActive': 'string',
'InvertActionsColors': True|False
},
'Canvas': {
'ContainerBackground': 'string',
'PageBackground': 'string',
'ActiveBackground': 'string'
},
'Primary': {
'Default': 'string',
'Active': 'string',
'ContrastText': 'string'
}
},
'Images': {
'Logo': {
'Default': 'string',
'Favicon': 'string'
}
},
'Typography': {
'FontFamily': {
'Default': 'Arial'|'Courier New'|'Georgia'|'Times New Roman'|'Trebuchet'|'Verdana'
}
}
},
'Dark': {
'Palette': {
'Header': {
'Background': 'string',
'Text': 'string',
'TextHover': 'string',
'InvertActionsColors': True|False
},
'Navigation': {
'Background': 'string',
'TextBackgroundHover': 'string',
'TextBackgroundActive': 'string',
'Text': 'string',
'TextHover': 'string',
'TextActive': 'string',
'InvertActionsColors': True|False
},
'Canvas': {
'ContainerBackground': 'string',
'PageBackground': 'string',
'ActiveBackground': 'string'
},
'Primary': {
'Default': 'string',
'Active': 'string',
'ContrastText': 'string'
}
},
'Images': {
'Logo': {
'Default': 'string',
'Favicon': 'string'
}
},
'Typography': {
'FontFamily': {
'Default': 'Arial'|'Courier New'|'Georgia'|'Times New Roman'|'Trebuchet'|'Verdana'
}
}
}
},
'Title': 'string',
'LastModifiedTime': datetime(2015, 1, 1),
'LastModifiedRegion': 'string',
'Tags': {
'string': 'string'
}
}
}
Response Structure
(dict) --
Workspace (dict) --
Information about the workspace.
Visibility (string) --
Controls who can access the workspace. Valid values are: ALL (all users), ASSIGNED (only assigned users and routing profiles), PUBLIC (end customers who sign in with a customer profile), and NONE (not visible).
Id (string) --
The unique identifier of the workspace.
Name (string) --
The name of the workspace.
Arn (string) --
The Amazon Resource Name (ARN) of the workspace.
Description (string) --
The description of the workspace.
Theme (dict) --
The theme configuration for the workspace, including colors and styling.
Light (dict) --
The theme configuration for light mode.
Palette (dict) --
The color palette configuration for the workspace theme.
Header (dict) --
The color configuration for the header area.
Background (string) --
The background color of the header.
Text (string) --
The text color in the header.
TextHover (string) --
The text color when hovering over header elements.
InvertActionsColors (boolean) --
Whether to invert the colors of action buttons in the header.
Navigation (dict) --
The color configuration for the navigation area.
Background (string) --
The background color of the navigation area.
TextBackgroundHover (string) --
The background color when hovering over navigation text.
TextBackgroundActive (string) --
The background color for active navigation items.
Text (string) --
The text color in the navigation area.
TextHover (string) --
The text color when hovering over navigation items.
TextActive (string) --
The text color for active navigation items.
InvertActionsColors (boolean) --
Whether to invert the colors of action buttons in the navigation area.
Canvas (dict) --
The color configuration for the canvas area.
ContainerBackground (string) --
The background color for container elements.
PageBackground (string) --
The background color for page elements.
ActiveBackground (string) --
The background color for active elements.
Primary (dict) --
The primary color configuration used throughout the workspace.
Default (string) --
The default primary color used throughout the workspace.
Active (string) --
The primary color used for active states.
ContrastText (string) --
The text color that contrasts with the primary color for readability.
Images (dict) --
The image assets used in the workspace theme.
Logo (dict) --
The logo images used in the workspace.
Default (string) --
The default logo image displayed in the workspace.
Favicon (string) --
The favicon image displayed in the browser tab.
Typography (dict) --
The typography configuration for the workspace theme.
FontFamily (dict) --
The font family configuration for text in the workspace.
Default (string) --
The default font family to use in the workspace theme.
Dark (dict) --
The theme configuration for dark mode.
Palette (dict) --
The color palette configuration for the workspace theme.
Header (dict) --
The color configuration for the header area.
Background (string) --
The background color of the header.
Text (string) --
The text color in the header.
TextHover (string) --
The text color when hovering over header elements.
InvertActionsColors (boolean) --
Whether to invert the colors of action buttons in the header.
Navigation (dict) --
The color configuration for the navigation area.
Background (string) --
The background color of the navigation area.
TextBackgroundHover (string) --
The background color when hovering over navigation text.
TextBackgroundActive (string) --
The background color for active navigation items.
Text (string) --
The text color in the navigation area.
TextHover (string) --
The text color when hovering over navigation items.
TextActive (string) --
The text color for active navigation items.
InvertActionsColors (boolean) --
Whether to invert the colors of action buttons in the navigation area.
Canvas (dict) --
The color configuration for the canvas area.
ContainerBackground (string) --
The background color for container elements.
PageBackground (string) --
The background color for page elements.
ActiveBackground (string) --
The background color for active elements.
Primary (dict) --
The primary color configuration used throughout the workspace.
Default (string) --
The default primary color used throughout the workspace.
Active (string) --
The primary color used for active states.
ContrastText (string) --
The text color that contrasts with the primary color for readability.
Images (dict) --
The image assets used in the workspace theme.
Logo (dict) --
The logo images used in the workspace.
Default (string) --
The default logo image displayed in the workspace.
Favicon (string) --
The favicon image displayed in the browser tab.
Typography (dict) --
The typography configuration for the workspace theme.
FontFamily (dict) --
The font family configuration for text in the workspace.
Default (string) --
The default font family to use in the workspace theme.
Title (string) --
The title displayed for the workspace.
LastModifiedTime (datetime) --
The timestamp when the workspace was last modified.
LastModifiedRegion (string) --
The Amazon Web Services Region where the workspace was last modified.
Tags (dict) --
The tags used to organize, track, or control access for the workspace.
(string) --
(string) --
{'EvaluationSummaryList': {'ContactParticipant': {'ContactParticipantRole': {'AI_AGENT',
'LEX_BOT'}}}}
Lists contact evaluations in the specified Connect Customer instance.
See also: AWS API Documentation
Request Syntax
client.list_contact_evaluations(
InstanceId='string',
ContactId='string',
NextToken='string'
)
string
[REQUIRED]
The identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
string
[REQUIRED]
The identifier of the contact in this instance of Connect Customer.
string
The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
dict
Response Syntax
{
'EvaluationSummaryList': [
{
'EvaluationId': 'string',
'EvaluationArn': 'string',
'EvaluationFormTitle': 'string',
'EvaluationFormId': 'string',
'CalibrationSessionId': 'string',
'Status': 'DRAFT'|'SUBMITTED'|'REVIEW_REQUESTED'|'UNDER_REVIEW',
'AutoEvaluationEnabled': True|False,
'AutoEvaluationStatus': 'IN_PROGRESS'|'FAILED'|'SUCCEEDED',
'EvaluatorArn': 'string',
'Score': {
'Percentage': 123.0,
'NotApplicable': True|False,
'AutomaticFail': True|False,
'AppliedWeight': 123.0,
'EarnedPoints': 123,
'MaxBasePoint': 123,
'PerformanceCategory': 'NEEDS_IMPROVEMENT'|'EXCEEDS_EXPECTATIONS'
},
'Acknowledgement': {
'AcknowledgedTime': datetime(2015, 1, 1),
'AcknowledgedBy': 'string',
'AcknowledgerComment': 'string'
},
'EvaluationType': 'STANDARD'|'CALIBRATION',
'CreatedTime': datetime(2015, 1, 1),
'LastModifiedTime': datetime(2015, 1, 1),
'ContactParticipant': {
'ContactParticipantRole': 'AGENT'|'SYSTEM'|'CUSTOM_BOT'|'CUSTOMER'|'LEX_BOT'|'AI_AGENT',
'ContactParticipantId': 'string'
}
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
EvaluationSummaryList (list) --
Provides details about a list of contact evaluations belonging to an instance.
(dict) --
Summary information about a contact evaluation.
EvaluationId (string) --
A unique identifier for the contact evaluation.
EvaluationArn (string) --
The Amazon Resource Name (ARN) for the contact evaluation resource.
EvaluationFormTitle (string) --
A title of the evaluation form.
EvaluationFormId (string) --
The unique identifier for the evaluation form.
CalibrationSessionId (string) --
The calibration session ID that this evaluation belongs to.
Status (string) --
The status of the contact evaluation.
AutoEvaluationEnabled (boolean) --
Whether automated evaluation is enabled.
AutoEvaluationStatus (string) --
The status of the contact auto evaluation.
EvaluatorArn (string) --
The Amazon Resource Name (ARN) of the user who last updated the evaluation.
Score (dict) --
The overall score of the contact evaluation.
Percentage (float) --
The score percentage for an item in a contact evaluation.
NotApplicable (boolean) --
The flag to mark the item as not applicable for scoring.
AutomaticFail (boolean) --
The flag that marks the item as automatic fail. If the item or a child item gets an automatic fail answer, this flag will be true.
AppliedWeight (float) --
Weight applied to this evaluation score.
EarnedPoints (integer) --
The points earned for the item.
MaxBasePoint (integer) --
The maximum base points possible for the item.
PerformanceCategory (string) --
The performance category for the score.
Acknowledgement (dict) --
Information related to evaluation acknowledgement.
AcknowledgedTime (datetime) --
The time when an agent acknowledged the evaluation.
AcknowledgedBy (string) --
The agent who acknowledged the evaluation.
AcknowledgerComment (string) --
A comment from the agent when they confirmed they acknowledged the evaluation.
EvaluationType (string) --
Type of the evaluation.
CreatedTime (datetime) --
The timestamp for when the evaluation was created.
LastModifiedTime (datetime) --
The timestamp for when the evaluation was last updated.
ContactParticipant (dict) --
Information about a contact participant in the evaluation.
ContactParticipantRole (string) --
The role of the contact participant.
ContactParticipantId (string) --
The identifier for the contact participant.
NextToken (string) --
If there are additional results, this is the token for the next set of results.
{'EventSourceName': {'OnAIAgentLogAvailable'}}
Response {'RuleSummaryList': {'EventSourceName': {'OnAIAgentLogAvailable'}}}
List all rules for the specified Connect Customer instance.
See also: AWS API Documentation
Request Syntax
client.list_rules(
InstanceId='string',
PublishStatus='DRAFT'|'PUBLISHED',
EventSourceName='OnPostCallAnalysisAvailable'|'OnRealTimeCallAnalysisAvailable'|'OnRealTimeChatAnalysisAvailable'|'OnPostChatAnalysisAvailable'|'OnAfterCallWorkAvailable'|'OnAfterChatWorkAvailable'|'OnEmailAnalysisAvailable'|'OnZendeskTicketCreate'|'OnZendeskTicketStatusUpdate'|'OnSalesforceCaseCreate'|'OnContactEvaluationSubmit'|'OnMetricDataUpdate'|'OnCaseCreate'|'OnCaseUpdate'|'OnSlaBreach'|'OnAlertUpdate'|'OnSchedulePublish'|'OnScheduleUpdate'|'OnScheduleTimeOffRequestActivity'|'OnAIAgentLogAvailable',
MaxResults=123,
NextToken='string'
)
string
[REQUIRED]
The identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
string
The publish status of the rule.
string
The name of the event source.
integer
The maximum number of results to return per page.
string
The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
dict
Response Syntax
{
'RuleSummaryList': [
{
'Name': 'string',
'RuleId': 'string',
'RuleArn': 'string',
'EventSourceName': 'OnPostCallAnalysisAvailable'|'OnRealTimeCallAnalysisAvailable'|'OnRealTimeChatAnalysisAvailable'|'OnPostChatAnalysisAvailable'|'OnAfterCallWorkAvailable'|'OnAfterChatWorkAvailable'|'OnEmailAnalysisAvailable'|'OnZendeskTicketCreate'|'OnZendeskTicketStatusUpdate'|'OnSalesforceCaseCreate'|'OnContactEvaluationSubmit'|'OnMetricDataUpdate'|'OnCaseCreate'|'OnCaseUpdate'|'OnSlaBreach'|'OnAlertUpdate'|'OnSchedulePublish'|'OnScheduleUpdate'|'OnScheduleTimeOffRequestActivity'|'OnAIAgentLogAvailable',
'PublishStatus': 'DRAFT'|'PUBLISHED',
'RuleCapabilityTiers': [
'GenerativeAI',
],
'ActionSummaries': [
{
'ActionType': 'CREATE_TASK'|'ASSIGN_CONTACT_CATEGORY'|'GENERATE_EVENTBRIDGE_EVENT'|'SEND_NOTIFICATION'|'CREATE_CASE'|'UPDATE_CASE'|'ASSIGN_SLA'|'END_ASSOCIATED_TASKS'|'END_ASSOCIATED_EMAILS'|'SUBMIT_AUTO_EVALUATION'|'EXTRACT_INFORMATION'|'SEND_IN_APP_NOTIFICATION'
},
],
'CreatedTime': datetime(2015, 1, 1),
'LastUpdatedTime': datetime(2015, 1, 1)
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
RuleSummaryList (list) --
Summary information about a rule.
(dict) --
A list of ActionTypes associated with a rule.
Name (string) --
The name of the rule.
RuleId (string) --
A unique identifier for the rule.
RuleArn (string) --
The Amazon Resource Name (ARN) of the rule.
EventSourceName (string) --
The name of the event source.
PublishStatus (string) --
The publish status of the rule.
RuleCapabilityTiers (list) --
The list of capability tiers associated with the rule. Used for categorizing rules by capability (for example, GenerativeAI).
(string) --
ActionSummaries (list) --
A list of ActionTypes associated with a rule.
(dict) --
Information about an action.
ActionType (string) --
The action type.
CreatedTime (datetime) --
The timestamp for when the rule was created.
LastUpdatedTime (datetime) --
The timestamp for when the rule was last updated.
NextToken (string) --
If there are additional results, this is the token for the next set of results.
{'ExecutionRecords': {'RecordType': 'INITIATION | EXECUTION_START | '
'OBSERVATION | COMPLETION | MESSAGE'}}
Lists detailed steps of test case execution that includes all observations along with actions taken and data associated in the specified Amazon Connect instance.
See also: AWS API Documentation
Request Syntax
client.list_test_case_execution_records(
InstanceId='string',
TestCaseId='string',
TestCaseExecutionId='string',
Status='INITIATED'|'PASSED'|'FAILED'|'IN_PROGRESS'|'STOPPED',
NextToken='string',
MaxResults=123
)
string
[REQUIRED]
The identifier of the Amazon Connect instance.
string
[REQUIRED]
The identifier of the test case.
string
[REQUIRED]
The identifier of the test case execution.
string
Filter execution records by status.
string
The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
integer
The maximum number of results to return per page.
dict
Response Syntax
{
'ExecutionRecords': [
{
'ObservationId': 'string',
'Status': 'PASSED'|'FAILED'|'IN_PROGRESS'|'STOPPED',
'Timestamp': datetime(2015, 1, 1),
'Record': 'string',
'RecordType': 'INITIATION'|'EXECUTION_START'|'OBSERVATION'|'COMPLETION'|'MESSAGE'
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
ExecutionRecords (list) --
An array of test case execution record objects.
(dict) --
Contains information about a test case execution record.
ObservationId (string) --
The identifier of the execution record.
Status (string) --
The status of the action execution.
Timestamp (datetime) --
The timestamp when the action was executed.
Record (string) --
The details of the executed record.
RecordType (string) --
The type of the execution record. Valid values:
INITIATION - The test case execution was requested. If the execution couldn't start, the record includes an error message.
EXECUTION_START - The test case execution started.
OBSERVATION - An observation in the test case was evaluated.
MESSAGE - A message was exchanged during the test, such as a turn between the synthetic customer and your flow.
COMPLETION - The test case execution ended. This includes executions that passed, failed, timed out, or were stopped. The record includes the final status.
NextToken (string) --
If there are additional results, this is the token for the next set of results.
{'EvaluationSearchSummaryList': {'Metadata': {'ContactParticipantRole': {'AI_AGENT',
'LEX_BOT'}}}}
Searches contact evaluations in an Connect Customer instance, with optional filtering.
Use cases
Following are common uses cases for this API:
Find contact evaluations by using specific search criteria.
Find contact evaluations that are tagged with a specific set of tags.
Important things to know
A Search operation, unlike a List operation, takes time to index changes to resource (create, update or delete). If you don't see updated information for recently changed contact evaluations, try calling the API again in a few seconds.
Endpoints: See Connect Customer endpoints and quotas.
See also: AWS API Documentation
Request Syntax
client.search_contact_evaluations(
InstanceId='string',
NextToken='string',
MaxResults=123,
SearchCriteria={
'OrConditions': [
{'... recursive ...'},
],
'AndConditions': [
{'... recursive ...'},
],
'StringCondition': {
'FieldName': 'string',
'Value': 'string',
'ComparisonType': 'STARTS_WITH'|'CONTAINS'|'EXACT'
},
'NumberCondition': {
'FieldName': 'string',
'MinValue': 123,
'MaxValue': 123,
'ComparisonType': 'GREATER_OR_EQUAL'|'GREATER'|'LESSER_OR_EQUAL'|'LESSER'|'EQUAL'|'NOT_EQUAL'|'RANGE'
},
'BooleanCondition': {
'FieldName': 'string',
'ComparisonType': 'IS_TRUE'|'IS_FALSE'
},
'DateTimeCondition': {
'FieldName': 'string',
'MinValue': 'string',
'MaxValue': 'string',
'ComparisonType': 'GREATER_THAN'|'LESS_THAN'|'GREATER_THAN_OR_EQUAL_TO'|'LESS_THAN_OR_EQUAL_TO'|'EQUAL_TO'|'RANGE'
},
'DecimalCondition': {
'FieldName': 'string',
'MinValue': 123.0,
'MaxValue': 123.0,
'ComparisonType': 'GREATER_OR_EQUAL'|'GREATER'|'LESSER_OR_EQUAL'|'LESSER'|'EQUAL'|'NOT_EQUAL'|'RANGE'
}
},
SearchFilter={
'AttributeFilter': {
'OrConditions': [
{
'TagConditions': [
{
'TagKey': 'string',
'TagValue': 'string'
},
]
},
],
'AndCondition': {
'TagConditions': [
{
'TagKey': 'string',
'TagValue': 'string'
},
]
},
'TagCondition': {
'TagKey': 'string',
'TagValue': 'string'
}
},
'ContactEvaluationAttributeFilter': {
'OrConditions': [
{
'TagConditions': [
{
'TagKey': 'string',
'TagValue': 'string'
},
],
'AttributeConditions': [
{
'AttributeKey': 'ContactAgentId',
'AttributeValue': {
'StringValue': 'string'
},
'ComparisonType': 'EXACT'
},
]
},
],
'AndCondition': {
'TagConditions': [
{
'TagKey': 'string',
'TagValue': 'string'
},
],
'AttributeConditions': [
{
'AttributeKey': 'ContactAgentId',
'AttributeValue': {
'StringValue': 'string'
},
'ComparisonType': 'EXACT'
},
]
},
'TagCondition': {
'TagKey': 'string',
'TagValue': 'string'
},
'ContactEvaluationAttributeCondition': {
'AttributeKey': 'ContactAgentId',
'AttributeValue': {
'StringValue': 'string'
},
'ComparisonType': 'EXACT'
}
}
}
)
string
[REQUIRED]
The identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
string
The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
integer
The maximum number of results to return per page.
dict
The search criteria to be used to return contact evaluations.
OrConditions (list) --
A list of conditions which would be applied together with an OR condition.
(dict) --
The search criteria to be used to return evaluations.
AndConditions (list) --
A list of conditions which would be applied together with an AND condition.
(dict) --
The search criteria to be used to return evaluations.
StringCondition (dict) --
A leaf node condition which can be used to specify a string condition.
FieldName (string) --
The name of the field in the string condition.
Value (string) --
The value of the string.
ComparisonType (string) --
The type of comparison to be made when evaluating the string condition.
NumberCondition (dict) --
A leaf node condition which can be used to specify a numeric condition.
FieldName (string) --
The name of the field in the number condition.
MinValue (integer) --
The minValue to be used while evaluating the number condition.
MaxValue (integer) --
The maxValue to be used while evaluating the number condition.
ComparisonType (string) --
The type of comparison to be made when evaluating the number condition.
BooleanCondition (dict) --
The boolean condition search criteria for searching evaluations.
FieldName (string) --
A name of the property to be searched.
ComparisonType (string) --
Boolean property comparison type.
DateTimeCondition (dict) --
The datetime condition search criteria for searching evaluations.
FieldName (string) --
A name of the datetime property to be searched
MinValue (string) --
A minimum value of the property.
MaxValue (string) --
A maximum value of the property.
ComparisonType (string) --
Datetime property comparison type.
DecimalCondition (dict) --
The decimal condition search criteria for searching evaluations.
FieldName (string) --
A name of the decimal property to be searched.
MinValue (float) --
A minimum value of the decimal property.
MaxValue (float) --
A maximum value of the decimal property.
ComparisonType (string) --
The type of comparison to be made when evaluating the decimal condition.
dict
Filters to be applied to search results.
AttributeFilter (dict) --
An object that can be used to specify tag conditions.
OrConditions (list) --
A list of conditions which would be applied together with an OR condition.
(dict) --
A list of conditions which would be applied together with an AND condition.
TagConditions (list) --
A leaf node condition which can be used to specify a tag condition.
(dict) --
A leaf node condition which can be used to specify a tag condition, for example, HAVE BPO = 123.
TagKey (string) --
The tag key in the tag condition.
TagValue (string) --
The tag value in the tag condition.
AndCondition (dict) --
A list of conditions which would be applied together with an AND condition.
TagConditions (list) --
A leaf node condition which can be used to specify a tag condition.
(dict) --
A leaf node condition which can be used to specify a tag condition, for example, HAVE BPO = 123.
TagKey (string) --
The tag key in the tag condition.
TagValue (string) --
The tag value in the tag condition.
TagCondition (dict) --
A leaf node condition which can be used to specify a tag condition, for example, HAVE BPO = 123.
TagKey (string) --
The tag key in the tag condition.
TagValue (string) --
The tag value in the tag condition.
ContactEvaluationAttributeFilter (dict) --
An object that can be used to specify tag conditions and attribute conditions for contact evaluations.
OrConditions (list) --
A list of conditions which would be applied together with an OR condition.
(dict) --
A list of conditions which would be applied together with an AND condition.
TagConditions (list) --
A list of tag conditions to apply.
(dict) --
A leaf node condition which can be used to specify a tag condition, for example, HAVE BPO = 123.
TagKey (string) --
The tag key in the tag condition.
TagValue (string) --
The tag value in the tag condition.
AttributeConditions (list) --
A list of attribute conditions to apply.
(dict) --
An attribute condition for contact evaluation filtering.
AttributeKey (string) --
The key of the attribute.
AttributeValue (dict) --
The value of the attribute.
StringValue (string) --
A string value for the attribute.
ComparisonType (string) --
The comparison type for the condition.
AndCondition (dict) --
A list of conditions which would be applied together with an AND condition.
TagConditions (list) --
A list of tag conditions to apply.
(dict) --
A leaf node condition which can be used to specify a tag condition, for example, HAVE BPO = 123.
TagKey (string) --
The tag key in the tag condition.
TagValue (string) --
The tag value in the tag condition.
AttributeConditions (list) --
A list of attribute conditions to apply.
(dict) --
An attribute condition for contact evaluation filtering.
AttributeKey (string) --
The key of the attribute.
AttributeValue (dict) --
The value of the attribute.
StringValue (string) --
A string value for the attribute.
ComparisonType (string) --
The comparison type for the condition.
TagCondition (dict) --
A tag condition to apply.
TagKey (string) --
The tag key in the tag condition.
TagValue (string) --
The tag value in the tag condition.
ContactEvaluationAttributeCondition (dict) --
An attribute condition to apply.
AttributeKey (string) --
The key of the attribute.
AttributeValue (dict) --
The value of the attribute.
StringValue (string) --
A string value for the attribute.
ComparisonType (string) --
The comparison type for the condition.
dict
Response Syntax
{
'EvaluationSearchSummaryList': [
{
'EvaluationId': 'string',
'EvaluationArn': 'string',
'EvaluationFormId': 'string',
'EvaluationFormVersion': 123,
'EvaluationFormTitle': 'string',
'Metadata': {
'ContactId': 'string',
'EvaluatorArn': 'string',
'ContactAgentId': 'string',
'CalibrationSessionId': 'string',
'ScorePercentage': 123.0,
'ScoreAutomaticFail': True|False,
'ScoreNotApplicable': True|False,
'AutoEvaluationEnabled': True|False,
'AutoEvaluationStatus': 'IN_PROGRESS'|'FAILED'|'SUCCEEDED',
'AcknowledgedTime': datetime(2015, 1, 1),
'AcknowledgedBy': 'string',
'AcknowledgerComment': 'string',
'SamplingJobId': 'string',
'ReviewId': 'string',
'ContactParticipantRole': 'AGENT'|'SYSTEM'|'CUSTOM_BOT'|'CUSTOMER'|'LEX_BOT'|'AI_AGENT',
'ContactParticipantId': 'string',
'EarnedPoints': 123,
'MaxBasePoint': 123,
'PerformanceCategory': 'NEEDS_IMPROVEMENT'|'EXCEEDS_EXPECTATIONS'
},
'Status': 'DRAFT'|'SUBMITTED'|'REVIEW_REQUESTED'|'UNDER_REVIEW',
'EvaluationType': 'STANDARD'|'CALIBRATION',
'CreatedTime': datetime(2015, 1, 1),
'LastModifiedTime': datetime(2015, 1, 1),
'Tags': {
'string': 'string'
}
},
],
'NextToken': 'string',
'ApproximateTotalCount': 123
}
Response Structure
(dict) --
EvaluationSearchSummaryList (list) --
Contains information about contact evaluations.
(dict) --
Summary of evaluation obtained from the search operation.
EvaluationId (string) --
A unique identifier for the contact evaluation.
EvaluationArn (string) --
The Amazon Resource Name (ARN) for the contact evaluation resource.
EvaluationFormId (string) --
The unique identifier for the evaluation form.
EvaluationFormVersion (integer) --
A version of the evaluation form.
EvaluationFormTitle (string) --
Title of the evaluation form.
Metadata (dict) --
Summary information about the evaluation search.
ContactId (string) --
The identifier of the contact in this instance of Connect Customer.
EvaluatorArn (string) --
The Amazon Resource Name (ARN) of the person who evaluated the contact.
ContactAgentId (string) --
The unique ID of the agent who handled the contact.
CalibrationSessionId (string) --
The calibration session ID that this evaluation belongs to.
ScorePercentage (float) --
The total evaluation score expressed as a percentage.
ScoreAutomaticFail (boolean) --
The flag that marks the item as automatic fail. If the item or a child item gets an automatic fail answer, this flag is true.
ScoreNotApplicable (boolean) --
The flag to mark the item as not applicable for scoring.
AutoEvaluationEnabled (boolean) --
Whether auto-evaluation is enabled.
AutoEvaluationStatus (string) --
The status of the contact auto evaluation.
AcknowledgedTime (datetime) --
When the evaluation was acknowledged by the agent.
AcknowledgedBy (string) --
The agent who acknowledged the evaluation.
AcknowledgerComment (string) --
The comment from the agent when they acknowledged the evaluation.
SamplingJobId (string) --
Identifier of the sampling job.
ReviewId (string) --
Identifier for the review.
ContactParticipantRole (string) --
Role of a contact participant in the evaluation.
ContactParticipantId (string) --
Identifier for a contact participant in the evaluation.
EarnedPoints (integer) --
The points earned for the evaluation.
MaxBasePoint (integer) --
The maximum base points possible for the evaluation.
PerformanceCategory (string) --
The performance category for the evaluation score.
Status (string) --
The status of the evaluation.
EvaluationType (string) --
Type of the evaluation.
CreatedTime (datetime) --
The date and time when the evaluation was created, in UTC time.
LastModifiedTime (datetime) --
The date and time when the evaluation was modified last time, in UTC time.
Tags (dict) --
The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.
(string) --
(string) --
NextToken (string) --
If there are additional results, this is the token for the next set of results.
ApproximateTotalCount (integer) --
The total number of contact evaluations that matched your search query.
{'EvaluationFormSearchSummaryList': {'AutomatedParticipantRole': 'LEX_BOT | '
'AI_AGENT | '
'SYSTEM'}}
Searches evaluation forms in an Connect Customer instance, with optional filtering.
Use cases
Following are common uses cases for this API:
List all evaluation forms in an instance.
Find all evaluation forms that meet specific criteria, such as Title, Description, Status, and more.
Find all evaluation forms that are tagged with a specific set of tags.
Important things to know
A Search operation, unlike a List operation, takes time to index changes to resource (create, update or delete). If you don't see updated information for recently changed contact evaluations, try calling the API again in a few seconds.
Endpoints: See Connect Customer endpoints and quotas.
See also: AWS API Documentation
Request Syntax
client.search_evaluation_forms(
InstanceId='string',
NextToken='string',
MaxResults=123,
SearchCriteria={
'OrConditions': [
{'... recursive ...'},
],
'AndConditions': [
{'... recursive ...'},
],
'StringCondition': {
'FieldName': 'string',
'Value': 'string',
'ComparisonType': 'STARTS_WITH'|'CONTAINS'|'EXACT'
},
'NumberCondition': {
'FieldName': 'string',
'MinValue': 123,
'MaxValue': 123,
'ComparisonType': 'GREATER_OR_EQUAL'|'GREATER'|'LESSER_OR_EQUAL'|'LESSER'|'EQUAL'|'NOT_EQUAL'|'RANGE'
},
'BooleanCondition': {
'FieldName': 'string',
'ComparisonType': 'IS_TRUE'|'IS_FALSE'
},
'DateTimeCondition': {
'FieldName': 'string',
'MinValue': 'string',
'MaxValue': 'string',
'ComparisonType': 'GREATER_THAN'|'LESS_THAN'|'GREATER_THAN_OR_EQUAL_TO'|'LESS_THAN_OR_EQUAL_TO'|'EQUAL_TO'|'RANGE'
}
},
SearchFilter={
'AttributeFilter': {
'OrConditions': [
{
'TagConditions': [
{
'TagKey': 'string',
'TagValue': 'string'
},
]
},
],
'AndCondition': {
'TagConditions': [
{
'TagKey': 'string',
'TagValue': 'string'
},
]
},
'TagCondition': {
'TagKey': 'string',
'TagValue': 'string'
}
}
}
)
string
[REQUIRED]
The identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
string
The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
integer
The maximum number of results to return per page.
dict
The search criteria to be used to return evaluation forms.
OrConditions (list) --
A list of conditions which would be applied together with an OR condition.
(dict) --
The search criteria to be used to return evaluation forms.
AndConditions (list) --
A list of conditions which would be applied together with an AND condition.
(dict) --
The search criteria to be used to return evaluation forms.
StringCondition (dict) --
A leaf node condition which can be used to specify a string condition.
FieldName (string) --
The name of the field in the string condition.
Value (string) --
The value of the string.
ComparisonType (string) --
The type of comparison to be made when evaluating the string condition.
NumberCondition (dict) --
A leaf node condition which can be used to specify a numeric condition.
FieldName (string) --
The name of the field in the number condition.
MinValue (integer) --
The minValue to be used while evaluating the number condition.
MaxValue (integer) --
The maxValue to be used while evaluating the number condition.
ComparisonType (string) --
The type of comparison to be made when evaluating the number condition.
BooleanCondition (dict) --
Boolean search condition.
FieldName (string) --
A name of the property to be searched.
ComparisonType (string) --
Boolean property comparison type.
DateTimeCondition (dict) --
Datetime search condition.
FieldName (string) --
A name of the datetime property to be searched
MinValue (string) --
A minimum value of the property.
MaxValue (string) --
A maximum value of the property.
ComparisonType (string) --
Datetime property comparison type.
dict
Filters to be applied to search results.
AttributeFilter (dict) --
An object that can be used to specify Tag conditions inside the SearchFilter. This accepts an OR or AND (List of List) input where:
The top level list specifies conditions that need to be applied with OR operator.
The inner list specifies conditions that need to be applied with AND operator.
OrConditions (list) --
A list of conditions which would be applied together with an OR condition.
(dict) --
A list of conditions which would be applied together with an AND condition.
TagConditions (list) --
A leaf node condition which can be used to specify a tag condition.
(dict) --
A leaf node condition which can be used to specify a tag condition, for example, HAVE BPO = 123.
TagKey (string) --
The tag key in the tag condition.
TagValue (string) --
The tag value in the tag condition.
AndCondition (dict) --
A list of conditions which would be applied together with an AND condition.
TagConditions (list) --
A leaf node condition which can be used to specify a tag condition.
(dict) --
A leaf node condition which can be used to specify a tag condition, for example, HAVE BPO = 123.
TagKey (string) --
The tag key in the tag condition.
TagValue (string) --
The tag value in the tag condition.
TagCondition (dict) --
A leaf node condition which can be used to specify a tag condition, for example, HAVE BPO = 123.
TagKey (string) --
The tag key in the tag condition.
TagValue (string) --
The tag value in the tag condition.
dict
Response Syntax
{
'EvaluationFormSearchSummaryList': [
{
'EvaluationFormId': 'string',
'EvaluationFormArn': 'string',
'Title': 'string',
'Status': 'DRAFT'|'ACTIVE',
'Description': 'string',
'CreatedTime': datetime(2015, 1, 1),
'CreatedBy': 'string',
'LastModifiedTime': datetime(2015, 1, 1),
'LastModifiedBy': 'string',
'LastActivatedTime': datetime(2015, 1, 1),
'LastActivatedBy': 'string',
'LatestVersion': 123,
'ActiveVersion': 123,
'AutoEvaluationEnabled': True|False,
'EvaluationFormLanguage': 'de-DE'|'en-US'|'es-ES'|'fr-FR'|'it-IT'|'pt-BR'|'ja-JP'|'ko-KR'|'zh-CN'|'ms-MY'|'af-ZA'|'sq-AL'|'am-ET'|'ar-AE'|'ar-SA'|'hy-AM'|'eu-ES'|'be-BY'|'bs-BA'|'bg-BG'|'ca-ES'|'ckb-IR'|'ckb-IQ'|'zh-TW'|'hr-HR'|'cs-CZ'|'da-DK'|'nl-BE'|'nl-NL'|'en-AU'|'en-IN'|'en-IE'|'en-NZ'|'en-AB'|'en-SG'|'en-ZA'|'en-GB'|'en-WL'|'fa-IR'|'fa-AF'|'fi-FI'|'fr-BE'|'fr-CA'|'ga-IE'|'gl-ES'|'ka-GE'|'de-AT'|'de-CH'|'el-GR'|'gu-IN'|'ht-HT'|'he-IL'|'hi-IN'|'hu-HU'|'is-IS'|'id-ID'|'jv-ID'|'km-KH'|'kn-IN'|'kk-KZ'|'lo-LA'|'lv-LV'|'lt-LT'|'mk-MK'|'ml-IN'|'mr-IN'|'ne-NP'|'no-NO'|'or-IN'|'ps-AF'|'pl-PL'|'pt-PT'|'pa-IN'|'ro-RO'|'ru-RU'|'sr-RS'|'si-LK'|'sk-SK'|'sl-SI'|'es-MX'|'es-US'|'su-ID'|'sw-BI'|'sw-KE'|'sw-RW'|'sw-TZ'|'sw-UG'|'sv-SE'|'tl-PH'|'ta-IN'|'te-IN'|'th-TH'|'tr-TR'|'uk-UA'|'uz-UZ'|'vi-VN'|'zu-ZA'|'my-MM'|'so-SO'|'yue-HK'|'et-EE'|'hmn'|'lg-UG'|'cy-GB'|'xh-ZA'|'bn-BD',
'ContactInteractionType': 'AGENT'|'AUTOMATED'|'CUSTOMER',
'AutomatedParticipantRole': 'LEX_BOT'|'AI_AGENT'|'SYSTEM',
'Tags': {
'string': 'string'
},
'AIVersion': 'string'
},
],
'NextToken': 'string',
'ApproximateTotalCount': 123
}
Response Structure
(dict) --
EvaluationFormSearchSummaryList (list) --
Information about the returned evaluation forms.
(dict) --
Information about the returned evaluation forms.
EvaluationFormId (string) --
The unique identifier for the evaluation form.
EvaluationFormArn (string) --
The Amazon Resource Name (ARN) for the evaluation form resource.
Title (string) --
The title of the evaluation form.
Status (string) --
The status of the evaluation form.
Description (string) --
The description of the evaluation form.
CreatedTime (datetime) --
When the evaluation form was created.
CreatedBy (string) --
Who created the evaluation form.
LastModifiedTime (datetime) --
When the evaluation form was last changed.
LastModifiedBy (string) --
Who changed the evaluation form.
LastActivatedTime (datetime) --
When the evaluation format was last activated.
LastActivatedBy (string) --
The ID of user who last activated evaluation form.
LatestVersion (integer) --
Latest version of the evaluation form.
ActiveVersion (integer) --
Active version of the evaluation form.
AutoEvaluationEnabled (boolean) --
Whether automated evaluation is enabled.
EvaluationFormLanguage (string) --
The language of the evaluation form.
ContactInteractionType (string) --
The contact interaction type for this evaluation form.
AutomatedParticipantRole (string) --
The role of the automated participant that this evaluation form targets. This applies when the ContactInteractionType is AUTOMATED, and identifies which automated participant the evaluation is for, such as an Amazon Lex bot ( LEX_BOT), an AI agent ( AI_AGENT), or the system ( SYSTEM).
Tags (dict) --
The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.
(string) --
(string) --
AIVersion (string) --
The AI version to use for the evaluation form. This specifies which AI model version is used for automated evaluations.
NextToken (string) --
If there are additional results, this is the token for the next set of results.
ApproximateTotalCount (integer) --
The total number of evaluation forms that matched your search query.
{'Rules': {'TriggerEventSource': {'EventSourceName': {'OnAIAgentLogAvailable'}}}}
Searches rules in an Connect Customer instance, with optional filtering.
See also: AWS API Documentation
Request Syntax
client.search_rules(
InstanceId='string',
MaxResults=123,
NextToken='string',
SearchCriteria={
'OrConditions': [
{'... recursive ...'},
],
'AndConditions': [
{'... recursive ...'},
],
'StringCondition': {
'FieldName': 'string',
'Value': 'string',
'ComparisonType': 'STARTS_WITH'|'CONTAINS'|'EXACT'
}
},
SearchFilter={
'AttributeFilter': {
'OrConditions': [
{
'TagConditions': [
{
'TagKey': 'string',
'TagValue': 'string'
},
]
},
],
'AndCondition': {
'TagConditions': [
{
'TagKey': 'string',
'TagValue': 'string'
},
]
},
'TagCondition': {
'TagKey': 'string',
'TagValue': 'string'
}
}
}
)
string
[REQUIRED]
The identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
integer
The maximum number of results to return per page.
string
The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
dict
The search criteria to be used to return rules.
OrConditions (list) --
A list of conditions which would be applied together with an OR condition.
(dict) --
The search criteria to be used to return rules.
AndConditions (list) --
A list of conditions which would be applied together with an AND condition.
(dict) --
The search criteria to be used to return rules.
StringCondition (dict) --
A leaf node condition which can be used to specify a string condition.
FieldName (string) --
The name of the field in the string condition.
Value (string) --
The value of the string.
ComparisonType (string) --
The type of comparison to be made when evaluating the string condition.
dict
Filters to be applied to search results, such as tag-based filters.
AttributeFilter (dict) --
An object that can be used to specify tag conditions inside the SearchFilter.
OrConditions (list) --
A list of conditions which would be applied together with an OR condition.
(dict) --
A list of conditions which would be applied together with an AND condition.
TagConditions (list) --
A list of tag conditions that need to be applied with AND condition.
(dict) --
A leaf node condition which can be used to specify a tag condition, for example, HAVE BPO = 123.
TagKey (string) --
The tag key in the tag condition.
TagValue (string) --
The tag value in the tag condition.
AndCondition (dict) --
A list of conditions which would be applied together with an AND condition.
TagConditions (list) --
A list of tag conditions that need to be applied with AND condition.
(dict) --
A leaf node condition which can be used to specify a tag condition, for example, HAVE BPO = 123.
TagKey (string) --
The tag key in the tag condition.
TagValue (string) --
The tag value in the tag condition.
TagCondition (dict) --
A leaf node condition which can be used to specify a tag condition, for example, HAVE BPO = 123.
TagKey (string) --
The tag key in the tag condition.
TagValue (string) --
The tag value in the tag condition.
dict
Response Syntax
{
'Rules': [
{
'Name': 'string',
'RuleId': 'string',
'RuleArn': 'string',
'TriggerEventSource': {
'EventSourceName': 'OnPostCallAnalysisAvailable'|'OnRealTimeCallAnalysisAvailable'|'OnRealTimeChatAnalysisAvailable'|'OnPostChatAnalysisAvailable'|'OnAfterCallWorkAvailable'|'OnAfterChatWorkAvailable'|'OnEmailAnalysisAvailable'|'OnZendeskTicketCreate'|'OnZendeskTicketStatusUpdate'|'OnSalesforceCaseCreate'|'OnContactEvaluationSubmit'|'OnMetricDataUpdate'|'OnCaseCreate'|'OnCaseUpdate'|'OnSlaBreach'|'OnAlertUpdate'|'OnSchedulePublish'|'OnScheduleUpdate'|'OnScheduleTimeOffRequestActivity'|'OnAIAgentLogAvailable',
'IntegrationAssociationId': 'string'
},
'ActionSummaries': [
{
'ActionType': 'CREATE_TASK'|'ASSIGN_CONTACT_CATEGORY'|'GENERATE_EVENTBRIDGE_EVENT'|'SEND_NOTIFICATION'|'CREATE_CASE'|'UPDATE_CASE'|'ASSIGN_SLA'|'END_ASSOCIATED_TASKS'|'END_ASSOCIATED_EMAILS'|'SUBMIT_AUTO_EVALUATION'|'EXTRACT_INFORMATION'|'SEND_IN_APP_NOTIFICATION'
},
],
'RuleCapabilityTiers': [
'GenerativeAI',
],
'PublishStatus': 'DRAFT'|'PUBLISHED',
'PreEvaluationFilters': {
'AndConditions': [
{
'ResourceType': 'CONTACT'|'CONTACT_EVALUATION',
'FilterType': 'TAG',
'FilterKey': 'string',
'FilterValue': 'string',
'Operator': 'EQUALS'
},
]
},
'CreatedTime': datetime(2015, 1, 1),
'LastUpdatedTime': datetime(2015, 1, 1),
'LastUpdatedBy': 'string',
'Tags': {
'string': 'string'
}
},
],
'ApproximateTotalCount': 123,
'NextToken': 'string'
}
Response Structure
(dict) --
Rules (list) --
Information about the rules.
(dict) --
A summary of information about a rule, returned as part of the response to a SearchRules operation.
Name (string) --
The name of the rule.
RuleId (string) --
A unique identifier for the rule.
RuleArn (string) --
The Amazon Resource Name (ARN) of the rule.
TriggerEventSource (dict) --
The event source to trigger the rule.
EventSourceName (string) --
The name of the event source.
IntegrationAssociationId (string) --
The identifier for the integration association.
ActionSummaries (list) --
A list of ActionTypes associated with a rule.
(dict) --
Information about an action.
ActionType (string) --
The action type.
RuleCapabilityTiers (list) --
The list of capability tiers associated with the rule. Used for categorizing rules by capability (for example, GenerativeAI).
(string) --
PublishStatus (string) --
The publish status of the rule.
PreEvaluationFilters (dict) --
The pre-evaluation filters for the rule, that restrict the rule to be applied to only certain resources based on the resource's attributes, such as tags assigned to a contact. The pre-evaluation filters are applied even before rule conditions are evaluated and are used to enforce tag-based-access-control while applying rules.
AndConditions (list) --
A list of conditions that the rule evaluates together using AND logic. All conditions must be met for the event to be evaluated by the rule.
(dict) --
A single pre-evaluation filter condition. Specifies a resource type, filter type, key, value, and operator to match against a resource attribute.
ResourceType (string) --
The type of resource to filter on. Valid values:
CONTACT - Filter on attributes of the contact, such as tags assigned to the contact.
CONTACT_EVALUATION - Filter on attributes of the contact evaluation, such as tags assigned to the contact evaluation, for rules triggered on the OnContactEvaluationSubmit event source.
FilterType (string) --
The type of filter to apply. Valid values: TAG.
FilterKey (string) --
The key of the attribute to filter on. For tag filters, this is the tag key.
FilterValue (string) --
The value to match against. For tag filters, this is the tag value.
Operator (string) --
The comparison operator for the filter condition. Valid values: EQUALS.
CreatedTime (datetime) --
The timestamp for when the rule was created.
LastUpdatedTime (datetime) --
The timestamp for when the rule was last updated.
LastUpdatedBy (string) --
The Amazon Resource Name (ARN) of the user who last updated the rule.
Tags (dict) --
The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.
(string) --
(string) --
ApproximateTotalCount (integer) --
The total number of rules which matched your search query.
NextToken (string) --
If there are additional results, this is the token for the next set of results.
{'TestCases': {'EntryPoint': {'VoiceCallEntryPointParameters': {'TranscriptionLanguageCodes': ['string']}},
'SyntheticCustomerConfiguration': {'Enabled': 'boolean',
'Persona': {'CommunicationStyle': 'STANDARD '
'| '
'VERBOSE '
'| '
'CONCISE '
'| '
'TERSE',
'Cooperativeness': 'NEUTRAL '
'| '
'COOPERATIVE '
'| '
'UNCOOPERATIVE',
'DomainKnowledge': 'string',
'EmotionalState': 'NEUTRAL '
'| '
'FRUSTRATED '
'| '
'ANGRY '
'| '
'ANXIOUS '
'| '
'HAPPY '
'| '
'CONFUSED',
'Language': 'string',
'Name': 'string',
'Voice': 'string',
'VoiceEngine': 'STANDARD '
'| '
'NEURAL '
'| '
'GENERATIVE'},
'Scenario': {'ExpectedOutcome': 'string',
'Goal': 'string',
'InitialQuery': 'string',
'KnownInputs': [{'InputName': 'string',
'InputValue': 'string'}],
'Name': 'string',
'StopConditions': {'MaxTurns': 'integer'}}}}}
Searches for test cases in the specified Amazon Connect instance, with optional filtering.
See also: AWS API Documentation
Request Syntax
client.search_test_cases(
InstanceId='string',
NextToken='string',
MaxResults=123,
SearchFilter={
'TagFilter': {
'OrConditions': [
[
{
'TagKey': 'string',
'TagValue': 'string'
},
],
],
'AndConditions': [
{
'TagKey': 'string',
'TagValue': 'string'
},
],
'TagCondition': {
'TagKey': 'string',
'TagValue': 'string'
}
}
},
SearchCriteria={
'OrConditions': [
{'... recursive ...'},
],
'AndConditions': [
{'... recursive ...'},
],
'StringCondition': {
'FieldName': 'string',
'Value': 'string',
'ComparisonType': 'STARTS_WITH'|'CONTAINS'|'EXACT'
},
'StatusCondition': 'PUBLISHED'|'SAVED'
}
)
string
[REQUIRED]
The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
string
The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
integer
The maximum number of results to return per page.
dict
Filters to be applied to search results.
TagFilter (dict) --
An object that can be used to specify Tag conditions inside the SearchFilter. This accepts an OR of AND (List of List) input where: Top level list specifies conditions that need to be applied with OR operator. Inner list specifies conditions that need to be applied with AND operator.
OrConditions (list) --
A list of conditions which would be applied together with an OR condition.
(list) --
(dict) --
A leaf node condition which can be used to specify a tag condition, for example, HAVE BPO = 123.
TagKey (string) --
The tag key in the tag condition.
TagValue (string) --
The tag value in the tag condition.
AndConditions (list) --
A list of conditions which would be applied together with an AND condition.
(dict) --
A leaf node condition which can be used to specify a tag condition, for example, HAVE BPO = 123.
TagKey (string) --
The tag key in the tag condition.
TagValue (string) --
The tag value in the tag condition.
TagCondition (dict) --
A leaf node condition which can be used to specify a tag condition.
TagKey (string) --
The tag key in the tag condition.
TagValue (string) --
The tag value in the tag condition.
dict
The search criteria to be used to return test cases.
OrConditions (list) --
A list of conditions which would be applied together with an OR condition.
(dict) --
The search criteria to be used to return test cases.
AndConditions (list) --
A list of conditions which would be applied together with an AND condition.
(dict) --
The search criteria to be used to return test cases.
StringCondition (dict) --
A leaf node condition which can be used to specify a string condition.
FieldName (string) --
The name of the field in the string condition.
Value (string) --
The value of the string.
ComparisonType (string) --
The type of comparison to be made when evaluating the string condition.
StatusCondition (string) --
The status of the test case.
dict
Response Syntax
{
'TestCases': [
{
'Arn': 'string',
'Id': 'string',
'Name': 'string',
'Content': 'string',
'EntryPoint': {
'Type': 'VOICE_CALL'|'CHAT',
'VoiceCallEntryPointParameters': {
'SourcePhoneNumber': 'string',
'DestinationPhoneNumber': 'string',
'FlowId': 'string',
'TranscriptionLanguageCodes': [
'string',
]
},
'ChatEntryPointParameters': {
'FlowId': 'string'
}
},
'InitializationData': 'string',
'SyntheticCustomerConfiguration': {
'Enabled': True|False,
'Persona': {
'Name': 'string',
'CommunicationStyle': 'STANDARD'|'VERBOSE'|'CONCISE'|'TERSE',
'Language': 'string',
'Voice': 'string',
'VoiceEngine': 'STANDARD'|'NEURAL'|'GENERATIVE',
'DomainKnowledge': 'string',
'EmotionalState': 'NEUTRAL'|'FRUSTRATED'|'ANGRY'|'ANXIOUS'|'HAPPY'|'CONFUSED',
'Cooperativeness': 'NEUTRAL'|'COOPERATIVE'|'UNCOOPERATIVE'
},
'Scenario': {
'Name': 'string',
'Goal': 'string',
'ExpectedOutcome': 'string',
'InitialQuery': 'string',
'StopConditions': {
'MaxTurns': 123
},
'KnownInputs': [
{
'InputName': 'string',
'InputValue': 'string'
},
]
}
},
'Description': 'string',
'Status': 'PUBLISHED'|'SAVED',
'LastModifiedTime': datetime(2015, 1, 1),
'LastModifiedRegion': 'string',
'Tags': {
'string': 'string'
},
'TestCaseSha256': 'string'
},
],
'NextToken': 'string',
'ApproximateTotalCount': 123
}
Response Structure
(dict) --
TestCases (list) --
Information about the test cases.
(dict) --
Contains information about a test case.
Arn (string) --
The Amazon Resource Name (ARN) of the test case.
Id (string) --
The identifier of the test case.
Name (string) --
The name of the test case.
Content (string) --
The JSON string that represents the content of the test.
EntryPoint (dict) --
Defines the starting point for the test, including channel type and parameters.
Type (string) --
The type of entry point.
VoiceCallEntryPointParameters (dict) --
Parameters for voice call entry point.
SourcePhoneNumber (string) --
The source phone number for the test.
DestinationPhoneNumber (string) --
The destination phone number for the test.
FlowId (string) --
The flow identifier for the test.
TranscriptionLanguageCodes (list) --
The language codes that Amazon Connect uses to transcribe the voice call during the test, for example en-US. You can specify up to 5 unique codes. If you specify more than one code, Amazon Connect identifies the language automatically from those codes.
(string) --
ChatEntryPointParameters (dict) --
Parameters for chat entry point.
FlowId (string) --
The flow identifier for the test.
InitializationData (string) --
Defines the test attributes for precise data representation. The value must be a valid JSON string.
SyntheticCustomerConfiguration (dict) --
The configuration of the AI-driven synthetic customer that you use to simulate the customer side of the test.
Enabled (boolean) --
Specifies whether the test case runs with the AI-driven synthetic customer. If you set this to true, the synthetic customer interacts with your flow, and you must include a Persona with a Name, and a Scenario with a Name, Goal, and ExpectedOutcome, before you publish the test case. If you set this to false, the test case runs from its observations. Your Persona and Scenario remain part of the test case, so you can turn the synthetic customer back on later, but they aren't used in the test.
Persona (dict) --
Who the synthetic customer is.
Name (string) --
The name of the persona.
CommunicationStyle (string) --
How the synthetic customer communicates.
Language (string) --
The language that the synthetic customer uses, for example en-US.
Voice (string) --
The Amazon Polly voice for the synthetic customer, for example Joanna.
VoiceEngine (string) --
The Amazon Polly engine that synthesizes the speech of the synthetic customer. Choose an engine that the selected Voice supports. If you don't specify an engine, Amazon Polly uses the standard engine.
DomainKnowledge (string) --
The background knowledge that the synthetic customer brings to the conversation.
EmotionalState (string) --
How the synthetic customer feels during the conversation.
Cooperativeness (string) --
How cooperative the synthetic customer is.
Scenario (dict) --
The situation and goal of the synthetic customer.
Name (string) --
The name of the scenario.
Goal (string) --
What the synthetic customer is trying to accomplish.
ExpectedOutcome (string) --
The result that counts as a successful test.
InitialQuery (string) --
The opening message of the synthetic customer.
StopConditions (dict) --
The limits that end the simulation if the expected outcome isn't reached.
MaxTurns (integer) --
The maximum number of exchanges between the synthetic customer and your flow. If you don't specify a value, the default is 50.
KnownInputs (list) --
The information that the synthetic customer knows and provides when asked, such as a reservation number. You can specify up to 20 inputs.
(dict) --
Contains a named value that the synthetic customer provides when asked.
InputName (string) --
The name of the input, for example ReservationId.
InputValue (string) --
The value of the input.
Description (string) --
The description of the test case.
Status (string) --
Indicates the test status as either SAVED or PUBLISHED.
LastModifiedTime (datetime) --
The time at which the test case was last modified.
LastModifiedRegion (string) --
The region in which the test case was last modified.
Tags (dict) --
The tags used to organize, track, or control access for this resource.
(string) --
(string) --
TestCaseSha256 (string) --
The SHA256 hash of the test case content.
NextToken (string) --
If there are additional results, this is the token for the next set of results.
ApproximateTotalCount (integer) --
The total number of test cases which matched your search query.
{'Workspaces': {'Visibility': {'PUBLIC'}}}
Searches workspaces based on name, description, visibility, or tags.
See also: AWS API Documentation
Request Syntax
client.search_workspaces(
InstanceId='string',
NextToken='string',
MaxResults=123,
SearchFilter={
'AttributeFilter': {
'OrConditions': [
{
'TagConditions': [
{
'TagKey': 'string',
'TagValue': 'string'
},
]
},
],
'AndCondition': {
'TagConditions': [
{
'TagKey': 'string',
'TagValue': 'string'
},
]
},
'TagCondition': {
'TagKey': 'string',
'TagValue': 'string'
}
}
},
SearchCriteria={
'OrConditions': [
{'... recursive ...'},
],
'AndConditions': [
{'... recursive ...'},
],
'StringCondition': {
'FieldName': 'string',
'Value': 'string',
'ComparisonType': 'STARTS_WITH'|'CONTAINS'|'EXACT'
}
}
)
string
[REQUIRED]
The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
string
The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
integer
The maximum number of results to return per page.
dict
Filters to apply to the search, such as tag-based filters.
AttributeFilter (dict) --
An object that can be used to specify Tag conditions inside the SearchFilter. This accepts an OR or AND (List of List) input where:
The top level list specifies conditions that need to be applied with OR operator.
The inner list specifies conditions that need to be applied with AND operator.
OrConditions (list) --
A list of conditions which would be applied together with an OR condition.
(dict) --
A list of conditions which would be applied together with an AND condition.
TagConditions (list) --
A leaf node condition which can be used to specify a tag condition.
(dict) --
A leaf node condition which can be used to specify a tag condition, for example, HAVE BPO = 123.
TagKey (string) --
The tag key in the tag condition.
TagValue (string) --
The tag value in the tag condition.
AndCondition (dict) --
A list of conditions which would be applied together with an AND condition.
TagConditions (list) --
A leaf node condition which can be used to specify a tag condition.
(dict) --
A leaf node condition which can be used to specify a tag condition, for example, HAVE BPO = 123.
TagKey (string) --
The tag key in the tag condition.
TagValue (string) --
The tag value in the tag condition.
TagCondition (dict) --
A leaf node condition which can be used to specify a tag condition, for example, HAVE BPO = 123.
TagKey (string) --
The tag key in the tag condition.
TagValue (string) --
The tag value in the tag condition.
dict
The search criteria, including field names and comparison types.
OrConditions (list) --
A list of conditions to be met, where at least one condition must be satisfied.
(dict) --
Defines the search criteria for filtering workspaces.
AndConditions (list) --
A list of conditions that must all be satisfied.
(dict) --
Defines the search criteria for filtering workspaces.
StringCondition (dict) --
A leaf node condition which can be used to specify a string condition.
FieldName (string) --
The name of the field in the string condition.
Value (string) --
The value of the string.
ComparisonType (string) --
The type of comparison to be made when evaluating the string condition.
dict
Response Syntax
{
'NextToken': 'string',
'Workspaces': [
{
'Id': 'string',
'Name': 'string',
'Visibility': 'ALL'|'ASSIGNED'|'PUBLIC'|'NONE',
'Description': 'string',
'Title': 'string',
'Arn': 'string',
'CreatedAt': datetime(2015, 1, 1),
'Tags': {
'string': 'string'
}
},
],
'ApproximateTotalCount': 123
}
Response Structure
(dict) --
NextToken (string) --
If there are additional results, this is the token for the next set of results.
Workspaces (list) --
A list of workspaces that match the search criteria.
(dict) --
Contains summary information about a workspace returned from a search operation.
Id (string) --
The unique identifier of the workspace.
Name (string) --
The name of the workspace.
Visibility (string) --
The visibility setting of the workspace.
Description (string) --
The description of the workspace.
Title (string) --
The title displayed for the workspace.
Arn (string) --
The Amazon Resource Name (ARN) of the workspace.
CreatedAt (datetime) --
The timestamp when the workspace was created.
Tags (dict) --
The tags associated with the workspace.
(string) --
(string) --
ApproximateTotalCount (integer) --
The approximate total number of workspaces that match the search criteria.
{'ContactParticipant': {'ContactParticipantId': 'string',
'ContactParticipantRole': 'AGENT | SYSTEM | CUSTOM_BOT '
'| CUSTOMER | LEX_BOT | '
'AI_AGENT'}}
Starts an empty evaluation in the specified Connect Customer instance, using the given evaluation form for the particular contact. The evaluation form version used for the contact evaluation corresponds to the currently activated version. If no version is activated for the evaluation form, the contact evaluation cannot be started.
See also: AWS API Documentation
Request Syntax
client.start_contact_evaluation(
InstanceId='string',
ContactId='string',
EvaluationFormId='string',
ContactParticipant={
'ContactParticipantRole': 'AGENT'|'SYSTEM'|'CUSTOM_BOT'|'CUSTOMER'|'LEX_BOT'|'AI_AGENT',
'ContactParticipantId': 'string'
},
AutoEvaluationConfiguration={
'Enabled': True|False
},
ClientToken='string',
Tags={
'string': 'string'
}
)
string
[REQUIRED]
The identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
string
[REQUIRED]
The identifier of the contact in this instance of Connect Customer.
string
[REQUIRED]
The unique identifier for the evaluation form.
dict
The target contact participant in this evaluation. Specify this when you need to evaluate a particular automated participant, such as an AI agent or an Amazon Lex bot.
ContactParticipantRole (string) --
The role of the contact participant.
ContactParticipantId (string) --
The identifier for the contact participant.
dict
Whether automated evaluations are enabled.
Enabled (boolean) -- [REQUIRED]
Whether automated evaluations are enabled.
string
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.
This field is autopopulated if not provided.
dict
The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.
(string) --
(string) --
dict
Response Syntax
{
'EvaluationId': 'string',
'EvaluationArn': 'string'
}
Response Structure
(dict) --
EvaluationId (string) --
A unique identifier for the contact evaluation.
EvaluationArn (string) --
The Amazon Resource Name (ARN) for the contact evaluation resource.
{'Items': {'Question': {'Enablement': {'Condition': {'Operands': {'Expression': {'Source': {'AiMetricsField': {'AI_AGENT_GOAL_SUCCESS',
'AI_AGENT_INVOCATION_SUCCESS'}}}}}},
'QuestionTypeProperties': {'Numeric': {'Automation': {'PropertyValue': {'Label': {'AI_AGENT_CONTEXT_FIDELITY_SCORE',
'AI_AGENT_CONVERSATION_TURNS',
'LEX_BOT_INTENTS_SUCCESS_RATE'}}}},
'SingleSelect': {'Automation': {'Options': {'AutomationRule': {'Condition': {'Operands': {'Expression': {'Source': {'AiMetricsField': {'AI_AGENT_GOAL_SUCCESS',
'AI_AGENT_INVOCATION_SUCCESS'}}}}}}}}}}},
'Section': {'Enablement': {'Condition': {'Operands': {'Expression': {'Source': {'AiMetricsField': {'AI_AGENT_GOAL_SUCCESS',
'AI_AGENT_INVOCATION_SUCCESS'}}}}}}}},
'TargetConfiguration': {'AutomatedParticipantRole': 'LEX_BOT | AI_AGENT | '
'SYSTEM'}}
Updates details about a specific evaluation form version in the specified Connect Customer instance. Question and section identifiers cannot be duplicated within the same evaluation form.
This operation does not support partial updates. Instead it does a full update of evaluation form content.
See also: AWS API Documentation
Request Syntax
client.update_evaluation_form(
InstanceId='string',
EvaluationFormId='string',
EvaluationFormVersion=123,
CreateNewVersion=True|False,
Title='string',
Description='string',
Items=[
{
'Section': {
'Title': 'string',
'RefId': 'string',
'Instructions': 'string',
'Items': {'... recursive ...'},
'Weight': 123.0,
'IsExcludedFromScoring': True|False,
'ScoreThresholds': [
{
'PerformanceCategory': 'NEEDS_IMPROVEMENT'|'EXCEEDS_EXPECTATIONS',
'MinScorePercentage': 123.0,
'MaxScorePercentage': 123.0
},
],
'Enablement': {
'Condition': {
'Operands': [
{
'Expression': {
'Source': {
'Type': 'QUESTION_REF_ID'|'CONTACT'|'EVALUATION_METADATA'|'FORM_METADATA'|'AI_METRICS',
'RefId': 'string',
'ContactField': 'CATEGORIES'|'AGENT_ARN'|'QUEUE_ARN'|'ROUTING_PROFILE_ARN'|'CHANNEL'|'INITIATION_METHOD'|'IS_QUEUED'|'OVERALL_CUSTOMER_SENTIMENT_SCORE'|'OVERALL_AGENT_SENTIMENT_SCORE'|'CUSTOMER_SENTIMENT_SCORE_WITHOUT_AGENT'|'CUSTOMER_SENTIMENT_SCORE_WITH_AGENT'|'NON_TALK_TIME'|'NON_TALK_TIME_PERCENTAGE'|'NUMBER_OF_INTERRUPTIONS'|'CONTACT_DURATION'|'AGENT_INTERACTION_DURATION'|'CUSTOMER_HOLD_TIME'|'LONGEST_HOLD_DURATION'|'NUMBER_OF_HOLDS'|'AGENT_INTERACTION_AND_HOLD_DURATION'|'RECORDING_MEDIA_STREAM_TYPES',
'ContactAttributeKey': 'string',
'SegmentAttributeKey': 'string',
'EvaluationMetadataField': 'EVALUATION_TYPE',
'AiMetricsField': 'AI_SESSION_IS_HANDED_OFF'|'AI_SESSION_SELF_SERVICE_DURATION'|'AI_SESSION_GOAL_SUCCESS_RATE'|'AI_SESSION_COMPLETENESS_SCORE'|'AI_SESSION_FAITHFULNESS_SCORE'|'AI_AGENT_MAX_PROMPT_LATENCY'|'AI_AGENT_INVOCATION_SUCCESS'|'AI_AGENT_GOAL_SUCCESS'|'AI_TOOL_MAX_LATENCY'|'AI_TOOL_SELECTION_ACCURACY'|'AI_TOOL_PARAMETER_ACCURACY'|'AI_TOOL_UTILIZATION_ACCURACY'
},
'Values': [
{
'Type': 'OPTION_REF_ID'|'STRING_VALUE'|'NUMERIC_VALUE'|'BOOLEAN_VALUE'|'DATETIME_VALUE',
'RefId': 'string',
'StringValue': 'string',
'NumericValue': 123.0,
'BooleanValue': True|False,
'DateTimeValue': datetime(2015, 1, 1)
},
],
'Comparator': 'IN'|'NOT_IN'|'ALL_IN'|'EXACT'|'GREATER_THAN'|'LESS_THAN'|'GREATER_THAN_OR_EQUAL_TO'|'LESS_THAN_OR_EQUAL_TO'|'EQUAL_TO'|'NOT_EQUAL_TO'
},
'Condition': {'... recursive ...'}
},
],
'Operator': 'OR'|'AND'
},
'Action': 'DISABLE'|'ENABLE',
'DefaultAction': 'DISABLE'|'ENABLE'
}
},
'Question': {
'Title': 'string',
'Instructions': 'string',
'RefId': 'string',
'NotApplicableEnabled': True|False,
'QuestionType': 'TEXT'|'SINGLESELECT'|'NUMERIC'|'MULTISELECT'|'DATETIME',
'QuestionTypeProperties': {
'Numeric': {
'MinValue': 123,
'MaxValue': 123,
'Options': [
{
'MinValue': 123,
'MaxValue': 123,
'Score': 123,
'AutomaticFail': True|False,
'AutomaticFailConfiguration': {
'TargetSection': 'string'
},
'PointsConfiguration': {
'PointValue': 123,
'IsBonus': True|False
}
},
],
'Automation': {
'PropertyValue': {
'Label': 'OVERALL_CUSTOMER_SENTIMENT_SCORE'|'OVERALL_AGENT_SENTIMENT_SCORE'|'CUSTOMER_SENTIMENT_SCORE_WITHOUT_AGENT'|'CUSTOMER_SENTIMENT_SCORE_WITH_AGENT'|'NON_TALK_TIME'|'NON_TALK_TIME_PERCENTAGE'|'NUMBER_OF_INTERRUPTIONS'|'CONTACT_DURATION'|'AGENT_INTERACTION_DURATION'|'CUSTOMER_HOLD_TIME'|'LONGEST_HOLD_DURATION'|'NUMBER_OF_HOLDS'|'AGENT_INTERACTION_AND_HOLD_DURATION'|'AI_SESSION_SELF_SERVICE_DURATION'|'AI_SESSION_GOAL_SUCCESS_RATE'|'AI_SESSION_COMPLETENESS_SCORE'|'AI_SESSION_FAITHFULNESS_SCORE'|'AI_AGENT_MAX_PROMPT_LATENCY'|'AI_TOOL_MAX_LATENCY'|'AI_TOOL_SELECTION_ACCURACY'|'AI_TOOL_PARAMETER_ACCURACY'|'AI_TOOL_UTILIZATION_ACCURACY'|'AI_AGENT_CONVERSATION_TURNS'|'AI_AGENT_CONTEXT_FIDELITY_SCORE'|'LEX_BOT_INTENTS_SUCCESS_RATE'
},
'AnswerSource': {
'SourceType': 'CONTACT_LENS_DATA'|'GEN_AI'|'CONDITION'
}
}
},
'SingleSelect': {
'Options': [
{
'RefId': 'string',
'Text': 'string',
'Score': 123,
'AutomaticFail': True|False,
'AutomaticFailConfiguration': {
'TargetSection': 'string'
},
'PointsConfiguration': {
'PointValue': 123,
'IsBonus': True|False
}
},
],
'DisplayAs': 'DROPDOWN'|'RADIO',
'Automation': {
'Options': [
{
'RuleCategory': {
'Category': 'string',
'Condition': 'PRESENT'|'NOT_PRESENT',
'OptionRefId': 'string'
},
'AutomationRule': {
'Condition': {
'Operands': [
{
'Expression': {
'Source': {
'Type': 'QUESTION_REF_ID'|'CONTACT'|'EVALUATION_METADATA'|'FORM_METADATA'|'AI_METRICS',
'RefId': 'string',
'ContactField': 'CATEGORIES'|'AGENT_ARN'|'QUEUE_ARN'|'ROUTING_PROFILE_ARN'|'CHANNEL'|'INITIATION_METHOD'|'IS_QUEUED'|'OVERALL_CUSTOMER_SENTIMENT_SCORE'|'OVERALL_AGENT_SENTIMENT_SCORE'|'CUSTOMER_SENTIMENT_SCORE_WITHOUT_AGENT'|'CUSTOMER_SENTIMENT_SCORE_WITH_AGENT'|'NON_TALK_TIME'|'NON_TALK_TIME_PERCENTAGE'|'NUMBER_OF_INTERRUPTIONS'|'CONTACT_DURATION'|'AGENT_INTERACTION_DURATION'|'CUSTOMER_HOLD_TIME'|'LONGEST_HOLD_DURATION'|'NUMBER_OF_HOLDS'|'AGENT_INTERACTION_AND_HOLD_DURATION'|'RECORDING_MEDIA_STREAM_TYPES',
'ContactAttributeKey': 'string',
'SegmentAttributeKey': 'string',
'EvaluationMetadataField': 'EVALUATION_TYPE',
'AiMetricsField': 'AI_SESSION_IS_HANDED_OFF'|'AI_SESSION_SELF_SERVICE_DURATION'|'AI_SESSION_GOAL_SUCCESS_RATE'|'AI_SESSION_COMPLETENESS_SCORE'|'AI_SESSION_FAITHFULNESS_SCORE'|'AI_AGENT_MAX_PROMPT_LATENCY'|'AI_AGENT_INVOCATION_SUCCESS'|'AI_AGENT_GOAL_SUCCESS'|'AI_TOOL_MAX_LATENCY'|'AI_TOOL_SELECTION_ACCURACY'|'AI_TOOL_PARAMETER_ACCURACY'|'AI_TOOL_UTILIZATION_ACCURACY'
},
'Values': [
{
'Type': 'OPTION_REF_ID'|'STRING_VALUE'|'NUMERIC_VALUE'|'BOOLEAN_VALUE'|'DATETIME_VALUE',
'RefId': 'string',
'StringValue': 'string',
'NumericValue': 123.0,
'BooleanValue': True|False,
'DateTimeValue': datetime(2015, 1, 1)
},
],
'Comparator': 'IN'|'NOT_IN'|'ALL_IN'|'EXACT'|'GREATER_THAN'|'LESS_THAN'|'GREATER_THAN_OR_EQUAL_TO'|'LESS_THAN_OR_EQUAL_TO'|'EQUAL_TO'|'NOT_EQUAL_TO'
},
'Condition': {'... recursive ...'}
},
],
'Operator': 'OR'|'AND'
},
'OptionRefId': 'string'
}
},
],
'DefaultOptionRefId': 'string',
'AnswerSource': {
'SourceType': 'CONTACT_LENS_DATA'|'GEN_AI'|'CONDITION'
}
}
},
'Text': {
'Automation': {
'AnswerSource': {
'SourceType': 'CONTACT_LENS_DATA'|'GEN_AI'|'CONDITION'
}
}
},
'MultiSelect': {
'Options': [
{
'RefId': 'string',
'Text': 'string',
'Score': 123,
'AutomaticFail': True|False,
'AutomaticFailConfiguration': {
'TargetSection': 'string'
},
'PointsConfiguration': {
'PointValue': 123,
'IsBonus': True|False
}
},
],
'DisplayAs': 'DROPDOWN'|'CHECKBOX',
'Automation': {
'Options': [
{
'RuleCategory': {
'Category': 'string',
'Condition': 'PRESENT'|'NOT_PRESENT',
'OptionRefIds': [
'string',
]
}
},
],
'DefaultOptionRefIds': [
'string',
],
'AnswerSource': {
'SourceType': 'CONTACT_LENS_DATA'|'GEN_AI'|'CONDITION'
}
}
}
},
'Enablement': {
'Condition': {
'Operands': [
{
'Expression': {
'Source': {
'Type': 'QUESTION_REF_ID'|'CONTACT'|'EVALUATION_METADATA'|'FORM_METADATA'|'AI_METRICS',
'RefId': 'string',
'ContactField': 'CATEGORIES'|'AGENT_ARN'|'QUEUE_ARN'|'ROUTING_PROFILE_ARN'|'CHANNEL'|'INITIATION_METHOD'|'IS_QUEUED'|'OVERALL_CUSTOMER_SENTIMENT_SCORE'|'OVERALL_AGENT_SENTIMENT_SCORE'|'CUSTOMER_SENTIMENT_SCORE_WITHOUT_AGENT'|'CUSTOMER_SENTIMENT_SCORE_WITH_AGENT'|'NON_TALK_TIME'|'NON_TALK_TIME_PERCENTAGE'|'NUMBER_OF_INTERRUPTIONS'|'CONTACT_DURATION'|'AGENT_INTERACTION_DURATION'|'CUSTOMER_HOLD_TIME'|'LONGEST_HOLD_DURATION'|'NUMBER_OF_HOLDS'|'AGENT_INTERACTION_AND_HOLD_DURATION'|'RECORDING_MEDIA_STREAM_TYPES',
'ContactAttributeKey': 'string',
'SegmentAttributeKey': 'string',
'EvaluationMetadataField': 'EVALUATION_TYPE',
'AiMetricsField': 'AI_SESSION_IS_HANDED_OFF'|'AI_SESSION_SELF_SERVICE_DURATION'|'AI_SESSION_GOAL_SUCCESS_RATE'|'AI_SESSION_COMPLETENESS_SCORE'|'AI_SESSION_FAITHFULNESS_SCORE'|'AI_AGENT_MAX_PROMPT_LATENCY'|'AI_AGENT_INVOCATION_SUCCESS'|'AI_AGENT_GOAL_SUCCESS'|'AI_TOOL_MAX_LATENCY'|'AI_TOOL_SELECTION_ACCURACY'|'AI_TOOL_PARAMETER_ACCURACY'|'AI_TOOL_UTILIZATION_ACCURACY'
},
'Values': [
{
'Type': 'OPTION_REF_ID'|'STRING_VALUE'|'NUMERIC_VALUE'|'BOOLEAN_VALUE'|'DATETIME_VALUE',
'RefId': 'string',
'StringValue': 'string',
'NumericValue': 123.0,
'BooleanValue': True|False,
'DateTimeValue': datetime(2015, 1, 1)
},
],
'Comparator': 'IN'|'NOT_IN'|'ALL_IN'|'EXACT'|'GREATER_THAN'|'LESS_THAN'|'GREATER_THAN_OR_EQUAL_TO'|'LESS_THAN_OR_EQUAL_TO'|'EQUAL_TO'|'NOT_EQUAL_TO'
},
'Condition': {'... recursive ...'}
},
],
'Operator': 'OR'|'AND'
},
'Action': 'DISABLE'|'ENABLE',
'DefaultAction': 'DISABLE'|'ENABLE'
},
'Weight': 123.0,
'ScoringConfiguration': {
'PointsConfiguration': {
'MaxPointValue': 123,
'MinPointValue': 123,
'IsBonus': True|False
},
'IsExcludedFromScoring': True|False,
'ScoreThresholds': [
{
'PerformanceCategory': 'NEEDS_IMPROVEMENT'|'EXCEEDS_EXPECTATIONS',
'MinScorePercentage': 123.0,
'MaxScorePercentage': 123.0
},
]
},
'MetricConfiguration': {
'MetricType': 'BUSINESS_OUTCOME',
'MetricName': 'string'
}
}
},
],
ScoringStrategy={
'Mode': 'QUESTION_ONLY'|'SECTION_ONLY'|'POINTS_BASED',
'Status': 'ENABLED'|'DISABLED',
'ScoreThresholds': [
{
'PerformanceCategory': 'NEEDS_IMPROVEMENT'|'EXCEEDS_EXPECTATIONS',
'MinScorePercentage': 123.0,
'MaxScorePercentage': 123.0
},
]
},
AutoEvaluationConfiguration={
'Enabled': True|False
},
ReviewConfiguration={
'ReviewNotificationRecipients': [
{
'Type': 'USER_ID',
'Value': {
'UserId': 'string'
}
},
],
'EligibilityDays': 123
},
AsDraft=True|False,
ClientToken='string',
TargetConfiguration={
'ContactInteractionType': 'AGENT'|'AUTOMATED'|'CUSTOMER',
'AutomatedParticipantRole': 'LEX_BOT'|'AI_AGENT'|'SYSTEM'
},
LanguageConfiguration={
'FormLanguage': 'de-DE'|'en-US'|'es-ES'|'fr-FR'|'it-IT'|'pt-BR'|'ja-JP'|'ko-KR'|'zh-CN'|'ms-MY'|'af-ZA'|'sq-AL'|'am-ET'|'ar-AE'|'ar-SA'|'hy-AM'|'eu-ES'|'be-BY'|'bs-BA'|'bg-BG'|'ca-ES'|'ckb-IR'|'ckb-IQ'|'zh-TW'|'hr-HR'|'cs-CZ'|'da-DK'|'nl-BE'|'nl-NL'|'en-AU'|'en-IN'|'en-IE'|'en-NZ'|'en-AB'|'en-SG'|'en-ZA'|'en-GB'|'en-WL'|'fa-IR'|'fa-AF'|'fi-FI'|'fr-BE'|'fr-CA'|'ga-IE'|'gl-ES'|'ka-GE'|'de-AT'|'de-CH'|'el-GR'|'gu-IN'|'ht-HT'|'he-IL'|'hi-IN'|'hu-HU'|'is-IS'|'id-ID'|'jv-ID'|'km-KH'|'kn-IN'|'kk-KZ'|'lo-LA'|'lv-LV'|'lt-LT'|'mk-MK'|'ml-IN'|'mr-IN'|'ne-NP'|'no-NO'|'or-IN'|'ps-AF'|'pl-PL'|'pt-PT'|'pa-IN'|'ro-RO'|'ru-RU'|'sr-RS'|'si-LK'|'sk-SK'|'sl-SI'|'es-MX'|'es-US'|'su-ID'|'sw-BI'|'sw-KE'|'sw-RW'|'sw-TZ'|'sw-UG'|'sv-SE'|'tl-PH'|'ta-IN'|'te-IN'|'th-TH'|'tr-TR'|'uk-UA'|'uz-UZ'|'vi-VN'|'zu-ZA'|'my-MM'|'so-SO'|'yue-HK'|'et-EE'|'hmn'|'lg-UG'|'cy-GB'|'xh-ZA'|'bn-BD'
},
AIVersion='string'
)
string
[REQUIRED]
The identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
string
[REQUIRED]
The unique identifier for the evaluation form.
integer
[REQUIRED]
A version of the evaluation form to update.
boolean
A flag indicating whether the operation must create a new version.
string
[REQUIRED]
A title of the evaluation form.
string
The description of the evaluation form.
list
[REQUIRED]
Items that are part of the evaluation form. The total number of sections and questions must not exceed 100 each. Questions must be contained in a section.
(dict) --
Information about an item from an evaluation form. The item must be either a section or a question.
Section (dict) --
The information of the section.
Title (string) -- [REQUIRED]
The title of the section.
RefId (string) -- [REQUIRED]
The identifier of the section. An identifier must be unique within the evaluation form.
Instructions (string) --
The instructions of the section.
Items (list) --
The items of the section.
Weight (float) --
The scoring weight of the section.
IsExcludedFromScoring (boolean) --
The flag to exclude the section from scoring.
ScoreThresholds (list) --
The score thresholds for performance categories.
(dict) --
Information about a score threshold for a performance category.
PerformanceCategory (string) -- [REQUIRED]
The performance category name.
MinScorePercentage (float) --
The minimum score percentage for the performance category.
MaxScorePercentage (float) --
The maximum score percentage for the performance category.
Enablement (dict) --
The conditional enablement configuration of the section. Sections use the same enablement model as questions.
Condition (dict) -- [REQUIRED]
A condition for item enablement configuration.
Operands (list) -- [REQUIRED]
Operands of the enablement condition.
(dict) --
An operand of the enablement condition.
Expression (dict) --
An expression of the enablement condition.
Source (dict) -- [REQUIRED]
A source item of enablement expression.
Type (string) -- [REQUIRED]
A type of source item. Valid values:
QUESTION_REF_ID - The answer to another question in the evaluation form.
CONTACT - Data from the evaluated contact.
EVALUATION_METADATA - Metadata of the evaluation, such as the evaluation type.
AI_METRICS - Metrics about AI agents, AI sessions, and AI tools on the contact.
RefId (string) --
A referenceId of the source item. Use when Type is QUESTION_REF_ID.
ContactField (string) --
The contact field to use as the source, such as CHANNEL, QUEUE_ARN, OVERALL_CUSTOMER_SENTIMENT_SCORE, or RECORDING_MEDIA_STREAM_TYPES. Use when Type is CONTACT.
ContactAttributeKey (string) --
The key of the contact attribute to use as the source. Use when Type is CONTACT.
SegmentAttributeKey (string) --
The key of the contact segment attribute to use as the source. Use when Type is CONTACT.
EvaluationMetadataField (string) --
The evaluation metadata field to use as the source. Use when Type is EVALUATION_METADATA.
AiMetricsField (string) --
The AI metrics field to use as the source. Use when Type is AI_METRICS.
Values (list) -- [REQUIRED]
A list of values from source item.
(dict) --
An enablement expression source value. Provide only the value member that matches the specified Type.
Type (string) -- [REQUIRED]
A type of source item value. Valid values: OPTION_REF_ID | STRING_VALUE | NUMERIC_VALUE | BOOLEAN_VALUE | DATETIME_VALUE.
RefId (string) --
A referenceId of the source value. Use when Type is OPTION_REF_ID.
StringValue (string) --
A string value to compare against the source. Use when Type is STRING_VALUE.
NumericValue (float) --
A numeric value to compare against the source. Use when Type is NUMERIC_VALUE.
BooleanValue (boolean) --
A Boolean value to compare against the source. Use when Type is BOOLEAN_VALUE.
DateTimeValue (datetime) --
A date and time value to compare against the source. Use when Type is DATETIME_VALUE.
Comparator (string) -- [REQUIRED]
A comparator to be used against a list of values. IN, NOT_IN, ALL_IN, and EXACT compare sets of values. GREATER_THAN, LESS_THAN, GREATER_THAN_OR_EQUAL_TO, and LESS_THAN_OR_EQUAL_TO compare a single numeric or date and time value. EQUAL_TO and NOT_EQUAL_TO compare a single value.
Condition (dict) --
A condition for item enablement.
Operator (string) --
The operator to apply to the operands when more than one operand is provided.
Action (string) -- [REQUIRED]
The enablement action to apply if the condition is satisfied.
DefaultAction (string) --
The enablement action to apply if the condition is not satisfied. This action is also applied when the condition depends on an external source that is still pending or could not be resolved.
Question (dict) --
The information of the question.
Title (string) -- [REQUIRED]
The title of the question.
Instructions (string) --
The instructions of the section.
RefId (string) -- [REQUIRED]
The identifier of the question. An identifier must be unique within the evaluation form.
NotApplicableEnabled (boolean) --
The flag to enable not applicable answers to the question.
QuestionType (string) -- [REQUIRED]
The type of the question.
QuestionTypeProperties (dict) --
The properties of the type of question. Text questions do not have to define question type properties.
Numeric (dict) --
The properties of the numeric question.
MinValue (integer) -- [REQUIRED]
The minimum answer value.
MaxValue (integer) -- [REQUIRED]
The maximum answer value.
Options (list) --
The scoring options of the numeric question.
(dict) --
Information about the option range used for scoring in numeric questions.
MinValue (integer) -- [REQUIRED]
The minimum answer value of the range option.
MaxValue (integer) -- [REQUIRED]
The maximum answer value of the range option.
Score (integer) --
The score assigned to answer values within the range option.
AutomaticFail (boolean) --
The flag to mark the option as automatic fail. If an automatic fail answer is provided, the overall evaluation gets a score of 0.
AutomaticFailConfiguration (dict) --
A configuration for automatic fail.
TargetSection (string) --
The referenceId of the target section for auto failure.
PointsConfiguration (dict) --
The points configuration for point-based scoring.
PointValue (integer) -- [REQUIRED]
The point value assigned to the answer option.
IsBonus (boolean) --
The flag to mark the option as a bonus option.
Automation (dict) --
The automation properties of the numeric question.
PropertyValue (dict) --
The property value of the automation.
Label (string) -- [REQUIRED]
The property label of the automation.
AnswerSource (dict) --
A source of automation answer for numeric question.
SourceType (string) -- [REQUIRED]
The automation answer source type. Valid values:
CONTACT_LENS_DATA - The answer is based on Contact Lens data, such as rule categories and metrics.
GEN_AI - The answer is generated by generative AI.
CONDITION - The answer is determined by evaluating the conditions defined in the automation rules of the question.
SingleSelect (dict) --
The properties of the numeric question.
Options (list) -- [REQUIRED]
The answer options of the single select question.
(dict) --
Information about the automation configuration in single select questions.
RefId (string) -- [REQUIRED]
The identifier of the answer option. An identifier must be unique within the question.
Text (string) -- [REQUIRED]
The title of the answer option.
Score (integer) --
The score assigned to the answer option.
AutomaticFail (boolean) --
The flag to mark the option as automatic fail. If an automatic fail answer is provided, the overall evaluation gets a score of 0.
AutomaticFailConfiguration (dict) --
Whether automatic fail is configured on a single select question.
TargetSection (string) --
The referenceId of the target section for auto failure.
PointsConfiguration (dict) --
The points configuration for point-based scoring.
PointValue (integer) -- [REQUIRED]
The point value assigned to the answer option.
IsBonus (boolean) --
The flag to mark the option as a bonus option.
DisplayAs (string) --
The display mode of the single select question.
Automation (dict) --
The display mode of the single select question.
Options (list) --
The automation options of the single select question.
(dict) --
Information about the automation option of a single select question.
RuleCategory (dict) --
The automation option based on a rule category for the single select question.
Category (string) -- [REQUIRED]
The category name, as defined in Rules. This is equivalent to a conversational analytics rule with the same name: the automation option is applied based on whether that rule matched the contact. For more information about creating rules, see Create rules in the Connect Customer Administrator Guide.
Condition (string) -- [REQUIRED]
The condition to apply for the automation option. If the condition is PRESENT, then the option is applied when the contact data includes the category. Similarly, if the condition is NOT_PRESENT, then the option is applied when the contact data does not include the category.
OptionRefId (string) -- [REQUIRED]
The identifier of the answer option.
AutomationRule (dict) --
The automation option based on a condition for the single select question. Use with the CONDITION answer source type.
Condition (dict) -- [REQUIRED]
The condition that must be satisfied for the answer option to be selected. The condition uses the same sources, comparators, and operators as item enablement conditions.
Operands (list) -- [REQUIRED]
Operands of the enablement condition.
(dict) --
An operand of the enablement condition.
Expression (dict) --
An expression of the enablement condition.
Source (dict) -- [REQUIRED]
A source item of enablement expression.
Type (string) -- [REQUIRED]
A type of source item. Valid values:
QUESTION_REF_ID - The answer to another question in the evaluation form.
CONTACT - Data from the evaluated contact.
EVALUATION_METADATA - Metadata of the evaluation, such as the evaluation type.
AI_METRICS - Metrics about AI agents, AI sessions, and AI tools on the contact.
RefId (string) --
A referenceId of the source item. Use when Type is QUESTION_REF_ID.
ContactField (string) --
The contact field to use as the source, such as CHANNEL, QUEUE_ARN, OVERALL_CUSTOMER_SENTIMENT_SCORE, or RECORDING_MEDIA_STREAM_TYPES. Use when Type is CONTACT.
ContactAttributeKey (string) --
The key of the contact attribute to use as the source. Use when Type is CONTACT.
SegmentAttributeKey (string) --
The key of the contact segment attribute to use as the source. Use when Type is CONTACT.
EvaluationMetadataField (string) --
The evaluation metadata field to use as the source. Use when Type is EVALUATION_METADATA.
AiMetricsField (string) --
The AI metrics field to use as the source. Use when Type is AI_METRICS.
Values (list) -- [REQUIRED]
A list of values from source item.
(dict) --
An enablement expression source value. Provide only the value member that matches the specified Type.
Type (string) -- [REQUIRED]
A type of source item value. Valid values: OPTION_REF_ID | STRING_VALUE | NUMERIC_VALUE | BOOLEAN_VALUE | DATETIME_VALUE.
RefId (string) --
A referenceId of the source value. Use when Type is OPTION_REF_ID.
StringValue (string) --
A string value to compare against the source. Use when Type is STRING_VALUE.
NumericValue (float) --
A numeric value to compare against the source. Use when Type is NUMERIC_VALUE.
BooleanValue (boolean) --
A Boolean value to compare against the source. Use when Type is BOOLEAN_VALUE.
DateTimeValue (datetime) --
A date and time value to compare against the source. Use when Type is DATETIME_VALUE.
Comparator (string) -- [REQUIRED]
A comparator to be used against a list of values. IN, NOT_IN, ALL_IN, and EXACT compare sets of values. GREATER_THAN, LESS_THAN, GREATER_THAN_OR_EQUAL_TO, and LESS_THAN_OR_EQUAL_TO compare a single numeric or date and time value. EQUAL_TO and NOT_EQUAL_TO compare a single value.
Condition (dict) --
A condition for item enablement.
Operator (string) --
The operator to apply to the operands when more than one operand is provided.
OptionRefId (string) -- [REQUIRED]
The identifier of the answer option to select when the condition is satisfied.
DefaultOptionRefId (string) --
The identifier of the default answer option, when none of the automation options match the criteria.
AnswerSource (dict) --
Automation answer source.
SourceType (string) -- [REQUIRED]
The automation answer source type. Valid values:
CONTACT_LENS_DATA - The answer is based on Contact Lens data, such as rule categories and metrics.
GEN_AI - The answer is generated by generative AI.
CONDITION - The answer is determined by evaluating the conditions defined in the automation rules of the question.
Text (dict) --
The properties of the text question.
Automation (dict) --
The automation properties of the text question.
AnswerSource (dict) --
Automation answer source.
SourceType (string) -- [REQUIRED]
The automation answer source type. Valid values:
CONTACT_LENS_DATA - The answer is based on Contact Lens data, such as rule categories and metrics.
GEN_AI - The answer is generated by generative AI.
CONDITION - The answer is determined by evaluating the conditions defined in the automation rules of the question.
MultiSelect (dict) --
Properties for multi-select question types.
Options (list) -- [REQUIRED]
Options available for this multi-select question.
(dict) --
An option for a multi-select question in an evaluation form.
RefId (string) -- [REQUIRED]
Reference identifier for this option.
Text (string) -- [REQUIRED]
Display text for this option.
Score (integer) --
The score assigned to the answer option.
AutomaticFail (boolean) --
The flag to mark the option as automatic fail. If an automatic fail answer is provided, the overall evaluation gets a score of 0.
AutomaticFailConfiguration (dict) --
Information about automatic fail configuration for an evaluation form.
TargetSection (string) --
The referenceId of the target section for auto failure.
PointsConfiguration (dict) --
The points configuration for point-based scoring.
PointValue (integer) -- [REQUIRED]
The point value assigned to the answer option.
IsBonus (boolean) --
The flag to mark the option as a bonus option.
DisplayAs (string) --
Display format for the multi-select question.
Automation (dict) --
Automation configuration for this multi-select question.
Options (list) --
Automation options for the multi-select question.
(dict) --
An automation option for a multi-select question.
RuleCategory (dict) --
Rule category configuration for this automation option.
Category (string) -- [REQUIRED]
The category name for this automation rule.
Condition (string) -- [REQUIRED]
The condition for this automation rule.
OptionRefIds (list) -- [REQUIRED]
Reference IDs of options for this automation rule.
(string) --
DefaultOptionRefIds (list) --
Reference IDs of default options.
(string) --
AnswerSource (dict) --
Automation answer source.
SourceType (string) -- [REQUIRED]
The automation answer source type. Valid values:
CONTACT_LENS_DATA - The answer is based on Contact Lens data, such as rule categories and metrics.
GEN_AI - The answer is generated by generative AI.
CONDITION - The answer is determined by evaluating the conditions defined in the automation rules of the question.
Enablement (dict) --
A question conditional enablement.
Condition (dict) -- [REQUIRED]
A condition for item enablement configuration.
Operands (list) -- [REQUIRED]
Operands of the enablement condition.
(dict) --
An operand of the enablement condition.
Expression (dict) --
An expression of the enablement condition.
Source (dict) -- [REQUIRED]
A source item of enablement expression.
Type (string) -- [REQUIRED]
A type of source item. Valid values:
QUESTION_REF_ID - The answer to another question in the evaluation form.
CONTACT - Data from the evaluated contact.
EVALUATION_METADATA - Metadata of the evaluation, such as the evaluation type.
AI_METRICS - Metrics about AI agents, AI sessions, and AI tools on the contact.
RefId (string) --
A referenceId of the source item. Use when Type is QUESTION_REF_ID.
ContactField (string) --
The contact field to use as the source, such as CHANNEL, QUEUE_ARN, OVERALL_CUSTOMER_SENTIMENT_SCORE, or RECORDING_MEDIA_STREAM_TYPES. Use when Type is CONTACT.
ContactAttributeKey (string) --
The key of the contact attribute to use as the source. Use when Type is CONTACT.
SegmentAttributeKey (string) --
The key of the contact segment attribute to use as the source. Use when Type is CONTACT.
EvaluationMetadataField (string) --
The evaluation metadata field to use as the source. Use when Type is EVALUATION_METADATA.
AiMetricsField (string) --
The AI metrics field to use as the source. Use when Type is AI_METRICS.
Values (list) -- [REQUIRED]
A list of values from source item.
(dict) --
An enablement expression source value. Provide only the value member that matches the specified Type.
Type (string) -- [REQUIRED]
A type of source item value. Valid values: OPTION_REF_ID | STRING_VALUE | NUMERIC_VALUE | BOOLEAN_VALUE | DATETIME_VALUE.
RefId (string) --
A referenceId of the source value. Use when Type is OPTION_REF_ID.
StringValue (string) --
A string value to compare against the source. Use when Type is STRING_VALUE.
NumericValue (float) --
A numeric value to compare against the source. Use when Type is NUMERIC_VALUE.
BooleanValue (boolean) --
A Boolean value to compare against the source. Use when Type is BOOLEAN_VALUE.
DateTimeValue (datetime) --
A date and time value to compare against the source. Use when Type is DATETIME_VALUE.
Comparator (string) -- [REQUIRED]
A comparator to be used against a list of values. IN, NOT_IN, ALL_IN, and EXACT compare sets of values. GREATER_THAN, LESS_THAN, GREATER_THAN_OR_EQUAL_TO, and LESS_THAN_OR_EQUAL_TO compare a single numeric or date and time value. EQUAL_TO and NOT_EQUAL_TO compare a single value.
Condition (dict) --
A condition for item enablement.
Operator (string) --
The operator to apply to the operands when more than one operand is provided.
Action (string) -- [REQUIRED]
The enablement action to apply if the condition is satisfied.
DefaultAction (string) --
The enablement action to apply if the condition is not satisfied. This action is also applied when the condition depends on an external source that is still pending or could not be resolved.
Weight (float) --
The scoring weight of the section.
ScoringConfiguration (dict) --
The scoring configuration of the question.
PointsConfiguration (dict) --
The points configuration for point-based scoring.
MaxPointValue (integer) --
The maximum point value.
MinPointValue (integer) --
The minimum point value.
IsBonus (boolean) --
The flag to mark the question as a bonus question.
IsExcludedFromScoring (boolean) --
The flag to exclude the question from scoring.
ScoreThresholds (list) --
The score thresholds for performance categories.
(dict) --
Information about a score threshold for a performance category.
PerformanceCategory (string) -- [REQUIRED]
The performance category name.
MinScorePercentage (float) --
The minimum score percentage for the performance category.
MaxScorePercentage (float) --
The maximum score percentage for the performance category.
MetricConfiguration (dict) --
The metric configuration for the question. Use this to associate a business outcome metric with the question.
MetricType (string) -- [REQUIRED]
The type of metric. Currently, only BUSINESS_OUTCOME is supported.
MetricName (string) -- [REQUIRED]
The name of the metric. Valid values are:
SALE_SUCCESS – Sale success.
CSAT – Customer satisfaction.
CHURN_PROPENSITY – Churn propensity.
SELF_SERVICE_SUCCESS – Self-service success.
PARTIAL_SELF_SERVICE_SUCCESS – Partial self-service success.
dict
A scoring strategy of the evaluation form.
Mode (string) -- [REQUIRED]
The scoring mode of the evaluation form.
Status (string) -- [REQUIRED]
The scoring status of the evaluation form.
ScoreThresholds (list) --
The score thresholds for performance categories.
(dict) --
Information about a score threshold for a performance category.
PerformanceCategory (string) -- [REQUIRED]
The performance category name.
MinScorePercentage (float) --
The minimum score percentage for the performance category.
MaxScorePercentage (float) --
The maximum score percentage for the performance category.
dict
Whether automated evaluations are enabled.
Enabled (boolean) -- [REQUIRED]
When automated evaluation is enabled.
dict
Configuration for evaluation review settings of the evaluation form.
ReviewNotificationRecipients (list) -- [REQUIRED]
List of recipients who should be notified when a review is requested.
(dict) --
Information about a recipient who should be notified when an evaluation review is requested.
Type (string) -- [REQUIRED]
The type of notification recipient.
Value (dict) -- [REQUIRED]
The value associated with the notification recipient type.
UserId (string) --
The user identifier for the notification recipient.
EligibilityDays (integer) --
Number of days during which a request for review can be submitted for evaluations created from this form.
boolean
A boolean flag indicating whether to update evaluation form to draft state.
string
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.
This field is autopopulated if not provided.
dict
Configuration that specifies the target for the evaluation form.
ContactInteractionType (string) -- [REQUIRED]
The contact interaction type for this evaluation form.
AutomatedParticipantRole (string) --
The role of the automated participant that this evaluation form targets. This applies when the ContactInteractionType is AUTOMATED, and identifies which automated participant the evaluation is for, such as an Amazon Lex bot ( LEX_BOT), an AI agent ( AI_AGENT), or the system ( SYSTEM).
dict
Configuration for language settings of the evaluation form.
FormLanguage (string) --
The language for the evaluation form.
string
The AI version to use for the evaluation form. This specifies which AI model version is used for automated evaluations.
dict
Response Syntax
{
'EvaluationFormId': 'string',
'EvaluationFormArn': 'string',
'EvaluationFormVersion': 123
}
Response Structure
(dict) --
EvaluationFormId (string) --
The unique identifier for the evaluation form.
EvaluationFormArn (string) --
The Amazon Resource Name (ARN) for the contact evaluation resource.
EvaluationFormVersion (integer) --
The version of the updated evaluation form resource.
{'Actions': {'SubmitAutoEvaluationAction': {'ParticipantSelection': {'ParticipantIdentifiers': ['string'],
'ParticipantType': 'AI_AGENT '
'| '
'LEX_BOT',
'SelectionMode': 'ALL '
'| '
'SPECIFIC'}}}}
Updates a rule for the specified Connect Customer instance.
Use the Rules Function language to code conditions for the rule.
See also: AWS API Documentation
Request Syntax
client.update_rule(
RuleId='string',
InstanceId='string',
Name='string',
Function='string',
Actions=[
{
'ActionType': 'CREATE_TASK'|'ASSIGN_CONTACT_CATEGORY'|'GENERATE_EVENTBRIDGE_EVENT'|'SEND_NOTIFICATION'|'CREATE_CASE'|'UPDATE_CASE'|'ASSIGN_SLA'|'END_ASSOCIATED_TASKS'|'END_ASSOCIATED_EMAILS'|'SUBMIT_AUTO_EVALUATION'|'EXTRACT_INFORMATION'|'SEND_IN_APP_NOTIFICATION',
'TaskAction': {
'Name': 'string',
'Description': 'string',
'ContactFlowId': 'string',
'References': {
'string': {
'Value': 'string',
'Type': 'URL'|'ATTACHMENT'|'CONTACT_ANALYSIS'|'NUMBER'|'STRING'|'DATE'|'EMAIL'|'EMAIL_MESSAGE'|'EMAIL_MESSAGE_PLAIN_TEXT'|'EMAIL_MESSAGE_PLAIN_TEXT_REDACTED'|'EMAIL_MESSAGE_REDACTED'|'VOICEMAIL_RECORDING'|'VOICEMAIL_RECORDING_REDACTED'|'VOICEMAIL_ANALYSIS'|'VOICEMAIL_ANALYSIS_REDACTED',
'Status': 'AVAILABLE'|'DELETED'|'APPROVED'|'REJECTED'|'PROCESSING'|'FAILED'|'DRAFTING',
'Arn': 'string',
'StatusReason': 'string'
}
}
},
'EventBridgeAction': {
'Name': 'string'
},
'AssignContactCategoryAction': {}
,
'SendNotificationAction': {
'DeliveryMethod': 'EMAIL',
'Subject': 'string',
'Content': 'string',
'ContentType': 'PLAIN_TEXT',
'Recipient': {
'UserTags': {
'string': 'string'
},
'UserIds': [
'string',
]
},
'Exclusion': {
'UserTags': {
'string': 'string'
},
'UserIds': [
'string',
]
}
},
'CreateCaseAction': {
'Fields': [
{
'Id': 'string',
'Value': {
'BooleanValue': True|False,
'DoubleValue': 123.0,
'EmptyValue': {}
,
'StringValue': 'string'
}
},
],
'TemplateId': 'string'
},
'UpdateCaseAction': {
'Fields': [
{
'Id': 'string',
'Value': {
'BooleanValue': True|False,
'DoubleValue': 123.0,
'EmptyValue': {}
,
'StringValue': 'string'
}
},
]
},
'AssignSlaAction': {
'SlaAssignmentType': 'CASES',
'CaseSlaConfiguration': {
'Name': 'string',
'Type': 'CaseField',
'FieldId': 'string',
'TargetFieldValues': [
{
'BooleanValue': True|False,
'DoubleValue': 123.0,
'EmptyValue': {}
,
'StringValue': 'string'
},
],
'TargetSlaMinutes': 123
}
},
'EndAssociatedTasksAction': {}
,
'EndAssociatedEmailsAction': {}
,
'SubmitAutoEvaluationAction': {
'EvaluationFormId': 'string',
'ParticipantSelection': {
'ParticipantType': 'AI_AGENT'|'LEX_BOT',
'SelectionMode': 'ALL'|'SPECIFIC',
'ParticipantIdentifiers': [
'string',
]
}
},
'ExtractInformationAction': {
'RulesExtractionDefinitions': [
{
'Identifier': 'string'
},
]
},
'SendInAppNotificationAction': {
'Content': {
'string': 'string'
},
'Recipient': {
'UserTags': {
'string': 'string'
},
'UserIds': [
'string',
]
},
'Exclusion': {
'UserTags': {
'string': 'string'
},
'UserIds': [
'string',
]
},
'Priority': 'HIGH'|'LOW'
}
},
],
PublishStatus='DRAFT'|'PUBLISHED',
PreEvaluationFilters={
'AndConditions': [
{
'ResourceType': 'CONTACT'|'CONTACT_EVALUATION',
'FilterType': 'TAG',
'FilterKey': 'string',
'FilterValue': 'string',
'Operator': 'EQUALS'
},
]
}
)
string
[REQUIRED]
A unique identifier for the rule.
string
[REQUIRED]
The identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
string
[REQUIRED]
The name of the rule. You can change the name only if TriggerEventSource is one of the following values: OnZendeskTicketCreate | OnZendeskTicketStatusUpdate | OnSalesforceCaseCreate
string
[REQUIRED]
The conditions of the rule.
list
[REQUIRED]
A list of actions to be run when the rule is triggered.
(dict) --
Information about the action to be performed when a rule is triggered.
ActionType (string) -- [REQUIRED]
The type of action that creates a rule.
TaskAction (dict) --
Information about the task action. This field is required if TriggerEventSource is one of the following values: OnZendeskTicketCreate | OnZendeskTicketStatusUpdate | OnSalesforceCaseCreate
Name (string) -- [REQUIRED]
The name. Supports variable injection. For more information, see JSONPath reference in the Connect Customer Administrators Guide.
Description (string) --
The description. Supports variable injection. For more information, see JSONPath reference in the Connect Customer Administrators Guide.
ContactFlowId (string) -- [REQUIRED]
The identifier of the flow.
References (dict) --
Information about the reference when the referenceType is URL. Otherwise, null. (Supports variable injection in the Value field.)
(string) --
(dict) --
Well-formed data on a contact, used by agents to complete a contact request. You can have up to 4,096 UTF-8 bytes across all references for a contact.
Value (string) --
A valid value for the reference. For example, for a URL reference, a formatted URL that is displayed to an agent in the Contact Control Panel (CCP).
Type (string) -- [REQUIRED]
The type of the reference. DATE must be of type Epoch timestamp.
Status (string) --
Status of the attachment reference type.
Arn (string) --
The Amazon Resource Name (ARN) of the reference
StatusReason (string) --
Relevant details why the reference was not successfully created.
EventBridgeAction (dict) --
Information about the EventBridge action.
Supported only for TriggerEventSource values: OnPostCallAnalysisAvailable | OnRealTimeCallAnalysisAvailable | OnRealTimeChatAnalysisAvailable | OnPostChatAnalysisAvailable | OnContactEvaluationSubmit | OnMetricDataUpdate
Name (string) -- [REQUIRED]
The name.
AssignContactCategoryAction (dict) --
Information about the contact category action.
Supported only for TriggerEventSource values: OnPostCallAnalysisAvailable | OnRealTimeCallAnalysisAvailable | OnRealTimeChatAnalysisAvailable | OnPostChatAnalysisAvailable | OnZendeskTicketCreate | OnZendeskTicketStatusUpdate | OnSalesforceCaseCreate
SendNotificationAction (dict) --
Information about the send notification action.
Supported only for TriggerEventSource values: OnPostCallAnalysisAvailable | OnRealTimeCallAnalysisAvailable | OnRealTimeChatAnalysisAvailable | OnPostChatAnalysisAvailable | OnContactEvaluationSubmit | OnMetricDataUpdate
DeliveryMethod (string) -- [REQUIRED]
Notification delivery method.
Subject (string) --
The subject of the email if the delivery method is EMAIL. Supports variable injection. For more information, see JSONPath reference in the Connect Customer Administrators Guide.
Content (string) -- [REQUIRED]
Notification content. Supports variable injection. For more information, see JSONPath reference in the Connect Customer Administrators Guide.
ContentType (string) -- [REQUIRED]
Content type format.
Recipient (dict) -- [REQUIRED]
Notification recipient.
UserTags (dict) --
The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }. Connect Customer users with the specified tags will be notified.
(string) --
(string) --
UserIds (list) --
A list of user IDs. Supports variable injection of $.ContactLens.ContactEvaluation.Agent.AgentId for OnContactEvaluationSubmit event source.
(string) --
Exclusion (dict) --
Recipients to exclude from notification.
UserTags (dict) --
The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }. Connect Customer users with the specified tags will be notified.
(string) --
(string) --
UserIds (list) --
A list of user IDs. Supports variable injection of $.ContactLens.ContactEvaluation.Agent.AgentId for OnContactEvaluationSubmit event source.
(string) --
CreateCaseAction (dict) --
Information about the create case action.
Supported only for TriggerEventSource values: OnPostCallAnalysisAvailable | OnPostChatAnalysisAvailable.
Fields (list) -- [REQUIRED]
An array of objects with Field ID and Value data.
(dict) --
Object for case field values.
Id (string) -- [REQUIRED]
Unique identifier of a field.
Value (dict) -- [REQUIRED]
Union of potential field value types.
BooleanValue (boolean) --
A Boolean number value type.
DoubleValue (float) --
A Double number value type.
EmptyValue (dict) --
An empty value.
StringValue (string) --
String value type.
TemplateId (string) -- [REQUIRED]
A unique identifier of a template.
UpdateCaseAction (dict) --
Information about the update case action.
Supported only for TriggerEventSource values: OnCaseCreate | OnCaseUpdate.
Fields (list) -- [REQUIRED]
An array of objects with Field ID and Value data.
(dict) --
Object for case field values.
Id (string) -- [REQUIRED]
Unique identifier of a field.
Value (dict) -- [REQUIRED]
Union of potential field value types.
BooleanValue (boolean) --
A Boolean number value type.
DoubleValue (float) --
A Double number value type.
EmptyValue (dict) --
An empty value.
StringValue (string) --
String value type.
AssignSlaAction (dict) --
Information about the assign SLA action.
SlaAssignmentType (string) -- [REQUIRED]
Type of SLA assignment.
CaseSlaConfiguration (dict) --
The SLA configuration for Case SLA Assignment.
Name (string) -- [REQUIRED]
Name of an SLA.
Type (string) -- [REQUIRED]
Type of SLA for Case SlaAssignmentType.
FieldId (string) --
Unique identifier of a Case field.
TargetFieldValues (list) --
Represents a list of target field values for the fieldId specified in CaseSlaConfiguration. The SLA is considered met if any one of these target field values matches the actual field value.
(dict) --
Object to store union of Field values.
BooleanValue (boolean) --
A Boolean number value type.
DoubleValue (float) --
A Double number value type.
EmptyValue (dict) --
An empty value.
StringValue (string) --
String value type.
TargetSlaMinutes (integer) -- [REQUIRED]
Target duration in minutes within which an SLA should be completed.
EndAssociatedTasksAction (dict) --
Information about the end associated tasks action.
Supported only for TriggerEventSource values: OnCaseUpdate.
EndAssociatedEmailsAction (dict) --
Information about the end associated emails action.
Supported only for TriggerEventSource values: OnCaseUpdate.
SubmitAutoEvaluationAction (dict) --
Information about the submit automated evaluation action.
EvaluationFormId (string) -- [REQUIRED]
The identifier of the auto-evaluation enabled form.
ParticipantSelection (dict) --
The automated participants in the contact to evaluate. Amazon Connect submits one evaluation for each selected participant. This field is required when TriggerEventSource is OnAIAgentLogAvailable, and is not supported for any other event source.
ParticipantType (string) -- [REQUIRED]
The type of automated participant to evaluate. If the evaluation form specifies an automated participant role, this value must match it.
SelectionMode (string) -- [REQUIRED]
Whether to evaluate all participants of the specified type in the contact ( ALL) or only the participants listed in ParticipantIdentifiers ( SPECIFIC).
ParticipantIdentifiers (list) --
The identifiers of the participants to evaluate. Each entry can be a resource ID or an ARN of an AI agent or an Amazon Lex bot alias; version qualifiers are ignored. This field is required when SelectionMode is SPECIFIC, and is not supported when SelectionMode is ALL.
(string) --
ExtractInformationAction (dict) --
Information about the extract information action.
RulesExtractionDefinitions (list) -- [REQUIRED]
The list of extraction definition identifiers that specify what data to extract.
(dict) --
An identifier that references an extraction definition resource.
Identifier (string) -- [REQUIRED]
The identifier of the extraction definition.
SendInAppNotificationAction (dict) --
Information about the send in-app notification action.
Supported only for TriggerEventSource values: OnPostCallAnalysisAvailable | OnRealTimeCallAnalysisAvailable | OnRealTimeChatAnalysisAvailable | OnPostChatAnalysisAvailable | OnAfterCallWorkAvailable | OnAfterChatWorkAvailable | OnEmailAnalysisAvailable | OnContactEvaluationSubmit | OnCaseCreate | OnCaseUpdate | OnSlaBreach | OnSchedulePublish | OnScheduleUpdate | OnScheduleTimeOffRequestActivity
Content (dict) -- [REQUIRED]
Notification content. Supports variable injection. For more information, see JSONPath reference in the Connect Customer Administrators Guide.
(string) --
The locale code for localized content. Supported values include en_US, de_DE, es_ES, fr_FR, id_ID, it_IT, ja_JP, ko_KR, pt_BR, zh_CN, and zh_TW.
(string) --
A localized string value. Maximum length is 500 visible characters. In a markdown link of the form [label](url), only the label counts toward the limit.
Recipient (dict) -- [REQUIRED]
Notification recipient.
UserTags (dict) --
The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }. Connect Customer users with the specified tags will be notified.
(string) --
(string) --
UserIds (list) --
A list of user IDs. Supports variable injection of $.ContactLens.ContactEvaluation.Agent.AgentId for OnContactEvaluationSubmit event source.
(string) --
Exclusion (dict) --
Recipients to exclude from notification.
UserTags (dict) --
The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }. Connect Customer users with the specified tags will be notified.
(string) --
(string) --
UserIds (list) --
A list of user IDs. Supports variable injection of $.ContactLens.ContactEvaluation.Agent.AgentId for OnContactEvaluationSubmit event source.
(string) --
Priority (string) --
Notification priority.
string
[REQUIRED]
The publish status of the rule.
dict
The pre-evaluation filters for the rule, that restrict the rule to be applied to only certain resources based on the resource's attributes, such as tags assigned to a contact. The pre-evaluation filters are applied even before rule conditions are evaluated and are used to enforce tag-based-access-control while applying rules.
AndConditions (list) --
A list of conditions that the rule evaluates together using AND logic. All conditions must be met for the event to be evaluated by the rule.
(dict) --
A single pre-evaluation filter condition. Specifies a resource type, filter type, key, value, and operator to match against a resource attribute.
ResourceType (string) -- [REQUIRED]
The type of resource to filter on. Valid values:
CONTACT - Filter on attributes of the contact, such as tags assigned to the contact.
CONTACT_EVALUATION - Filter on attributes of the contact evaluation, such as tags assigned to the contact evaluation, for rules triggered on the OnContactEvaluationSubmit event source.
FilterType (string) -- [REQUIRED]
The type of filter to apply. Valid values: TAG.
FilterKey (string) -- [REQUIRED]
The key of the attribute to filter on. For tag filters, this is the tag key.
FilterValue (string) -- [REQUIRED]
The value to match against. For tag filters, this is the tag value.
Operator (string) -- [REQUIRED]
The comparison operator for the filter condition. Valid values: EQUALS.
None
{'EntryPoint': {'VoiceCallEntryPointParameters': {'TranscriptionLanguageCodes': ['string']}},
'SyntheticCustomerConfiguration': {'Enabled': 'boolean',
'Persona': {'CommunicationStyle': 'STANDARD '
'| '
'VERBOSE '
'| '
'CONCISE '
'| TERSE',
'Cooperativeness': 'NEUTRAL | '
'COOPERATIVE '
'| '
'UNCOOPERATIVE',
'DomainKnowledge': 'string',
'EmotionalState': 'NEUTRAL | '
'FRUSTRATED '
'| ANGRY | '
'ANXIOUS | '
'HAPPY | '
'CONFUSED',
'Language': 'string',
'Name': 'string',
'Voice': 'string',
'VoiceEngine': 'STANDARD | '
'NEURAL | '
'GENERATIVE'},
'Scenario': {'ExpectedOutcome': 'string',
'Goal': 'string',
'InitialQuery': 'string',
'KnownInputs': [{'InputName': 'string',
'InputValue': 'string'}],
'Name': 'string',
'StopConditions': {'MaxTurns': 'integer'}}}}
Updates any of the metadata for a test case, such as the name, description, and status or content of an existing test case. This API doesn't allow customers to update the tags of the test case resource for the specified Amazon Connect instance.
See also: AWS API Documentation
Request Syntax
client.update_test_case(
InstanceId='string',
TestCaseId='string',
Content='string',
EntryPoint={
'Type': 'VOICE_CALL'|'CHAT',
'VoiceCallEntryPointParameters': {
'SourcePhoneNumber': 'string',
'DestinationPhoneNumber': 'string',
'FlowId': 'string',
'TranscriptionLanguageCodes': [
'string',
]
},
'ChatEntryPointParameters': {
'FlowId': 'string'
}
},
InitializationData='string',
SyntheticCustomerConfiguration={
'Enabled': True|False,
'Persona': {
'Name': 'string',
'CommunicationStyle': 'STANDARD'|'VERBOSE'|'CONCISE'|'TERSE',
'Language': 'string',
'Voice': 'string',
'VoiceEngine': 'STANDARD'|'NEURAL'|'GENERATIVE',
'DomainKnowledge': 'string',
'EmotionalState': 'NEUTRAL'|'FRUSTRATED'|'ANGRY'|'ANXIOUS'|'HAPPY'|'CONFUSED',
'Cooperativeness': 'NEUTRAL'|'COOPERATIVE'|'UNCOOPERATIVE'
},
'Scenario': {
'Name': 'string',
'Goal': 'string',
'ExpectedOutcome': 'string',
'InitialQuery': 'string',
'StopConditions': {
'MaxTurns': 123
},
'KnownInputs': [
{
'InputName': 'string',
'InputValue': 'string'
},
]
}
},
Name='string',
Description='string',
Status='PUBLISHED'|'SAVED',
LastModifiedTime=datetime(2015, 1, 1),
LastModifiedRegion='string'
)
string
[REQUIRED]
The identifier of the Amazon Connect instance.
string
[REQUIRED]
The identifier of the test case to update.
string
The JSON string that represents the content of the test.
dict
Defines the starting point for your test.
Type (string) --
The type of entry point.
VoiceCallEntryPointParameters (dict) --
Parameters for voice call entry point.
SourcePhoneNumber (string) --
The source phone number for the test.
DestinationPhoneNumber (string) --
The destination phone number for the test.
FlowId (string) --
The flow identifier for the test.
TranscriptionLanguageCodes (list) --
The language codes that Amazon Connect uses to transcribe the voice call during the test, for example en-US. You can specify up to 5 unique codes. If you specify more than one code, Amazon Connect identifies the language automatically from those codes.
(string) --
ChatEntryPointParameters (dict) --
Parameters for chat entry point.
FlowId (string) --
The flow identifier for the test.
string
Defines the test attributes for precise data representation.
dict
The configuration of an AI-driven synthetic customer that you use to simulate the customer side of the test. If you specify this parameter, it replaces your entire existing configuration. If you omit it, Amazon Connect keeps your existing configuration. If you set Enabled to true and the test case status to PUBLISHED, you must provide a Persona with a Name, and a Scenario with a Name, Goal, and ExpectedOutcome.
Enabled (boolean) -- [REQUIRED]
Specifies whether the test case runs with the AI-driven synthetic customer. If you set this to true, the synthetic customer interacts with your flow, and you must include a Persona with a Name, and a Scenario with a Name, Goal, and ExpectedOutcome, before you publish the test case. If you set this to false, the test case runs from its observations. Your Persona and Scenario remain part of the test case, so you can turn the synthetic customer back on later, but they aren't used in the test.
Persona (dict) --
Who the synthetic customer is.
Name (string) --
The name of the persona.
CommunicationStyle (string) --
How the synthetic customer communicates.
Language (string) --
The language that the synthetic customer uses, for example en-US.
Voice (string) --
The Amazon Polly voice for the synthetic customer, for example Joanna.
VoiceEngine (string) --
The Amazon Polly engine that synthesizes the speech of the synthetic customer. Choose an engine that the selected Voice supports. If you don't specify an engine, Amazon Polly uses the standard engine.
DomainKnowledge (string) --
The background knowledge that the synthetic customer brings to the conversation.
EmotionalState (string) --
How the synthetic customer feels during the conversation.
Cooperativeness (string) --
How cooperative the synthetic customer is.
Scenario (dict) --
The situation and goal of the synthetic customer.
Name (string) --
The name of the scenario.
Goal (string) --
What the synthetic customer is trying to accomplish.
ExpectedOutcome (string) --
The result that counts as a successful test.
InitialQuery (string) --
The opening message of the synthetic customer.
StopConditions (dict) --
The limits that end the simulation if the expected outcome isn't reached.
MaxTurns (integer) --
The maximum number of exchanges between the synthetic customer and your flow. If you don't specify a value, the default is 50.
KnownInputs (list) --
The information that the synthetic customer knows and provides when asked, such as a reservation number. You can specify up to 20 inputs.
(dict) --
Contains a named value that the synthetic customer provides when asked.
InputName (string) -- [REQUIRED]
The name of the input, for example ReservationId.
InputValue (string) -- [REQUIRED]
The value of the input.
string
The name of the test case.
string
The description of the test case.
string
Indicates the test status as either SAVED or PUBLISHED. The PUBLISHED status will initiate validation on the content. The SAVED status does not initiate validation of the content.
datetime
The time at which the resource was last modified.
string
The region in which the resource was last modified
dict
Response Syntax
{}
Response Structure
(dict) --
{'Visibility': {'PUBLIC'}}
Updates the visibility setting of a workspace, controlling whether it is available to all users, assigned users only, or none.
See also: AWS API Documentation
Request Syntax
client.update_workspace_visibility(
InstanceId='string',
WorkspaceId='string',
Visibility='ALL'|'ASSIGNED'|'PUBLIC'|'NONE'
)
string
[REQUIRED]
The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
string
[REQUIRED]
The identifier of the workspace.
string
[REQUIRED]
The visibility setting for the workspace. Valid values are: ALL (available to all users), ASSIGNED (available only to assigned users and routing profiles), PUBLIC (available to end customers who sign in with a customer profile), and NONE (not visible to any users).
dict
Response Syntax
{}
Response Structure
(dict) --