Bot response to adaptive card Action.Execute action with complex adaptive card not rendered in Teams chat

Boris Rusinovic 1 Reputation point
2024-04-19T18:25:25.3033333+00:00

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:

Teams error

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

Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
2,863 questions
{count} votes