AvatarEditorService:GetRecommendedAssets() assetType does not affect results

When calling the following code, the recommended results are the same no matter what assetType you set for the first argument. This happens repeatedly for any contextAssetId.

print(game:GetService("AvatarEditorService"):GetRecommendedAssets(Enum.AvatarAssetType.Hat, 7178744611))

Expected behavior

As stated in the documentation:

assetType: [AvatarAssetType] - The type of asset recommendations to retrieve recommendations for.

I expect the results to only show only those that are of the same assetType set in the original parameters. Instead, it appears the assetType is being determined by the assetType of the contextAssetId.

Thanks for the report! We’ll follow up when we have an update for you.

3 Likes

Hello! Is there any update on this? I’m still experiencing this issue as of 6/19/2023 and it is preventing me from continuing on a project.

1 Like

Still experiencing this issue as of 11/24/23.

The documentation is misleading and the results are inaccurate. Any ETA as to when this will actually be looked at?

Hey @rk_dev,

Sorry about the delay with getting back to you here. I’ve spoken with the team and the behavior you reported is currently expected. I went ahead and updated the API summary for GetRecommendedAssets to hopefully be a bit more clear on the expected behavior.

If you think this might need a bit more additional context in the documentation, feel free to submit an edit request by clicking the edit button on the top right of that documentation page!

Thanks!

1 Like

Thank you so much for the response!

Only affects the response when item based recommendations don’t exist for the given contextAssetId.

When would this be the case? Is there any way to get targeted recommendations based off of asset type for an asset id regardless of whether or not it already has a recommendation set?

My only intent for this API would be for the above use case, allowing users to find asset type recommendations for any asset id.