Currently it is not possible to customize the AI label added to your bot message which specifies that the message is generated by AI.
To achieve your requirements, we recommend you give your feedback in Teams Feedback Portal.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi Team,
We have referred the MS document for adding AI label in turn context activity, https://learn.microsoft.com/en-us/microsoftteams/platform/bots/how-to/bot-messages-ai-generated-content?tabs=before%2Cbotmessage
var aiGeneratedContent = new JObject
{
{ "type", "https://schema.org/Message" },
{ "@type", "Message" },
{ "@context", "https://schema.org" },
{ "additionalType", new JArray("AIGeneratedContent") },
};
var entity = new Entity { Properties = aiGeneratedContent };
var messageActivity = MessageFactory.Text(openAiResponse);
messageActivity.Entities.Add(entity);
await stepContext.Context.SendActivityAsync(messageActivity, cancellationToken);
We were able to get the AI label in the bot as below
Is it possible to customize the message 'AI-generated content may be incorrect'. We wanted to make the message to be configurable so that we can change if its needed.
We tried to add the below property in the entity to just check whether it will update the ai label message but it didnt worked,
"customGeneratedBy", "This answer is generated by AI" }
Is that possible using ai label entity feature
Currently it is not possible to customize the AI label added to your bot message which specifies that the message is generated by AI.
To achieve your requirements, we recommend you give your feedback in Teams Feedback Portal.