We use Zendesk for our Help content. We added custom JavaScript to create tabs for Desktop and Mobile. For an example, see this Help article. I haven’t enabled the KC Bot, which was an important feature when looking for an onboarding tool, because the JavaScript gets stripped out. It shows two buttons that do nothing, and the Desktop and Mobile content are lumped together.
I had also started implementing accordions using JavaScript, but had to stop b/c it created the same issue in the Gainsight KC Bot.
Gainsight also seems to strip out anything custom: JavaScript or .CSS. If you have to strip this out, can you at least provide a way to copy the JavaScript and style sheet over to Gainsight?