web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Copilot Studio - Publish & Channel Management
Suggested answer

Incorrect answer in Teams

(0) ShareShare
ReportReport
Posted on by
I have an agent in Copilot Studio. When I test it in the development environment, it answers my question correctly, retrieving the correct file from SharePoint. However, when I deploy this agent to a user in Microsoft Teams, that user reports that the same agent answers the question incorrectly, retrieving the answer from the wrong file. I've already published the agent, removed the channel, and recreated it. I've even asked the user to delete the agent from Teams and add it again, but nothing has worked. Does anyone have any ideas on how to resolve this?
Categories:
I have the same question (0)
  • Suggested answer
    Sam_Fawzi Profile Picture
    673 Super User 2025 Season 2 on at
    Incorrect answer in Teams

    What you’re seeing is usually caused by the channel context and user permissions, not the agent logic itself.
     
    A few things to check:
    1.    Same environment & same version?
    Make sure the Teams channel is pointing to the same environment (and same agent) you test in Copilot Studio. If there’s a copy of the agent in another environment, Teams might be using that one.
     
    2.    User’s SharePoint permissions
    In Teams, the agent runs with the end user’s permissions. If that user has different access than you (extra sites, fewer files, etc.), the knowledge search can pick a different file.
    • Ask the user to open the “wrong” file and confirm where it lives.
    • Compare their permissions and your own on both the “correct” and “wrong” files.
     
    3.    Check the actual Teams conversation in Monitor
    In Copilot Studio → your agent → Monitor → Conversations, open the session from that Teams user.
    • Expand the steps and see which knowledge source/file was used.
    • If the wrong library or site is being hit, tighten the knowledge source scope or its description so the planner prefers the right source.
     
    4.    Disable any extra knowledge/web search
    If web search or other knowledge sources are enabled, temporarily turn them off and test again so the agent can only answer from the intended SharePoint source.
    Once you know which file/knowledge source Teams is actually using for that user, it’s usually a permissions or routing/description issue that you can correct.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Coming soon: forum hierarchy changes

In our never-ending quest to improve we are simplifying the forum hierarchy…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Copilot Studio

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 335 Super User 2025 Season 2

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 289 Super User 2025 Season 2

#3
S-Venkadesh Profile Picture

S-Venkadesh 81 Moderator

Last 30 days Overall leaderboard

Featured topics