I have a simople bot which gets Data From a flow and Builds an Adaptive Card and send the Card to the user. This is working fine if i test the Bot on a website or in the PVA Site. If i connect the pva bot to Teams this fails, the card is not displayed.
I followed the basic steps here:
Use Bot Framework Composer adaptive cards in chatbots - Power Virtual Agents | Microsoft Learn
This is my card in Bot Composer:
# adaptivecardjson_meals(location)
- ```
{
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.1",
"body": [
{
"type": "ColumnSet",
"columns": [
{
"type": "Column",
"width": 5,
"items": [
{
"type": "Image",
"altText": "",
"url": "https://bilderspeicher01.blob.core.windows.net/bilder/mittagessen_tp.png",
"size": "Medium"
},
{
"type": "TextBlock",
"text": "Gericht",
"size": "ExtraLarge"
}
]
},
{
"type": "Column",
"width": 1,
"items": [
{
"type": "Container",
"height": "stretch"
},
{
"type": "TextBlock",
"text": "Preis",
"size": "ExtraLarge",
"horizontalalignment": "right"
}
],
"height": "stretch"
}
]
},
${location}
]
}
```
# AdaptiveCardMeals(location)
[Activity
Attachments = ${json(adaptivecardjson_meals(location))}
]
# SendActivity_BjdYcR()
- ${AdaptiveCardMeals(virtualagent.user_city)}
# SendActivity_PCTrcP()
[Activity
Text = ${SendActivity_PCTrcP_text()}
]
# SendActivity_PCTrcP_text()
- Alles klar ich schaue mal was in der Küche los ist...
# SendActivity_vGGQJz()
[Activity
Text = ${SendActivity_vGGQJz_text()}
]
# SendActivity_vGGQJz_text()
- Ich hoffe du findest etwas passendes :)
# SendActivity_7rDEFK()
- ${virtualagent.user_city}
This is my Dialog in Composer:

Testing in PVA works fine:

In Teams it stops after showing the output (for debugging reason) and nothing more happens:

can anybody help?
Best regards
Marc