Bot response to adaptive card Action.Execute action with complex adaptive card not rendered in Teams chat
Boris Rusinovic
76
Reputation points
Teams bot is returning an updated adaptive card on Action.Execute with HTTP OK and the body like the JSON below. The simple adaptive card, like this, is rendered fine in Teams.
{
"statusCode": 200,
"type": "application/vnd.microsoft.card.adaptive",
"value": {
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.4",
"body": [
{
"type": "TextBlock",
"text": "Updated Card"
}
]
}
}
But if we return a more complex adaptive card, the update fails with the message:
At the same time, if the bot sends the same complex adaptive card as an update message using the PUT method, the updated (complex) card is rendered fine in Teams.
PUT /v3/conversations/{conversationId}/activities/{activityId}
complex_adaptive_card_response.json
Thanks,
Boris
Sign in to answer