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 - Building Copilot Studio Chatbo...
Answered

Citations / references not showing in the chat in Teams but working in PVA

(5) ShareShare
ReportReport
Posted on by 24

Hello,

 

Is there a way to have the references/citations showing in a Teams Power App like it does in the PVA web app ?

Thank you

Chloe_lepez_0-1699539372525.png

 

I have the same question (0)
  • HenryJammes Profile Picture
    on at
    Re: Citations / references not showing in the chat in Teams but working in PVA

    Hi @Chloe_lepez -

     

    Can you clarify what you mean by Teams Power Apps?
    Can you share a screenshot?

     

    Henry

  • Chloe_lepez Profile Picture
    24 on at
    Re: Citations / references not showing in the chat in Teams but working in PVA

    Hello,

    I've created a Power App and added the chatbot and then added it in a Teams tab.

    But as you can see there is no citation anymore.

     

    Chloe_lepez_1-1699540037890.png

     

     

     

  • HenryJammes Profile Picture
    on at
    Re: Citations / references not showing in the chat in Teams but working in PVA

    Can you confirm you're using uploaded documents as the data source?

  • Chloe_lepez Profile Picture
    24 on at
    Re: Citations / references not showing in the chat in Teams but working in PVA

    Yes, I wasn't exactly sure because I created the blob storage, the cognitive search, index and everything else and it works correctly in the AI studio but when I click publish to VPA, I loose everything so I uploaded the files there.

    Chloe_lepez_0-1699541304488.png

     

  • Chloe_lepez Profile Picture
    24 on at
    Re: Citations / references not showing in the chat in Teams but working in PVA

    Hi @HenryJammes 

     

    Can you help me with that?

     

    Thank you,

     

    Chloé

  • HenryJammes Profile Picture
    on at
    Re: Citations / references not showing in the chat in Teams but working in PVA

    Hi @Chloe_lepez,

     

    Sounds like it's a gap from the Power Apps chatbot control that doesn't render citations.

    Because you're using uploaded documents, it's more complex than displaying a few URLs.

    I would advise you raise this in the Power Apps community but also to the Power Apps support by creating a support request: Get Help + Support in Power Platform - Power Platform | Microsoft Learn

     

    Henry

  • Chloe_lepez Profile Picture
    24 on at
    Re: Citations / references not showing in the chat in Teams but working in PVA

    Thank you @HenryJammes,

    I just had a call with them but we notice I also have the issue when I had the copilot bot to Teams as an app without going through power app so it's a VPA issue.

    Do they also have a support where I can send my problems?

     

    Thank you,

     

    Chloé

  • 365xMVP Profile Picture
    8 on at
    Re: Citations / references not showing in the chat in Teams but working in PVA

    @HenryJammes 

    I get the same thing and I am not using a power app. Just using Teams Chat and the PVA bot

  • Chloe_lepez Profile Picture
    24 on at
    Re: Citations / references not showing in the chat in Teams but working in PVA

    Yes same, I've added it to Teams through Copilot studio and the citations don't work. 

  • Verified answer
    HenryJammes Profile Picture
    on at
    Re: Citations / references not showing in the chat in Teams but working in PVA

    While this is getting addressed in-product, there is a workaround you can explore @Chloe_lepez@365xMVP.

    It's rebuilding the response and citations in an adaptive card format.

    Here's how you can do it, assuming you use generative answers in the Conversational boosting system topic.

     

    For that, the first thing you need to do is:

    1. Disabling the "Send a message" options in the "create generative answer node" properties.
    2. Set the "Save GPT response" as "Complete (recommended)"

    What this changes is getting the generated answer text as well as all the citations in the Topic.Answer variable (that becomes a Record variable instead of a String).

     

    HenryJammes_0-1701086892773.png

     

    Then, add a new message node after the "create generative answer" node, and add an "adaptive card" to it.

    Change the format from JSON to Formula and paste the below Power Fx formula:

     

    HenryJammes_1-1701087186139.png

     

     

    {
     type: "AdaptiveCard",
     '$schema': "http://adaptivecards.io/schemas/adaptive-card.json",
     version: "1.5",
     body: [
     {
     type: "Container",
     items: [
     {
     type: "TextBlock",
     text: Topic.Answer.Text.Content,
     wrap: true
     }
     ]
     },
     {
     type: "Container",
     items: ForAll(Topic.Answer.Text.CitationSources,
     {
     type: "TextBlock",
     text: "[" & Id &"]: [" & Name & "](" & Url & ")",
     wrap: true,
     size: "Small",
     weight: "Lighter"
     }
     )
     },
     {
     type: "Container",
     items: [
     {
     type: "ColumnSet",
     columns: [
     {
     type: "Column",
     width: "90",
     items: [
     {
     type: "TextBlock",
     text: "AI-generated answer.",
     wrap: true,
     size: "Small",
     color: "Accent"
     }
     ]
     }
     ]
     }
     ]
     }
     ]
    }

     

     

    The last thing you want to do is to update the condition to catch blank answers.

    Otherwise, blank answers are not exactly outputting as a blank record, but {}.

    Instead of the Topic.Answer variable, change it to the Topic.Answer.Text one:

     

    HenryJammes_2-1701087284488.png

     

    This is the end-result in Copilot Studio:

     

    HenryJammes_3-1701087389634.png

     

    And this is what the same looks like in Teams:

     

    HenryJammes_4-1701087534091.png

     

     

     

     

     

     

     

     

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Tom Macfarlan – Community Spotlight

We are honored to recognize Tom Macfarlan as our Community Spotlight for October…

Leaderboard > Copilot Studio

Last 30 days Overall leaderboard

Featured topics