Hi @HenriqueGauge
I got something similar working by accessing the generated answer citation text.
E.g.: when both content from public website and document is retrieved:

When clicking on the citation that doesn't have a URL, I display the full source citation:

This also works over the Teams channel:

Assuming you are saving the generated answer with a complete format (in my example below, I stored it as a global variable, referenced by Global.Answer) this is the Power Fx formula I've used for the adaptive card.
{
type: "AdaptiveCard",
'$schema': "http://adaptivecards.io/schemas/adaptive-card.json",
version: "1.5",
body: [
{
type: "Container",
items: [
{
type: "TextBlock",
// Generated answer text
text: Global.Answer.Text.Content,
wrap: true
}
]
},
{
type: "Container",
items: ForAll(Global.Answer.Text.CitationSources,
// If the citation doesn't have a URL, display the source text snippet when the source is clicked
If(IsBlank(Url),
{
type: "Container",
items: [
{
type: "TextBlock",
text: "[" & Id & "] " & Name & " (click to see citation)",
wrap: true,
size: "Small",
weight: "Lighter"
},
{
type: "TextBlock",
text: Text,
wrap: true,
isVisible: false,
id: "citationText" & Id,
size: "Small",
isSubtle: true
}
],
selectAction: {
type: "Action.ToggleVisibility",
targetElements: [ "citationText" & Id ]
}
},
// If the citation has a URL, make the citation clickable and open the source URL.
{
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. Please rate it",
wrap: true,
size: "Small",
color: "Accent"
}
]
},
{
type: "Column",
width: "5",
items: [
{
type: "TextBlock",
text: "",
wrap: true,
size: "Small",
color: "Light"
}
],
selectAction: {
type: "Action.Submit",
data: "This generated answer wasn't useful"
}
},
{
type: "Column",
width: "5",
items: [
{
type: "TextBlock",
text: "",
wrap: true,
size: "Small",
color: "Light"
}
],
selectAction: {
type: "Action.Submit",
data: "This generated answer was useful"
}
}
]
}
]
}
]
}
Note: I don't believe the thumbs up/down buttons would work in Teams as it expects a specific format for actions (Add card actions in a bot - Teams | Microsoft Learn), so you should perhaps remove them.