{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-connect/json-schema/amazon-connect-create-evaluation-form-request-schema.json",
  "title": "CreateEvaluationFormRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-connect-evaluation-forms-api-openapi.yml#/components/schemas/CreateEvaluationFormRequest",
  "type": "object",
  "properties": {
    "InstanceId": {
      "type": "string",
      "description": "The identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance."
    },
    "Title": {
      "type": "string",
      "description": "A title of the evaluation form."
    },
    "Description": {
      "type": "string",
      "description": "The description of the evaluation form."
    },
    "Items": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/EvaluationFormItem"
      },
      "description": "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."
    },
    "ScoringStrategy": {
      "$ref": "#/$defs/EvaluationFormScoringStrategy"
    },
    "AutoEvaluationConfiguration": {
      "$ref": "#/$defs/EvaluationFormAutoEvaluationConfiguration"
    },
    "ClientToken": {
      "type": "string",
      "description": "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."
    },
    "AsDraft": {
      "type": "boolean",
      "description": "A boolean flag indicating whether to create evaluation form in draft state."
    },
    "Tags": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "The tags used to organize, track, or control access for this resource. For example, { \"Tags\": {\"key1\":\"value1\", \"key2\":\"value2\"} }."
    },
    "ReviewConfiguration": {
      "$ref": "#/$defs/EvaluationReviewConfiguration"
    },
    "TargetConfiguration": {
      "$ref": "#/$defs/EvaluationFormTargetConfiguration"
    },
    "LanguageConfiguration": {
      "$ref": "#/$defs/EvaluationFormLanguageConfiguration"
    },
    "AIVersion": {
      "type": "string",
      "description": "The AI version to use for the evaluation form. This specifies which AI model version is used for automated evaluations."
    }
  },
  "required": [
    "InstanceId",
    "Title",
    "Items"
  ],
  "$defs": {
    "AutomaticFailConfiguration": {
      "type": "object",
      "properties": {
        "TargetSection": {
          "type": "string",
          "description": "The referenceId of the target section for auto failure."
        }
      }
    },
    "EvaluationFormAutoEvaluationConfiguration": {
      "type": "object",
      "properties": {
        "Enabled": {
          "type": "boolean",
          "description": "When automated evaluation is enabled."
        }
      },
      "required": [
        "Enabled"
      ]
    },
    "EvaluationFormItem": {
      "type": "object",
      "properties": {
        "Section": {
          "$ref": "#/$defs/EvaluationFormSection"
        },
        "Question": {
          "$ref": "#/$defs/EvaluationFormQuestion"
        }
      },
      "description": "Exactly one member is set."
    },
    "EvaluationFormItemEnablementCondition": {
      "type": "object",
      "properties": {
        "Operands": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/EvaluationFormItemEnablementConditionOperand"
          },
          "description": "Operands of the enablement condition."
        },
        "Operator": {
          "type": "string",
          "enum": [
            "OR",
            "AND"
          ],
          "description": "The operator to be used to be applied to operands if more than one provided."
        }
      },
      "required": [
        "Operands"
      ]
    },
    "EvaluationFormItemEnablementConditionOperand": {
      "type": "object",
      "properties": {
        "Expression": {
          "$ref": "#/$defs/EvaluationFormItemEnablementExpression"
        },
        "Condition": {
          "$ref": "#/$defs/EvaluationFormItemEnablementCondition"
        }
      },
      "description": "Exactly one member is set."
    },
    "EvaluationFormItemEnablementConfiguration": {
      "type": "object",
      "properties": {
        "Condition": {
          "$ref": "#/$defs/EvaluationFormItemEnablementCondition"
        },
        "Action": {
          "type": "string",
          "enum": [
            "DISABLE",
            "ENABLE"
          ],
          "description": "An enablement action that if condition is satisfied."
        },
        "DefaultAction": {
          "type": "string",
          "enum": [
            "DISABLE",
            "ENABLE"
          ],
          "description": "An enablement action that if condition is not satisfied."
        }
      },
      "required": [
        "Condition",
        "Action"
      ]
    },
    "EvaluationFormItemEnablementExpression": {
      "type": "object",
      "properties": {
        "Source": {
          "$ref": "#/$defs/EvaluationFormItemEnablementSource"
        },
        "Values": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/EvaluationFormItemEnablementSourceValue"
          },
          "description": "A list of values from source item."
        },
        "Comparator": {
          "type": "string",
          "enum": [
            "IN",
            "NOT_IN",
            "ALL_IN",
            "EXACT"
          ],
          "description": "A comparator to be used against list of values."
        }
      },
      "required": [
        "Source",
        "Values",
        "Comparator"
      ]
    },
    "EvaluationFormItemEnablementSource": {
      "type": "object",
      "properties": {
        "Type": {
          "type": "string",
          "enum": [
            "QUESTION_REF_ID"
          ],
          "description": "A type of source item."
        },
        "RefId": {
          "type": "string",
          "description": "A referenceId of the source item."
        }
      },
      "required": [
        "Type"
      ]
    },
    "EvaluationFormItemEnablementSourceValue": {
      "type": "object",
      "properties": {
        "Type": {
          "type": "string",
          "enum": [
            "OPTION_REF_ID"
          ],
          "description": "A type of source item value."
        },
        "RefId": {
          "type": "string",
          "description": "A referenceId of the source value."
        }
      },
      "required": [
        "Type"
      ]
    },
    "EvaluationFormLanguageConfiguration": {
      "type": "object",
      "properties": {
        "FormLanguage": {
          "type": "string",
          "enum": [
            "de-DE",
            "en-US",
            "es-ES",
            "fr-FR",
            "it-IT",
            "pt-BR",
            "ja-JP",
            "ko-KR",
            "zh-CN",
            "ms-MY"
          ],
          "description": "The language for the evaluation form."
        }
      }
    },
    "EvaluationFormMetricConfiguration": {
      "type": "object",
      "properties": {
        "MetricType": {
          "type": "string",
          "enum": [
            "BUSINESS_OUTCOME"
          ],
          "description": "The type of metric. Currently, only BUSINESS_OUTCOME is supported."
        },
        "MetricName": {
          "type": "string",
          "description": "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."
        }
      },
      "required": [
        "MetricType",
        "MetricName"
      ]
    },
    "EvaluationFormMultiSelectQuestionAutomation": {
      "type": "object",
      "properties": {
        "Options": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/EvaluationFormMultiSelectQuestionAutomationOption"
          },
          "description": "Automation options for the multi-select question."
        },
        "DefaultOptionRefIds": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Reference IDs of default options."
        },
        "AnswerSource": {
          "$ref": "#/$defs/EvaluationFormQuestionAutomationAnswerSource"
        }
      }
    },
    "EvaluationFormMultiSelectQuestionAutomationOption": {
      "type": "object",
      "properties": {
        "RuleCategory": {
          "$ref": "#/$defs/MultiSelectQuestionRuleCategoryAutomation"
        }
      },
      "description": "Exactly one member is set."
    },
    "EvaluationFormMultiSelectQuestionOption": {
      "type": "object",
      "properties": {
        "RefId": {
          "type": "string",
          "description": "Reference identifier for this option."
        },
        "Text": {
          "type": "string",
          "description": "Display text for this option."
        },
        "Score": {
          "type": "integer",
          "description": "The score assigned to the answer option."
        },
        "AutomaticFail": {
          "type": "boolean",
          "description": "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": {
          "$ref": "#/$defs/AutomaticFailConfiguration"
        },
        "PointsConfiguration": {
          "$ref": "#/$defs/QuestionOptionPointsConfiguration"
        }
      },
      "required": [
        "RefId",
        "Text"
      ]
    },
    "EvaluationFormMultiSelectQuestionProperties": {
      "type": "object",
      "properties": {
        "Options": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/EvaluationFormMultiSelectQuestionOption"
          },
          "description": "Options available for this multi-select question."
        },
        "DisplayAs": {
          "type": "string",
          "enum": [
            "DROPDOWN",
            "CHECKBOX"
          ],
          "description": "Display format for the multi-select question."
        },
        "Automation": {
          "$ref": "#/$defs/EvaluationFormMultiSelectQuestionAutomation"
        }
      },
      "required": [
        "Options"
      ]
    },
    "EvaluationFormNumericQuestionAutomation": {
      "type": "object",
      "properties": {
        "PropertyValue": {
          "$ref": "#/$defs/NumericQuestionPropertyValueAutomation"
        },
        "AnswerSource": {
          "$ref": "#/$defs/EvaluationFormQuestionAutomationAnswerSource"
        }
      },
      "description": "Exactly one member is set."
    },
    "EvaluationFormNumericQuestionOption": {
      "type": "object",
      "properties": {
        "MinValue": {
          "type": "integer",
          "description": "The minimum answer value of the range option."
        },
        "MaxValue": {
          "type": "integer",
          "description": "The maximum answer value of the range option."
        },
        "Score": {
          "type": "integer",
          "description": "The score assigned to answer values within the range option."
        },
        "AutomaticFail": {
          "type": "boolean",
          "description": "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": {
          "$ref": "#/$defs/AutomaticFailConfiguration"
        },
        "PointsConfiguration": {
          "$ref": "#/$defs/QuestionOptionPointsConfiguration"
        }
      },
      "required": [
        "MinValue",
        "MaxValue"
      ]
    },
    "EvaluationFormNumericQuestionProperties": {
      "type": "object",
      "properties": {
        "MinValue": {
          "type": "integer",
          "description": "The minimum answer value."
        },
        "MaxValue": {
          "type": "integer",
          "description": "The maximum answer value."
        },
        "Options": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/EvaluationFormNumericQuestionOption"
          },
          "description": "The scoring options of the numeric question."
        },
        "Automation": {
          "$ref": "#/$defs/EvaluationFormNumericQuestionAutomation"
        }
      },
      "required": [
        "MinValue",
        "MaxValue"
      ]
    },
    "EvaluationFormQuestion": {
      "type": "object",
      "properties": {
        "Title": {
          "type": "string",
          "description": "The title of the question."
        },
        "Instructions": {
          "type": "string",
          "description": "The instructions of the section."
        },
        "RefId": {
          "type": "string",
          "description": "The identifier of the question. An identifier must be unique within the evaluation form."
        },
        "NotApplicableEnabled": {
          "type": "boolean",
          "description": "The flag to enable not applicable answers to the question."
        },
        "QuestionType": {
          "type": "string",
          "enum": [
            "TEXT",
            "SINGLESELECT",
            "NUMERIC",
            "MULTISELECT",
            "DATETIME"
          ],
          "description": "The type of the question."
        },
        "QuestionTypeProperties": {
          "$ref": "#/$defs/EvaluationFormQuestionTypeProperties"
        },
        "Enablement": {
          "$ref": "#/$defs/EvaluationFormItemEnablementConfiguration"
        },
        "Weight": {
          "type": "number",
          "description": "The scoring weight of the section."
        },
        "ScoringConfiguration": {
          "$ref": "#/$defs/EvaluationFormQuestionScoringConfiguration"
        },
        "MetricConfiguration": {
          "$ref": "#/$defs/EvaluationFormMetricConfiguration"
        }
      },
      "required": [
        "Title",
        "RefId",
        "QuestionType"
      ]
    },
    "EvaluationFormQuestionAutomationAnswerSource": {
      "type": "object",
      "properties": {
        "SourceType": {
          "type": "string",
          "enum": [
            "CONTACT_LENS_DATA",
            "GEN_AI"
          ],
          "description": "The automation answer source type."
        }
      },
      "required": [
        "SourceType"
      ]
    },
    "EvaluationFormQuestionScoringConfiguration": {
      "type": "object",
      "properties": {
        "PointsConfiguration": {
          "$ref": "#/$defs/QuestionPointsConfiguration"
        },
        "IsExcludedFromScoring": {
          "type": "boolean",
          "description": "The flag to exclude the question from scoring."
        },
        "ScoreThresholds": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/EvaluationFormScoreThreshold"
          },
          "description": "The score thresholds for performance categories."
        }
      }
    },
    "EvaluationFormQuestionTypeProperties": {
      "type": "object",
      "properties": {
        "Numeric": {
          "$ref": "#/$defs/EvaluationFormNumericQuestionProperties"
        },
        "SingleSelect": {
          "$ref": "#/$defs/EvaluationFormSingleSelectQuestionProperties"
        },
        "Text": {
          "$ref": "#/$defs/EvaluationFormTextQuestionProperties"
        },
        "MultiSelect": {
          "$ref": "#/$defs/EvaluationFormMultiSelectQuestionProperties"
        }
      },
      "description": "Exactly one member is set."
    },
    "EvaluationFormScoreThreshold": {
      "type": "object",
      "properties": {
        "PerformanceCategory": {
          "type": "string",
          "enum": [
            "NEEDS_IMPROVEMENT",
            "EXCEEDS_EXPECTATIONS"
          ],
          "description": "The performance category name."
        },
        "MinScorePercentage": {
          "type": "number",
          "description": "The minimum score percentage for the performance category."
        },
        "MaxScorePercentage": {
          "type": "number",
          "description": "The maximum score percentage for the performance category."
        }
      },
      "required": [
        "PerformanceCategory"
      ]
    },
    "EvaluationFormScoringStrategy": {
      "type": "object",
      "properties": {
        "Mode": {
          "type": "string",
          "enum": [
            "QUESTION_ONLY",
            "SECTION_ONLY",
            "POINTS_BASED"
          ],
          "description": "The scoring mode of the evaluation form."
        },
        "Status": {
          "type": "string",
          "enum": [
            "ENABLED",
            "DISABLED"
          ],
          "description": "The scoring status of the evaluation form."
        },
        "ScoreThresholds": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/EvaluationFormScoreThreshold"
          },
          "description": "The score thresholds for performance categories."
        }
      },
      "required": [
        "Mode",
        "Status"
      ]
    },
    "EvaluationFormSection": {
      "type": "object",
      "properties": {
        "Title": {
          "type": "string",
          "description": "The title of the section."
        },
        "RefId": {
          "type": "string",
          "description": "The identifier of the section. An identifier must be unique within the evaluation form."
        },
        "Instructions": {
          "type": "string",
          "description": "The instructions of the section."
        },
        "Items": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/EvaluationFormItem"
          },
          "description": "The items of the section."
        },
        "Weight": {
          "type": "number",
          "description": "The scoring weight of the section."
        },
        "IsExcludedFromScoring": {
          "type": "boolean",
          "description": "The flag to exclude the section from scoring."
        },
        "ScoreThresholds": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/EvaluationFormScoreThreshold"
          },
          "description": "The score thresholds for performance categories."
        }
      },
      "required": [
        "Title",
        "RefId",
        "Items"
      ]
    },
    "EvaluationFormSingleSelectQuestionAutomation": {
      "type": "object",
      "properties": {
        "Options": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/EvaluationFormSingleSelectQuestionAutomationOption"
          },
          "description": "The automation options of the single select question."
        },
        "DefaultOptionRefId": {
          "type": "string",
          "description": "The identifier of the default answer option, when none of the automation options match the criteria."
        },
        "AnswerSource": {
          "$ref": "#/$defs/EvaluationFormQuestionAutomationAnswerSource"
        }
      }
    },
    "EvaluationFormSingleSelectQuestionAutomationOption": {
      "type": "object",
      "properties": {
        "RuleCategory": {
          "$ref": "#/$defs/SingleSelectQuestionRuleCategoryAutomation"
        }
      },
      "description": "Exactly one member is set."
    },
    "EvaluationFormSingleSelectQuestionOption": {
      "type": "object",
      "properties": {
        "RefId": {
          "type": "string",
          "description": "The identifier of the answer option. An identifier must be unique within the question."
        },
        "Text": {
          "type": "string",
          "description": "The title of the answer option."
        },
        "Score": {
          "type": "integer",
          "description": "The score assigned to the answer option."
        },
        "AutomaticFail": {
          "type": "boolean",
          "description": "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": {
          "$ref": "#/$defs/AutomaticFailConfiguration"
        },
        "PointsConfiguration": {
          "$ref": "#/$defs/QuestionOptionPointsConfiguration"
        }
      },
      "required": [
        "RefId",
        "Text"
      ]
    },
    "EvaluationFormSingleSelectQuestionProperties": {
      "type": "object",
      "properties": {
        "Options": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/EvaluationFormSingleSelectQuestionOption"
          },
          "description": "The answer options of the single select question."
        },
        "DisplayAs": {
          "type": "string",
          "enum": [
            "DROPDOWN",
            "RADIO"
          ],
          "description": "The display mode of the single select question."
        },
        "Automation": {
          "$ref": "#/$defs/EvaluationFormSingleSelectQuestionAutomation"
        }
      },
      "required": [
        "Options"
      ]
    },
    "EvaluationFormTargetConfiguration": {
      "type": "object",
      "properties": {
        "ContactInteractionType": {
          "type": "string",
          "enum": [
            "AGENT",
            "AUTOMATED",
            "CUSTOMER"
          ],
          "description": "The contact interaction type for this evaluation form."
        }
      },
      "required": [
        "ContactInteractionType"
      ]
    },
    "EvaluationFormTextQuestionAutomation": {
      "type": "object",
      "properties": {
        "AnswerSource": {
          "$ref": "#/$defs/EvaluationFormQuestionAutomationAnswerSource"
        }
      }
    },
    "EvaluationFormTextQuestionProperties": {
      "type": "object",
      "properties": {
        "Automation": {
          "$ref": "#/$defs/EvaluationFormTextQuestionAutomation"
        }
      }
    },
    "EvaluationReviewConfiguration": {
      "type": "object",
      "properties": {
        "ReviewNotificationRecipients": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/EvaluationReviewNotificationRecipient"
          },
          "description": "List of recipients who should be notified when a review is requested."
        },
        "EligibilityDays": {
          "type": "integer",
          "description": "Number of days during which a request for review can be submitted for evaluations created from this form."
        }
      },
      "required": [
        "ReviewNotificationRecipients"
      ]
    },
    "EvaluationReviewNotificationRecipient": {
      "type": "object",
      "properties": {
        "Type": {
          "type": "string",
          "enum": [
            "USER_ID"
          ],
          "description": "The type of notification recipient."
        },
        "Value": {
          "$ref": "#/$defs/EvaluationReviewNotificationRecipientValue"
        }
      },
      "required": [
        "Type",
        "Value"
      ]
    },
    "EvaluationReviewNotificationRecipientValue": {
      "type": "object",
      "properties": {
        "UserId": {
          "type": "string",
          "description": "The user identifier for the notification recipient."
        }
      }
    },
    "MultiSelectQuestionRuleCategoryAutomation": {
      "type": "object",
      "properties": {
        "Category": {
          "type": "string",
          "description": "The category name for this automation rule."
        },
        "Condition": {
          "type": "string",
          "enum": [
            "PRESENT",
            "NOT_PRESENT"
          ],
          "description": "The condition for this automation rule."
        },
        "OptionRefIds": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Reference IDs of options for this automation rule."
        }
      },
      "required": [
        "Category",
        "Condition",
        "OptionRefIds"
      ]
    },
    "NumericQuestionPropertyValueAutomation": {
      "type": "object",
      "properties": {
        "Label": {
          "type": "string",
          "enum": [
            "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"
          ],
          "description": "The property label of the automation."
        }
      },
      "required": [
        "Label"
      ]
    },
    "QuestionOptionPointsConfiguration": {
      "type": "object",
      "properties": {
        "PointValue": {
          "type": "integer",
          "description": "The point value assigned to the answer option."
        },
        "IsBonus": {
          "type": "boolean",
          "description": "The flag to mark the option as a bonus option."
        }
      },
      "required": [
        "PointValue"
      ]
    },
    "QuestionPointsConfiguration": {
      "type": "object",
      "properties": {
        "MaxPointValue": {
          "type": "integer",
          "description": "The maximum point value."
        },
        "MinPointValue": {
          "type": "integer",
          "description": "The minimum point value."
        },
        "IsBonus": {
          "type": "boolean",
          "description": "The flag to mark the question as a bonus question."
        }
      }
    },
    "SingleSelectQuestionRuleCategoryAutomation": {
      "type": "object",
      "properties": {
        "Category": {
          "type": "string",
          "description": "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": {
          "type": "string",
          "enum": [
            "PRESENT",
            "NOT_PRESENT"
          ],
          "description": "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": {
          "type": "string",
          "description": "The identifier of the answer option."
        }
      },
      "required": [
        "Category",
        "Condition",
        "OptionRefId"
      ]
    }
  }
}