Reputation: 2543
I haven't seen any examples yet of this being done. I have a traditional Bot Framework Teams bot (C#) where I'm trying to enable some of these new enhancements.
Are there any restrictions in getting these to work outside of Teams AI Lib? Or any examples somewhere? Something I've tried which doesn't seem to work. I don't see any errors with the Activity being sent. In Teams the message does show up, just without any of the new labels:
var reply = MessageFactory.Text("Hello World");
reply.Entities = new List<Entity>
{
new Entity
{
Type = "https://schema.org/Message",
Properties = JObject.FromObject(new
{
@type = "Message",
@context = "https://schema.org",
additionalType = new[] { "AIGeneratedContent" } // Enables AI label
})
}
};
await stepContext.Context.SendActivityAsync(reply, cancellationToken);
Upvotes: 0
Views: 70