public async Task UpdateCatalogFilterUserStateWithTagsAsync(ITurnContext context) { var userState = context.GetUserState <UserInfo>(); var imageFile = await attachmentService.DownloadAttachmentFromActivityAsync(context.Activity); var tags = Enumerable.Empty <string>(); if (imageFile != null) { tags = await productSearchImageService.ClassifyImageAsync(imageFile); } if (userState.CatalogFilter == null) { userState.CatalogFilter = new CatalogFilterData(); } userState.CatalogFilter.Tags = tags.ToArray(); }