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 20

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

 

  • Suggested answer
    SG-23081251-0 Profile Picture
    SG-23081251-0 2 on at
    Citations / references not showing in the chat in Teams but working in PVA
    After implementing the given "Answer", the copilot runs into error when unable to generate a correct response: Sorry, something unexpected happened. We’re looking into it. Error code: SystemError. Conversation ID: a:1W11BuWgmw9r6iGRu1mrag1sqZnNuS88i6muQIG6jneH1PW9lmjVf8-aeRXf_25K1fbgz_Bb34EbhorjKsvuhfG40r9naPXyuztwJu3IyxRJfzU1vMNaec5qV5BHxEQq6. Time (UTC): 9/5/2024 3:50:36 PM.
  • SP-09082213-0 Profile Picture
    SP-09082213-0 12 on at
    Citations / references not showing in the chat in Teams but working in PVA
    I have implemented adaptive card but citation sources come as empty. My data source, pdf files are loaded from my local drive.
  • RM-05071235-0 Profile Picture
    RM-05071235-0 8 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 23 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..

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

September 2024 Newsletter…

September 2024 Community Newsletter…

Community Update Sept 16…

Power Platform Community Update…

Welcome to the new Power Platform Community!…

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

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 141,065

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 63,407

Leaderboard

Featured topics