Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to configure custom AI labels in bot turn context activity entity #6673

Open
Aiswarya1794 opened this issue Sep 21, 2024 · 1 comment
Open
Assignees
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.

Comments

@Aiswarya1794
Copy link

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.

@Aiswarya1794 Aiswarya1794 added 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. labels Sep 21, 2024
@Aiswarya1794
Copy link
Author

Could anyone help on this. Can we make that AI generated value to be configurable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.
Projects
None yet
Development

No branches or pull requests

2 participants