本文介绍了小组中的QnA Maker Bot格式化问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

我们使用QnA Maker知识库实现了一个简单的Azure机器人,并启用了Teams频道.

We implemented a simple Azure bot using a QnA Maker knowledge base and we enabled the Teams channel.

在webChat中,markdown格式呈现得很好.但是,在Teams中,降价格式设置并非总是按预期方式工作:

In the webChat, the markdown formatting is rendered just fine. However in Teams the markdown formatting is not always working as expected:

  • 如果答案中没有任何提示,则格式是完美的
  • 如果答案中有提示,则Markdown格式将无法按预期显示

我附上了说明问题的屏幕截图的链接:说明问题的屏幕截图

I attach the link of a screenshot illustrating the issue: Screenshot Illustrating the issue

您是否已经遇到此问题?关于如何解决此问题的任何想法吗?

Did you already experience this issue? Any idea about how we could fix this?

提前感谢您的帮助!

推荐答案

无法在Teams中格式化普通文本消息.如果要应用格式设置,则需要查看发送,例如自适应卡,支持Markdown.可以在此处,尤其是关于换行符.

There isn't a way to format normal text messages in Teams. If you want to apply formatting, you need to rather look at sending one of the supported types of Cards, such as Adaptive Card, which supports Markdown. More can be seen here, in particular about newline.

如果您只是真的担心换行符,您可以考虑在您的机器人中将其拆分,并发送多条短信.不过,目前尚不清楚示例中的提示文字"按钮是什么-如果您需要更多有关此信息,请提供更多信息.

If you're only really worried about newline characters, you could consider splitting it up in your bot, and sending multiple text messages. It's not clear what the "prompt text" button is from your example though - if you want more info on that, please supply more information.

希望有帮助

这篇关于小组中的QnA Maker Bot格式化问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-07 00:27