Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Copilot Studio - General
Suggested answer

Citations not showing in teams application when using generative orchestration.

(2) ShareShare
ReportReport
Posted on by 31
This is only in the teams application
I have turned on generative ochestration and at first the knowledge sources used in the answer where linked great (picture 1).
After a few days the sources are not linked properly and the users can't give feedback if used sources are correct(Picture 2).

Is there any way to get the sources correctly in the message while keeping gen orchestration turned on? 

EDIT:
This Issue only happens when I trigger a topic to wait for the generated response and sends a adaptive card after it.

TOPICScreenshot:
Categories:
  • Suggested answer
    Jelle de Haas Profile Picture
    21 on at
    Citations not showing in teams application when using generative orchestration.

    Solution found: use the OnPlanComplete topic trigger to collect feedback after the AI response

    Topic: Capture AI Response
    Trigger: OnGeneratedResponse

    Nodes:
    – Set variable value Global.isAIGeneratedResponse = true
    – Set variable value Global.FormattedText = System.Response.FormattedText
    – Set variable value Global.Citations = System.Response.Citations (optional, I’m tracking which sources receive positive and negative feedback)
    Don’t cancel the response (so don’t set System.ContinueResponse to false)

    Topic: “Plan complete – ask for feedback”
    Trigger: OnPlanComplete
    Add condition to the trigger: Global.isAIGeneratedResponse = true

    Nodes:
    – Send message (or Ask with adaptive card): send an Adaptive Card to request feedback. Pass Global.FormattedText (and optionally Global.Citations) into the card data.
    – Set variable value Global.isAIGeneratedResponse = false

  • Jelle de Haas Profile Picture
    21 on at
    Citations not showing in teams application when using generative orchestration.
     
    I attempted your method, but it didn’t produce the desired result.
     
     
     
    Is this what you tried as well? Note: in Copilot Studio this is not an issue:

  • Suggested answer
    Romain The Low-Code Bearded Bear Profile Picture
    292 on at
    Citations not showing in teams application when using generative orchestration.
    @Jelle de Haas the ContinueResponse = false must be the only and last thing you do, just try one hour ago : it work if the last thing you do. The send message just before work very well.
  • EW-20120954-0 Profile Picture
    31 on at
    Citations not showing in teams application when using generative orchestration.
    Thanks for you Help @Romain The Low-Code Bearded Bear,

    We will probably use this workaround and keep my eye open for any other solutions.
    It is important that we use generative orchestration, have citations in teams and have a adaptive card to give feedback.

     
  • Jelle de Haas Profile Picture
    21 on at
    Citations not showing in teams application when using generative orchestration.

    Same issue, ContinueResponse = false and then sending System.Response.FormattedText

    I’ve implemented a quick workaround until we find a better solution:

    If(
    IsEmpty(System.Response.Citations),
    System.Response.FormattedText,
    System.Response.FormattedText
    & Char(10) & Char(10)
    & “**Sources:**” & Char(10)
    & Concat(
    System.Response.Citations As c,
    “1. [” & c.Name & “](” & c.Url & “)” & Char(10)
    )
    )

  • Suggested answer
    Romain The Low-Code Bearded Bear Profile Picture
    292 on at
    Citations not showing in teams application when using generative orchestration.
    o the new screenshot, change some things :D when you set continue response to false : it stop everything. So you must do you'r logic before.
     
    Then i will not recommand to use this special action without a deep understanding of copilot stuiod, it's quiet new and complicated to make it work,properly.
     
    you could try easy way, with this action :
     
    Take the code frome the sample i give you in precedend post, and remove everything complicated, jsute keep the concatenation of the text and citation. It will insert citation.
     
    The rest ask good code understanding :( it too much complicated, don't use this action and use the general prompt to force the presentaiton of the citation, it use to work very well :)

    when you think the answer is ok, feel free to check answered it's important :)
  • EW-20120954-0 Profile Picture
    31 on at
    Citations not showing in teams application when using generative orchestration.
    Thanks for your response!

    Does this work with with uploaded files only or also with sharepoint knowledge sources?
  • Suggested answer
    Romain The Low-Code Bearded Bear Profile Picture
    292 on at
    Citations not showing in teams application when using generative orchestration.
    hello : and yes ! :)

    First : but you already try probably : add to the prompt the instruction to do it. It work most of the time but you will notice that the citation link are not really cool looking
     
    second : enable the official source tag , it will add a prompt in the general prompt wich could inspire you on how to write
     
    Third : the hard but beautiful way : Microsoft Power Cat team is providing an answer with little code for this situation :) link below
     

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard >