To ensure that the AI-generated content label appears in your bot's messages using the Microsoft Bot Framework SDK, please verify the following:
- Correct Implementation: Ensure that the
additionalTypeproperty is correctly set in theentitiesarray of the message entity object, as shown in your provided code snippet. The value should beAIGeneratedContent. - Message Format: The message must be structured correctly as per the requirements of the Microsoft Teams platform. Ensure that there are no additional root message entities that could cause a conflict.
- Bot Framework Version: You are using version 4.23.3 of the botbuilder library, which should support this feature. However, ensure that you are using the latest version if possible, as updates may include important bug fixes or enhancements.
- Testing Environment: Make sure you are testing in a compatible environment (Microsoft Teams desktop) and that your Teams client is up to date.
- Error Handling: Check for any errors in the console or logs that might indicate issues with the message being sent. The error code
400may indicate problems with the message entity structure.
If you have verified all of the above and the label still does not appear, consider reaching out to Microsoft support or checking the community forums for additional assistance.
References: