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

[Rendering] When running adaptive cards on Copilot Studio - Keeps retrieving data even though its already submitted #9101

Open
sebbiechu opened this issue Jan 30, 2025 · 4 comments

Comments

@sebbiechu
Copy link

Target Application

Copilot Studio

Application Operating System

Windows

Schema Version

1.5

Problem Description

When asking the bot a question it starts retrieving the information and sends it back. However, it still shows the retrieving message. It seems like it's in a constant loop but I don't know why.

The current setup up is the bot uses knowledge we've provided via documents and internal systems. It then processes this information and then creates a generative answer which doesn't actually answer but is stored as a variable. We then added a adaptive card and added the variables in there.

Hope that makes sense. I provided a screenshot of the flow.

Image

Image

Expected Outcome

What should happen is the bot provides the information and waits for the next query from the user. It shouldn't continue running as a loop.

Actual Outcome

The bot just sticks in a loop with no error message.

Card JSON

{
  "type": "AdaptiveCard",
  "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
  "version": "1.5",
  "body": [
    {
      "type": "TextBlock",
      "text": "${var_Citations}",
      "wrap": true
    },
    {
      "type": "TextBlock",
      "text": "---",
      "wrap": true,
      "spacing": "auto"
    },
    {
      "type": "TextBlock",
      "text": "⚠️ **Warning**: This chatbot's responses are AI-generated, based on available information, and may contain errors or omissions. Please verify with trusted sources before making decisions. Use at your discretion.",
      "wrap": true
    }
  ],
  "actions": [
    {
      "type": "Action.Submit",
      "title": "Dismiss",
      "data": {
        "action": "dismiss"
      }
    }
  ],
  "refresh": {
    "action": {
      "type": "Action.Submit",
      "title": "Refresh",
      "data": {
        "refresh": false
      }
    }
  }
}

Repro Steps

No response

@Meghana-MSFT
Copy link

Hi @sebbiechu - Could you please share the documents referred and repro steps to check this issue.

@sebbiechu
Copy link
Author

Hi @Meghana-MSFT I’m unable to provide them as they are company files containing sensitive information.

@Meghana-MSFT
Copy link

@sebbiechu - By document I mean Microsoft documentation you have followed to set up bot and send adaptive card.
Please share the steps you followed to create bot, feeding the bot with knowledge and sending adaptive card.

The current setup up is the bot uses knowledge we've provided via documents and internal systems.

Please do not share your company's sensitive documents.

@ritwickbhargav80
Copy link

ritwickbhargav80 commented Feb 1, 2025

Hi @sebbiechu ,

That's the behaviour in Copilot Studio, what we've observed as well. But if you deploy it in a channel then it shouldn't happen. I guess you'll be deploying the bot somewhere for the client, please check post deploying either in there dev/test or you can even check in "Demo Website" channel as well.

Also, this behavior is from "Create Generative Answers" and not related to Adaptive Card. If you'll remove the Adaptive Card and just add "Send a message" with plain text, you'll see the same behaviour.

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

No branches or pull requests

3 participants