{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-connect/json-schema/amazon-connect-get-profile-recommendations-request-schema.json",
  "title": "GetProfileRecommendationsRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-connect-operations-api-openapi.yml#/components/schemas/GetProfileRecommendationsRequest",
  "type": "object",
  "properties": {
    "DomainName": {
      "type": "string",
      "description": "The unique name of the domain."
    },
    "ProfileId": {
      "type": "string",
      "description": "The unique identifier of the profile for which to retrieve recommendations."
    },
    "RecommenderName": {
      "type": "string",
      "description": "The unique name of the recommender."
    },
    "Context": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "The contextual metadata used to provide dynamic runtime information to tailor recommendations."
    },
    "RecommenderFilters": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/RecommenderFilter"
      },
      "description": "A list of filters to apply to the returned recommendations. Filters define criteria for including or excluding items from the recommendation results."
    },
    "RecommenderPromotionalFilters": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/RecommenderPromotionalFilter"
      },
      "description": "A list of promotional filters to apply to the recommendations. Promotional filters allow you to promote specific items within a configurable subset of recommendation results."
    },
    "CandidateIds": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "A list of item IDs to rank for the user. Use this when you want to re-rank a specific set of items rather than getting recommendations from the full item catalog. Required for personalized-ranking use cases."
    },
    "MaxResults": {
      "type": "integer",
      "description": "The maximum number of recommendations to return. The default value is 10."
    },
    "MetadataConfig": {
      "$ref": "#/$defs/MetadataConfig"
    },
    "DiversityConfig": {
      "$ref": "#/$defs/RecommendationDiversityConfig"
    }
  },
  "required": [
    "DomainName",
    "ProfileId",
    "RecommenderName"
  ],
  "$defs": {
    "MetadataConfig": {
      "type": "object",
      "properties": {
        "MetadataColumns": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "A list of metadata column names from your Items dataset to include in the recommendation response."
        }
      }
    },
    "RecommendationDiversityConfig": {
      "type": "object",
      "properties": {
        "Enabled": {
          "type": "boolean",
          "description": "Whether diversity-aware recommendations are enabled for this request."
        },
        "Values": {
          "type": "object",
          "additionalProperties": {
            "type": "integer"
          },
          "description": "An optional map of placeholder name to integer cap value used to resolve $name placeholders defined in the recommender's DiversityConfig at inference time. Up to 2 entries are supported."
        }
      },
      "required": [
        "Enabled"
      ]
    },
    "RecommenderFilter": {
      "type": "object",
      "properties": {
        "Name": {
          "type": "string",
          "description": "The name of the recommender filter to apply."
        },
        "Values": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "The values to use when filtering recommendations. For each placeholder parameter in your filter expression, provide the parameter name (in matching case) as a key and the filter value(s) as the corresponding value. Separate multiple values for one parameter with a comma."
        }
      }
    },
    "RecommenderPromotionalFilter": {
      "type": "object",
      "properties": {
        "Name": {
          "type": "string",
          "description": "The name of the recommender filter to use for the promotion."
        },
        "Values": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "The values to use when promoting items. For each placeholder parameter in your promotion's filter expression, provide the parameter name (in matching case) as a key and the filter value(s) as the corresponding value. Separate multiple values for one parameter with a comma."
        },
        "PromotionName": {
          "type": "string",
          "description": "The name of the promotion."
        },
        "PercentPromotedItems": {
          "type": "integer",
          "description": "The percentage of recommended items to apply the promotion to."
        }
      }
    }
  }
}