Comprehensive Detailed ExplanationThe requirement is to build an Adaptive Card for the chatbot that supports multilingual product display and meets accessibility requirements.
Product Name Display
The product JSON stores localized names like "name": { "en": "...", "es": "...", "pt": "..." }.
To dynamically render based on the current language, you must use name[language].
This ensures the product name shown in the card adapts automatically to the user’s preferred language.
Stock Level Warning
Business rules require warnings when stock is low or out of stock.
This means you display the stock warning only when stockLevel is not 'OK'.
Therefore, the correct condition is:"$when": "${stockLevel != 'OK'}"
Image Alt Text for Accessibility
Accessibility requirements specify that all images must have alt text in English, Spanish, and Portuguese.
To render the correct localized alt text dynamically, use image.altText[language].
Correct Selections:
First blank: name[language]
Second blank: "$when": "${stockLevel != 'OK'}"
Third blank: image.altText[language]
Adaptive Cards Templating
Adaptive Card $when property
Multilingual data in Azure Cognitive Search and Adaptive Cards
Microsoft References
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit