【发布时间】:2021-12-14 06:50:06
【问题描述】:
我使用 azure bot SDK 创建了一个机器人,并希望以 tabular 格式显示响应。 目前,我正在从数据库中检索 DataFrame 对象中的数据,然后使用 DataFrame.to_html() 将其转换为 str 对象,然后发送使用以下方法对 Bot Framework Emulator 做出响应:
await turn_context.send_activity(response)
在 UI 上,响应显示为 enter image description here
我想展示一个合适的表格结构。正确的做法是什么?
【问题讨论】:
-
您可以使用自适应卡。
-
完美!!另外,您可以浏览我在答案部分中提到的参考链接。
标签: python-3.x botframework chatbot azure-bot-service bot-emulator