Botframework-sdk: [Skype for Business] HTML message formatting inconsistencies (macOS vs Windows)

Created on 21 Nov 2017  Â·  30Comments  Â·  Source: microsoft/botframework-sdk

Bot Info

  • SDK Platform: Node.js
  • SDK Version: BotBuilder 3.11.0
  • Active Channels: Skype for Business
  • Deployment Environment: ngrok

Issue Description

Documentation indicates that we can send messages with html and it will format properly on the SFB channel. https://docs.microsoft.com/en-us/bot-framework/nodejs/bot-builder-nodejs-message-create

However, we are seeing dramatic inconsistencies from one platform to another using the same code. Looking for guidance on how to develop and format our messages for Skype for Business so that macOS/iOS will also render html.

We'd like to use the HTML format we are seeing in Skype for Business on windows. When the same code is rendered in macOS, it shows just raw html

Code Example

Not setting textFormat, using the default "markdown".
Setting it to "xml" yields no noticeable change.
response.text is just raw text with html tags, looks similar to what is shown in macOS screenshot below.

var customMsg = new builder.Message(session).text(response.text);
session.send(customMsg);

Expected Behavior

SKYPE for BUSINESS
(windows client)
sfb_html_markdownii 1

Actual Results

SKYPE for BUSINESS
(macOS client update 16.12.77)
image

bug

Most helpful comment

From the contact we've had with MS SFB Team, there is no formatting supported, should be all done in markdown which also does not really do much. The html that works on PC via Bot Framework is also not recommended. It does not seem to be a priority to fix SFB as MS wants everyone to transition to MS Teams which is much more versatile. Granted this is not always an easy option with enterprises and legacy systems, so we have come to the conclusion to treat our bots on SFB more like SMS. Make your copy concise with single turn actions to keep it light and conversational. Throw in an emoji or 2 at best. Good luck.

All 30 comments

Thank you for reporting I will ping the Skype for business team.

Still waiting on a response, I will update you as soon as possible.

Thx, anxiously waiting. Cheers

Hi there, any updates on this? This behavior is seriously impacting our customers who using Skype for Business on mac OS and iOS. Adding any sort of html added into our dialogs fails to render on iOS at all. Thanks.

I still have no response, I will ping again.

@amehta3000 from the sfb team

Is it possible to get some mac client traces from customer to investigate deeper?

Are you able to provide this?

Hi, I'm hoping this is this client logs they are looking for outlined in this article:
http://www.itprotoday.com/microsoft-exchange/mac-skype-business-2015-client-side-logs

@JasonSowers, can you please provide me an email address so I can send you the file privately. thx

@JasonSowers sent

I received them and have forwarded them to the sfb team, I will let you know as soon as I hear something.

@amehta3000 can you prodive this?

From the sfb team:

are you able to get customer’s bot input in message Activity, (the http messsage that bot send to channel which contains that mark down part), I would like to do more experiment on this.

Sent privately to you via email, hope it suffices. LMK. thx

There is an ongoing discussion I will update you as I get information. At this point, I would look into possibly changing your HTML to markup.

Thanks Jason,
I think it is interesting cause Markdown renders down to HTML so I would expect HTML to just work out the box.
That being said, I've started trying to use Markdown but it just doesn't render as well as HTML, and we lose the ability to show color along with formatting font sizes that I can get with HTML on a PC.

Seems like the only thing I can get is bold and _italics_ to work.

My main frustration is that line breaks in Markdown don't seem to work as expected on either channel. Should be 2 spaces (\s\s) but both PC and Mac completely disregard it. If I put <br> then PC will give me a line break but Mac will render the <br> in raw text.
I'll follow up with some additional screenshots.

We appreciate your help and communication with the team there. thx for any more insight.

Hi Jason, just wondering if the final solution is to go straight markdown and assume that there is no formatting at all on a SFB mac client. Markdown doesn't really render in Mac OS. It just end up being simple text.

Do you have any insight on how to issue a line break?
We've been using \n\n\u200C<br\> but honestly, that looks very hacky and not ideal results. How do you programmatically get line breaks, when markdown says it is end a line with two or more spaces, then type return
thx.

@amehta3000 The Only way I know a line break works for sure across all channels is using "\n\n"

waiting for update , facing same issue , any Updates on it?

No updates. Was recommended to just go straight markdown, but as you may already know the SFB client on Mac doesn’t seem to even render markdown bold or italics either. Wondering if there will ever be an update or if there is an intention to make it better.

On Jan 3, 2018, at 1:37 AM, ganesh1190 notifications@github.com wrote:

waiting for update , facing same issue , any Updates on it?

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

Need only BOLD and ITALIC.
Any idea...? Please share.

Like @ganesh1190 mention the same requirement on SFB.

@amehta3000 I would like to consult you, "\n\n" it's working to break the link for the SFB on windows?
@JasonSowers I test it "\n\n" it's working to break the link on the SFB on windows. Any idea?

Any update on this, markdown is not at all rendering to Mac OS devices. I am trying to use link tag but it's not working.

How can this issue be closed if problems is still there? MacOS - is not supported at all. And can you explain how we can use colors etc? As I am not sure if css is supported

we are receiving lots of inquires about what styling is supported on MacOS and what not.
is there some guideline we can point our customers at?

thanks!

Reopened. Labeled as bug.

has this issue been resolved?

my customer is attempting to send mail but only sees raw html on mac

@brienmorton No, this issue has not been resolved. This issue is also not related to email, but to Skype for Business.

@EricDahlvang thank you. I have very large enterprise customer trying to deploy this. Any idea when it might be resolved? Or any work around?

@brienmorton I am not aware of a work around, nor am I aware of a timeline or if this bug is even a priority for Skype for Business. Skype for Business Bots are in preview and edge case issues like this are apparently not very high priority. I wish there was something I could do to help, but there's not. I'm sorry.

From the contact we've had with MS SFB Team, there is no formatting supported, should be all done in markdown which also does not really do much. The html that works on PC via Bot Framework is also not recommended. It does not seem to be a priority to fix SFB as MS wants everyone to transition to MS Teams which is much more versatile. Granted this is not always an easy option with enterprises and legacy systems, so we have come to the conclusion to treat our bots on SFB more like SMS. Make your copy concise with single turn actions to keep it light and conversational. Throw in an emoji or 2 at best. Good luck.

Thank you both for your help.

Thank you for opening an issue against the Bot Framework SDK v3. As part of the Bot Framework v4 release, we’ve moved all v3 work to a new repo located at https://github.com/microsoft/botbuilder-v3. We will continue to support and offer maintenance updates to v3 via this new repo.

From now on, https://github.com/microsoft/botbuilder repo will be used as hub, with pointers to all the different SDK languages, tools and samples repos.

As part of this restructuring, we are closing all tickets in this repo.

For defects or feature requests, please create a new issue in the new Bot Framework v3 repo found here:
https://github.com/microsoft/botbuilder-v3/issues

For Azure Bot Service Channel specific defects or feature requests (e.g. Facebook, Twilio, Teams, Slack, etc.), please create a new issue in the new Bot Framework Channel repo found here:
https://github.com/microsoft/botframework-services/issues

For product behavior, how-to, or general understanding questions, please use Stackoverflow.
https://stackoverflow.com/search?q=bot+framework

Thank you.

The Bot Framework Team

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mattlanham picture mattlanham  Â·  3Comments

Arimov picture Arimov  Â·  3Comments

RaoVenka picture RaoVenka  Â·  3Comments

sebsylvester picture sebsylvester  Â·  3Comments

Vigneshramkumar picture Vigneshramkumar  Â·  3Comments