Skip to main content

Notifications

Building Copilot Studio Chatbots in Microsoft T...
Answered

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

Posted on by 18

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

 

  • RM-05071235-0 Profile Picture
    RM-05071235-0 6 on at
    Citations / references not showing in the chat in Teams but working in PVA
    Hello HenryJammes ,
    I tried your workaround but unfortunately it doesnt work.
     
    The result is, in the Copilot Studio environment citations are no longer showing as clickable links, insted thay appear to be plain text.
    In Teams, however, beside the previous behaviour the system also returns an error message like this:
     
    Sorry, something unexpected happened. We’re looking into it. Error code: SystemError. Conversation ID: a:1oJ83Us81-82zcfTJzkAmnu5uYuj_7baSLZJ6v3C7rilMEaHYtxYILYCPJYMybKxhh472LanCQtc_5LpATOqO2YTrGkUpbZ5_iqJTgvVNKwt0UeyFoh3lM4vWf99OccdM. Time (UTC): 7/17/2024 7:57:59 AM.
     
    While the answer is something like this, where you can see that the citation numbers turn out to be plain text:
     
    Do you have any suggestion?
     
    Thank you in advance,
     
    Roberto
  • Suggested answer
    CU20060512-0 Profile Picture
    CU20060512-0 2 on at
    Citations / references not showing in the chat in Teams but working in PVA
    After implementation of @HenryJammes answer I'm encountering an error, how can we resolve?
     
  • shanepconnolly Profile Picture
    shanepconnolly 4 on at
    Re: Citations / references not showing in the chat in Teams but working in PVA

    Thanks for the response -solved the error but as you said, the links are still not clickable!

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

    Hi Shane. I also ran across this initially. You need to create a new message not 'ask with an adaptive card'.  Then within the Message card, select Add > Adaptive Card. 

     

    Even with doing this, the links are not clickable from Teams. 

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

    I couldn't find any way to eliminate the duplicate citations from the response body (the [1][2][3] pointing at the same document). I will keep playing around with it.

    For the footer of the card I used the below to only include distinct file names/URLs. its not perfect but a little better. 

    So it looks like this where [1][2][3] are the same. but it only lists it once in the source

    Giacamic_0-1712959611203.png

     

        {
          type: "Container",
          items: [
            {
              type: "ColumnSet",
              columns: [
                {
                  type: "Column",
                  width: "30",
          items: ForAll(Distinct(Topic.Answer.Text.CitationSources, Url),
            {
              type: "TextBlock",
              text: "[Source Document](" & Value & ")",
              wrap: true,
              size: "Small",
              weight: "Lighter"
            }
          )
                },
          {
                  type: "Column",
                  width: "150",
          items: ForAll(Distinct(Topic.Answer.Text.CitationSources, Name),
            {
              type: "TextBlock",
              text: Value,
              wrap: true,
              size: "Small",
              padding: 10,
              weight: "Lighter"
            }
          )
          }

     

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

    Hi,

     

    I am getting the below output errors once I enter the code - any ideas?

     

    Many thanks,

    Shane

     

    shanepconnolly_0-1712934331924.png

     

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

    Dear @HenryJammes  I use the method for Upload a document,And I got Empty Url like (“Url”:“”) for the Doc which I uploaded,and I use Formula find the Url in the Topic.Answer.Text.CitationSources 

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

    This works perfect in test, but links are not working in teams at all..

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

    @HenryJammes I got the same, I have the adaptive card working but it doesn't show the references.

    dannyche_0-1710648755505.png

    Thanks!

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

    i am getting the same issue. if there's any solution please share.

    SupriyaPandey_0-1710488041809.png

     


    @HenryJammes 

     

     

Helpful resources

Quick Links

Exciting News for Copilot Studio Communi…

Get ready to experience a whole new level of engagement with the Copilot Studio…

Celebrating the May Super User of the…

LaurensM is an exceptional contributor to the Power Platform Community…

Check out the Copilot Studio Cookbook…

We are excited to announce our new Copilot Cookbook Gallery in the Community…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 137,998

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 63,059

Leaderboard

Featured topics