首页 > 解决方案 > 在 BOT 模拟器中显示自适应卡片的注释

问题描述

我在 BOT 模拟器中使用自适应卡显示一些数据,我想在那里添加一个评论部分。我尝试过这种方式:

{
                                "type": "Action.ShowCard",
                                "title": "Comment",
                                "card": {
                                    "type": "AdaptiveCard",
                                    "body": [
                                        {
                                            "type": "Input.Text",
                                            "id": "test",
                                            "isMultiline": true,
                                            "placeholder": "Enter your comment",

                                        }
                                    ],
                                    "actions": [
                                        {
                                            "type": "Action.Submit",
                                            "id":"submit",
                                            "title": "OK",

                                            "data":
                                            {
                                                "test":""
                                            }

                                        }
                                    ],
                                    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json"
                                }
                            }

                        ]

但是单击确定操作时没有得到任何输出。我们该怎么做?

标签: botsadaptive-cards

解决方案


推荐阅读