How to configure custom AI labels in bot turn context activity entity #6673
Labels
feature-request
A request for new functionality or an enhancement to an existing one.
needs-triage
The issue has just been created and it has not been reviewed by the team.
Hi Team,
We have referred the MS document for adding AI label in turn context activity, and it worked when we give AIGeneratedContent in the additional type.
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);`
In document its mentioned that 'Enables the AI label in the bot message. The only allowed value is AIGeneratedContent.'
So is it possible to customize this message so that we can provide a different message for indicating that its an AI generated answer.
The text was updated successfully, but these errors were encountered: