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

AI Label is not showing for message after bot gives adaptive card #11871

Open
faidhi066 opened this issue Nov 28, 2024 · 1 comment
Open

AI Label is not showing for message after bot gives adaptive card #11871

faidhi066 opened this issue Nov 28, 2024 · 1 comment
Assignees
Labels

Comments

@faidhi066
Copy link

Type of issue

Missing information

Feedback

image
The picture above has the ai generated label. But not the bottom when its after card submission

image
This picture doesn't have ai generated label.

Can you help me how can I bring up the label in the second picture as well

This is how I am sending the message:

try {
          const kijangResponse = await generateAnswerOptionsKijang(payload);
          // statusCode
          if (kijangResponse.statusCode === 200) {
            // loggerDevLog.info(`Success 200`);
            console.log("HERE");
            // ANSWER
            const answer = kijangResponse.data.answer;
            await context.sendActivity({
              text: answer,
              channelData: {
                feedbackLoopEnabled: true, // Enable feedback buttons
              },
              entities: [
                {
                  type: "https://schema.org/Message",
                  "@type": "Message",
                  "@context": "https://schema.org",
                  additionalType: ["AIGeneratedContent"], // Enables AI label
                },
              ],
            });

Page URL

https://learn.microsoft.com/en-us/microsoftteams/platform/bots/how-to/bot-messages-ai-generated-content?tabs=before%2Cbotmessage

Content source URL

https://github.com/MicrosoftDocs/msteams-docs/blob/main/msteams-platform/bots/how-to/bot-messages-ai-generated-content.md

Author

@surbhigupta

Document Id

605a8486-6e6a-31d5-e8a1-021691206099

@Nivedipa-MSFT
Copy link

Nivedipa-MSFT commented Nov 28, 2024

@faidhi066 - Thank you for your inquiry about your Teams app development issue!
We have tested this scenario. When we add the following code in sendActivity, we do not receive the AI-generated label:

channelData: {
    feedbackLoopEnabled: true, // Enable feedback buttons
}

image

However, if we remove the feedbackLoopEnabled code, we do get the AI-generated label.

image

We have raised a bug for this issue, and our engineering team is currently investigating it.

We will keep you informed as soon as we have any updates. Thank you for your patience!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants