Skip to content

[Rendering] The adaptive cards sometimes cannot be rendered #9297

@JialinHuang803

Description

@JialinHuang803

Target Platforms

NodeJS

SDK Version

1.2.3

Application Name

Microsoft Teams

Problem Description

With the same adaptive card content input, the adaptive card isn't rendering for a Teams bot while it works for another bot with the same code.

Screenshots

The bot that works:
Image

The bot that doesn't work:
Image

No response

Card JSON

{
    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
    "actions": [
        {
            "card": {
                "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
                "actions": [
                    {
                        "card": {
                            "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
                            "actions": [
                                {
                                    "data": {
                                        "action": "feedback-like",
                                        "reasons": [
                                            "It solved my question",
                                            "The response gives clear guidance",
                                            "The reference link(s) is helpful",
                                            "Other"
                                        ]
                                    },
                                    "title": "Submit👍",
                                    "type": "Action.Submit"
                                }
                            ],
                            "body": [
                                {
                                    "text": "Tell us more.",
                                    "type": "TextBlock",
                                    "wrap": true
                                },
                                {
                                    "id": "reason_0",
                                    "title": "It solved my question",
                                    "type": "Input.Toggle",
                                    "value": "false"
                                },
                                {
                                    "id": "reason_1",
                                    "title": "The response gives clear guidance",
                                    "type": "Input.Toggle",
                                    "value": "false"
                                },
                                {
                                    "id": "reason_2",
                                    "title": "The reference link(s) is helpful",
                                    "type": "Input.Toggle",
                                    "value": "false"
                                },
                                {
                                    "id": "reason_3",
                                    "title": "Other",
                                    "type": "Input.Toggle",
                                    "value": "false"
                                },
                                {
                                    "id": "feedbackComment",
                                    "isMultiline": true,
                                    "placeholder": "Please provide feedback on how we can improve this content. If applicable, provide the first part of the sentence or string at issue.",
                                    "type": "Input.Text"
                                }
                            ],
                            "type": "AdaptiveCard",
                            "version": "1.6"
                        },
                        "title": "👍Yes",
                        "type": "Action.ShowCard"
                    },
                    {
                        "card": {
                            "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
                            "actions": [
                                {
                                    "data": {
                                        "action": "feedback-dislike",
                                        "reasons": [
                                            "It misunderstood my question",
                                            "The response is hard to understand",
                                            "Out of date/obsolete",
                                            "The solution doesn't work",
                                            "The reference link(s) is broken",
                                            "Other"
                                        ]
                                    },
                                    "title": "Submit👎",
                                    "type": "Action.Submit"
                                }
                            ],
                            "body": [
                                {
                                    "text": "Tell us more.",
                                    "type": "TextBlock",
                                    "wrap": true
                                },
                                {
                                    "id": "reason_0",
                                    "title": "It misunderstood my question",
                                    "type": "Input.Toggle",
                                    "value": "false"
                                },
                                {
                                    "id": "reason_1",
                                    "title": "The response is hard to understand",
                                    "type": "Input.Toggle",
                                    "value": "false"
                                },
                                {
                                    "id": "reason_2",
                                    "title": "Out of date/obsolete",
                                    "type": "Input.Toggle",
                                    "value": "false"
                                },
                                {
                                    "id": "reason_3",
                                    "title": "The solution doesn't work",
                                    "type": "Input.Toggle",
                                    "value": "false"
                                },
                                {
                                    "id": "reason_4",
                                    "title": "The reference link(s) is broken",
                                    "type": "Input.Toggle",
                                    "value": "false"
                                },
                                {
                                    "id": "reason_5",
                                    "title": "Other",
                                    "type": "Input.Toggle",
                                    "value": "false"
                                },
                                {
                                    "id": "feedbackComment",
                                    "isMultiline": true,
                                    "placeholder": "Please provide feedback on how we can improve this content. If applicable, provide the first part of the sentence or string at issue.",
                                    "type": "Input.Text"
                                }
                            ],
                            "type": "AdaptiveCard",
                            "version": "1.6"
                        },
                        "title": "👎No",
                        "type": "Action.ShowCard"
                    }
                ],
                "body": [
                    {
                        "text": "Was the response helpful?",
                        "type": "TextBlock",
                        "wrap": true
                    }
                ],
                "type": "AdaptiveCard",
                "version": "1.6"
            },
            "title": "👍Feedback👎",
            "type": "Action.ShowCard"
        },
        {
            "card": {
                "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
                "actions": [
                    {
                        "title": "TypeSpec Discussion",
                        "type": "Action.OpenUrl",
                        "url": "https://teams.microsoft.com/l/channel/19%3A906c1efbbec54dc8949ac736633e6bdf%40thread.skype/TypeSpec%20Discussion?groupId=3e17dcb0-4257-4a30-b843-77f47f1d4121&tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47"
                    },
                    {
                        "title": "Javascript",
                        "type": "Action.OpenUrl",
                        "url": "https://teams.microsoft.com/l/channel/19%3A344f6b5b36ba414daa15473942c7477b%40thread.skype/Language%20%E2%80%93%20JS%E2%80%89%EF%BC%86%E2%80%89TS%20%F0%9F%A5%B7?groupId=3e17dcb0-4257-4a30-b843-77f47f1d4121&tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47"
                    },
                    {
                        "title": ".Net",
                        "type": "Action.OpenUrl",
                        "url": "https://teams.microsoft.com/l/channel/19%3A7b87fb348f224b37b6206fa9d89a105b%40thread.skype/Language%20-%20DotNet?groupId=3e17dcb0-4257-4a30-b843-77f47f1d4121&tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47"
                    },
                    {
                        "title": "Java",
                        "type": "Action.OpenUrl",
                        "url": "https://teams.microsoft.com/l/channel/19%3A5e673e41085f4a7eaaf20823b85b2b53%40thread.skype/Language%20-%20Java?groupId=3e17dcb0-4257-4a30-b843-77f47f1d4121&tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47"
                    },
                    {
                        "title": "Python",
                        "type": "Action.OpenUrl",
                        "url": "https://teams.microsoft.com/l/channel/19%3Ab97d98e6d22c41e0970a1150b484d935%40thread.skype/Language%20-%20Python?groupId=3e17dcb0-4257-4a30-b843-77f47f1d4121&tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47"
                    },
                    {
                        "title": "Go",
                        "type": "Action.OpenUrl",
                        "url": "https://teams.microsoft.com/l/channel/19%3A104f00188bb64ef48d1b4d94ccb7a361%40thread.skype/Language%20-%20Go?groupId=3e17dcb0-4257-4a30-b843-77f47f1d4121&tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47"
                    },
                    {
                        "title": "Engineering System",
                        "type": "Action.OpenUrl",
                        "url": "https://teams.microsoft.com/l/channel/19%3A59dbfadafb5e41c4890e2cd3d74cc7ba%40thread.skype/Engineering%20System%20%F0%9F%9B%A0%EF%B8%8F?groupId=3e17dcb0-4257-4a30-b843-77f47f1d4121&tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47"
                    }
                ],
                "body": [],
                "type": "AdaptiveCard",
                "version": "1.6"
            },
            "title": "🕵️‍♂️Support Channels🕵️‍♀️",
            "type": "Action.ShowCard"
        }
    ],
    "body": [
        {
            "text": "🤖The responses are generated by AI and may contain outdated information. Please verify any important details independently. 🔁For follow-up questions, @mentioning the bot is recommended. 📝Please note that the bot is unable to reply to edited messages.",
            "type": "TextBlock",
            "wrap": true
        }
    ],
    "type": "AdaptiveCard",
    "version": "1.6"
}

Sample Code Language

No response

Sample Code

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions